/***************************/
//@Author: Adrian "yEnS" Mato Gondelle
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

//SETTING UP OUR POPUP
//0 means disabled; 1 means enabled;

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup01(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup01").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup01").fadeIn("slow");
		$("#popup01").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup01(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup01").fadeOut("slow");
		$("#popup01").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup01(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup01").height();
	var popupWidth = $("#popup01").width();
	//centering
	$("#popup01").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup01").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button01").click(function(){
		//centering with css
		centerPopup01();
		//load popup
		loadPopup01();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup01Close").click(function(){
		disablePopup01();
	});
	//Click out event!
	$(".backgroundPopup01").click(function(){
		disablePopup01();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup01();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup02(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup02").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup02").fadeIn("slow");
		$("#popup02").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup02(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup02").fadeOut("slow");
		$("#popup02").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup02(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup02").height();
	var popupWidth = $("#popup02").width();
	//centering
	$("#popup02").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup02").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button02").click(function(){
		//centering with css
		centerPopup02();
		//load popup
		loadPopup02();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup02Close").click(function(){
		disablePopup02();
	});
	//Click out event!
	$(".backgroundPopup02").click(function(){
		disablePopup02();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup02();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup03(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup03").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup03").fadeIn("slow");
		$("#popup03").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup03(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup03").fadeOut("slow");
		$("#popup03").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup03(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup03").height();
	var popupWidth = $("#popup03").width();
	//centering
	$("#popup03").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup03").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button03").click(function(){
		//centering with css
		centerPopup03();
		//load popup
		loadPopup03();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup03Close").click(function(){
		disablePopup03();
	});
	//Click out event!
	$(".backgroundPopup03").click(function(){
		disablePopup03();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup03();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup04(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup04").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup04").fadeIn("slow");
		$("#popup04").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup04(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup04").fadeOut("slow");
		$("#popup04").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup04(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup04").height();
	var popupWidth = $("#popup04").width();
	//centering
	$("#popup04").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup04").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button04").click(function(){
		//centering with css
		centerPopup04();
		//load popup
		loadPopup04();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup04Close").click(function(){
		disablePopup04();
	});
	//Click out event!
	$(".backgroundPopup04").click(function(){
		disablePopup04();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup04();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup05(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup05").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup05").fadeIn("slow");
		$("#popup05").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup05(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup05").fadeOut("slow");
		$("#popup05").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup05(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup05").height();
	var popupWidth = $("#popup05").width();
	//centering
	$("#popup05").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup05").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button05").click(function(){
		//centering with css
		centerPopup05();
		//load popup
		loadPopup05();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup05Close").click(function(){
		disablePopup05();
	});
	//Click out event!
	$(".backgroundPopup05").click(function(){
		disablePopup05();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup05();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup06(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup06").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup06").fadeIn("slow");
		$("#popup06").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup06(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup06").fadeOut("slow");
		$("#popup06").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup06(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup06").height();
	var popupWidth = $("#popup06").width();
	//centering
	$("#popup06").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup06").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button06").click(function(){
		//centering with css
		centerPopup06();
		//load popup
		loadPopup06();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup06Close").click(function(){
		disablePopup06();
	});
	//Click out event!
	$(".backgroundPopup06").click(function(){
		disablePopup06();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup06();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup07(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup07").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup07").fadeIn("slow");
		$("#popup07").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup07(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup07").fadeOut("slow");
		$("#popup07").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup07(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup07").height();
	var popupWidth = $("#popup07").width();
	//centering
	$("#popup07").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup07").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button07").click(function(){
		//centering with css
		centerPopup07();
		//load popup
		loadPopup07();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup07Close").click(function(){
		disablePopup07();
	});
	//Click out event!
	$(".backgroundPopup07").click(function(){
		disablePopup07();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup07();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup08(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup08").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup08").fadeIn("slow");
		$("#popup08").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup08(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup08").fadeOut("slow");
		$("#popup08").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup08(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup08").height();
	var popupWidth = $("#popup08").width();
	//centering
	$("#popup08").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup08").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button08").click(function(){
		//centering with css
		centerPopup08();
		//load popup
		loadPopup08();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup08Close").click(function(){
		disablePopup08();
	});
	//Click out event!
	$(".backgroundPopup08").click(function(){
		disablePopup08();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup08();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup09(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup09").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup09").fadeIn("slow");
		$("#popup09").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup09(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup09").fadeOut("slow");
		$("#popup09").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup09(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup09").height();
	var popupWidth = $("#popup09").width();
	//centering
	$("#popup09").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup09").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button09").click(function(){
		//centering with css
		centerPopup09();
		//load popup
		loadPopup09();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup09Close").click(function(){
		disablePopup09();
	});
	//Click out event!
	$(".backgroundPopup09").click(function(){
		disablePopup09();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup09();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup10(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup10").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup10").fadeIn("slow");
		$("#popup10").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup10(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup10").fadeOut("slow");
		$("#popup10").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup10(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup10").height();
	var popupWidth = $("#popup10").width();
	//centering
	$("#popup10").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup10").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button10").click(function(){
		//centering with css
		centerPopup10();
		//load popup
		loadPopup10();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup10Close").click(function(){
		disablePopup10();
	});
	//Click out event!
	$(".backgroundPopup10").click(function(){
		disablePopup10();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup10();
		}
	});

});

//------------------------------------------------------------ BLOCK

//------------------------------------------------------------ BLOCK

var popupStatus01 = 0;

//loading popup with jQuery magic!
function loadPopup11(){
	//loads popup only if it is disabled
	if(popupStatus01==0){
		$(".backgroundPopup11").css({
			"opacity": "0.8"
		});
		$(".backgroundPopup11").fadeIn("slow");
		$("#popup11").fadeIn("slow");
		popupStatus01 = 1;
	}
}

//disabling popup with jQuery magic!
function disablePopup11(){
	//disables popup only if it is enabled
	if(popupStatus01==1){
		$(".backgroundPopup11").fadeOut("slow");
		$("#popup11").fadeOut("slow");
		popupStatus01 = 0;
	}
}

//centering popup
function centerPopup11(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popup11").height();
	var popupWidth = $("#popup11").width();
	//centering
	$("#popup11").css({
		"position": "absolute",
		"top": windowHeight/2-popupHeight/2,
		"left": windowWidth/2-popupWidth/2
	});
	//only need force for IE6
	
	$(".backgroundPopup11").css({
		"height": windowHeight
	});
	
}


//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){
	
	//LOADING POPUP
	//Click the button event!
	$("#button11").click(function(){
		//centering with css
		centerPopup11();
		//load popup
		loadPopup11();
	});
				
	//CLOSING POPUP
	//Click the x event!
	$(".popup11Close").click(function(){
		disablePopup11();
	});
	//Click out event!
	$(".backgroundPopup11").click(function(){
		disablePopup11();
	});
	//Press Escape event!
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus01==1){
			disablePopup11();
		}
	});

});

//------------------------------------------------------------ BLOCK
