
var popupStatus=0;function loadPopup(){if(popupStatus==0){$("#backgroundPopup100").css({"opacity":"0.7"});$("#backgroundPopup100").fadeIn("slow");$("#popupContact100").fadeIn("slow");popupStatus=1;}}
function disablePopup(){if(popupStatus==1){$("#backgroundPopup100").fadeOut("slow");$("#popupContact100").fadeOut("slow");popupStatus=0;}}
function centerPopup(){var windowWidth=document.documentElement.clientWidth;var windowHeight=document.documentElement.clientHeight;var popupHeight=$("#popupContact100").height();var popupWidth=$("#popupContact100").width();$("#popupContact100").css({"position":"absolute","top":0,"left":windowWidth/2-popupWidth/2});$("#backgroundPopup100").css({"height":windowHeight});}
$(document).ready(function(){$("#button100").click(function(){centerPopup();loadPopup();});$("#popupContactClose100").click(function(){disablePopup();});$("#popupContactCloseBtn100").click(function(){disablePopup();});$("#backgroundPopup100").click(function(){disablePopup();});$(document).keypress(function(e){if(e.keyCode==27&&popupStatus==1){disablePopup();}});});