function loadPopup_in(){
		$("#backgroundPopup").css({
			"opacity": "0.7"
		});
		$("#backgroundPopup").fadeIn("slow");
		$("#popupContact").fadeIn("slow");

}
function disablePopup_in(){
		$("#backgroundPopup").fadeOut("slow");
		$("#popupContact").fadeOut("slow");
		popupStatus_in = 0;
}
function centerPopup_in(){
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#popupContact").height();
	var popupWidth = $("#popupContact").width();
	$("#popupContact").css({
		"position": "absolute",
		"top": 50,
		"left": windowWidth/2-popupWidth/2
	});
	$("#backgroundPopup").css({
		"height": windowHeight
	});
}
function showclout_in(){
	//$("#popup").click(function(){
		centerPopup_in();
		loadPopup_in();
	//});
	$("#popupContactClose").click(function(){
		disablePopup_in();
	});
	$("#backgroundPopup").click(function(){
		disablePopup_in();
	});
	$(document).keypress(function(e){
		if(e.keyCode==27 && popupStatus_in==1){
			disablePopup_in();
		}
	});
}



