var popupStatus = 0;
function loadPopup_new(posy)
{
	
	if(popupStatus==0){
		$("#backgroundPopup").css({
			"opacity": "0.7"
		});
		$("#backgroundPopup").fadeIn("slow");
		$("#popupContact").fadeIn("slow");
		
		popupStatus = 1;
	}
	
	var windowWidth = document.body.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
		
	//var center_position x=screen.availWidth/2, y=screen.availHeight/2;
	 if (window.pageYOffset)
        var ScrollTop = window.pageYOffset;
    else
        var ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
			
	var popupWidth = $("#popupContact").width();
		
	$("#popupContact").css({
		"position": "absolute",
		"top": ScrollTop+100,
		"left": windowWidth/2-popupWidth/2
		
	});
	
	//only need force for IE6
	
	$("#backgroundPopup").css({
		"height": document.body.offsetHeight
	});
	$("#backgroundPopup").css({
		"width": windowWidth
	});
	
	
}

function closepopup()
{
	if(popupStatus==1){
		$("#backgroundPopup").fadeOut("slow");
		$("#popupContact").fadeOut("slow");
		//$("#popupContact1").fadeOut("slow");
		popupStatus = 0;
	}
	
	
}
