/***************************///@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;var popupStatus1c = 0;//loading popup with jQuery magic!function loadPopup1c(){	//loads popup only if it is disabled	if(popupStatus1c==0){		$("#backgroundPopup1c").css({			"opacity": "0.7"		});		$("#backgroundPopup1c").fadeIn("slow");		$("#popupContact1c").fadeIn("slow");		popupStatus1c = 1;	}}//disabling popup with jQuery magic!function disablePopup1c(){	//disables popup only if it is enabled	if(popupStatus1c==1){		$("#backgroundPopup1c").fadeOut("slow");		$("#popupContact1c").fadeOut("slow");		popupStatus1c = 0;	}}//centering popupfunction centerPopup1c(){	//request data for centering	var windowWidth = document.documentElement.clientWidth;	var windowHeight = document.documentElement.clientHeight;	var popupHeight = $("#popupContact1c").height();	var popupWidth = $("#popupContact1c").width();	//centering	$("#popupContact1c").css({		"position": "absolute",		"top": windowHeight/2-popupHeight/2,		"left": windowWidth/2-popupWidth/2	});	//only need force for IE6		$("#backgroundPopup1c").css({		"height": windowHeight,		"width": windowWidth	});	}//CONTROLLING EVENTS IN jQuery$(document).ready(function(){		//LOADING POPUP	//Click the button event!	$("#button1c").click(function(){		//centering with css		centerPopup1c();		//load popup		loadPopup1c();	});					//CLOSING POPUP	//Click the x event!	$("#popupContactClose1c").click(function(){		disablePopup1c();	});	//Click out event!	$("#backgroundPopup1c").click(function(){		disablePopup1c();	});	//Press Escape event!	$(document).keypress(function(e){		if(e.keyCode==27 && popupStatus1c==1){			disablePopup1c();		}	});});//****************contact 2 form******************//SETTING UP OUR POPUP//0 means disabled; 1 means enabled;var popupStatus2c = 0;//loading popup with jQuery magic!function loadPopup2c(){	//loads popup only if it is disabled	if(popupStatus2c==0){		$("#backgroundPopup2c").css({			"opacity": "0.7"		});		$("#backgroundPopup2c").fadeIn("slow");		$("#popupContact2c").fadeIn("slow");		popupStatus2c = 1;	}}//disabling popup with jQuery magic!function disablePopup2c(){	//disables popup only if it is enabled	if(popupStatus2c==1){		$("#backgroundPopup2c").fadeOut("slow");		$("#popupContact2c").fadeOut("slow");		popupStatus2c = 0;	}}//centering popupfunction centerPopup2c(){	//request data for centering	var windowWidth = document.documentElement.clientWidth;	var windowHeight = document.documentElement.clientHeight;	var popupHeight = $("#popupContact2c").height();	var popupWidth = $("#popupContact2c").width();	//centering	$("#popupContact2c").css({		"position": "absolute",		"top": windowHeight/2-popupHeight/2,		"left": windowWidth/2-popupWidth/2	});	//only need force for IE6		$("#backgroundPopup2c").css({		"height": windowHeight,		"width": windowWidth	});	}//CONTROLLING EVENTS IN jQuery$(document).ready(function(){		//LOADING POPUP	//Click the button event!	$("#button2c").click(function(){		//centering with css		centerPopup2c();		//load popup		loadPopup2c();	});					//CLOSING POPUP	//Click the x event!	$("#popupContactClose2c").click(function(){		disablePopup2c();	});	//Click out event!	$("#backgroundPopup2c").click(function(){		disablePopup2c();	});	//Press Escape event!	$(document).keypress(function(e){		if(e.keyCode==27 && popupStatus2c==1){			disablePopup2c();		}	});});//****************contact 3 form******************//SETTING UP OUR POPUP//0 means disabled; 1 means enabled;var popupStatus3c = 0;//loading popup with jQuery magic!function loadPopup3c(){	//loads popup only if it is disabled	if(popupStatus3c==0){		$("#backgroundPopup3c").css({			"opacity": "0.7"		});		$("#backgroundPopup3c").fadeIn("slow");		$("#popupContact3c").fadeIn("slow");		popupStatus3c = 1;	}}//disabling popup with jQuery magic!function disablePopup3c(){	//disables popup only if it is enabled	if(popupStatus3c==1){		$("#backgroundPopup3c").fadeOut("slow");		$("#popupContact3c").fadeOut("slow");		popupStatus3c = 0;	}}//centering popupfunction centerPopup3c(){	//request data for centering	var windowWidth = document.documentElement.clientWidth;	var windowHeight = document.documentElement.clientHeight;	var popupHeight = $("#popupContact3c").height();	var popupWidth = $("#popupContact3c").width();	//centering	$("#popupContact3c").css({		"position": "absolute",		"top": windowHeight/2-popupHeight/2,		"left": windowWidth/2-popupWidth/2	});	//only need force for IE6		$("#backgroundPopup3c").css({		"height": windowHeight,		"width": windowWidth	});	}//CONTROLLING EVENTS IN jQuery$(document).ready(function(){		//LOADING POPUP	//Click the button event!	$("#button3c").click(function(){		//centering with css		centerPopup3c();		//load popup		loadPopup3c();	});					//CLOSING POPUP	//Click the x event!	$("#popupContactClose3c").click(function(){		disablePopup3c();	});	//Click out event!	$("#backgroundPopup3c").click(function(){		disablePopup3c();	});	//Press Escape event!	$(document).keypress(function(e){		if(e.keyCode==27 && popupStatus3c==1){			disablePopup3c();		}	});});/***************************//***************************//***************************//***************************/