// JavaScript Document
jQuery.noConflict(); 
var popupLogin = 0;
function showPopUp()
{
	
	if(popupLogin ==0){
	jQuery("#exciting_background").css({
	"opacity": "0.7"
	});
		jQuery("#exciting_background").fadeIn("slow");
		jQuery("#exciting_detail").fadeIn("slow");
	popupLogin=1;
	}
	
	var windowWidth 		 = document.body.clientWidth;
	var windowHeight		 = document.documentElement.clientHeight;	
	
	
	if (window.pageYOffset)
        var ScrollTop = window.pageYOffset;
		
    else
        var ScrollTop 		= (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
		
    var popupWidth1 		= jQuery("#exciting_detail").width();
	var popupHeight1		= jQuery("#exciting_detail").height();
	var windowHeight		= document.documentElement.clientHeight;
	var top 				= windowHeight/2-popupHeight1/2;

	jQuery("#exciting_detail").css({
	"position": "absolute",
	"top": ScrollTop+top,
	"left": windowWidth/2-popupWidth1/2
	
	});
	jQuery("#exciting_background").css({
	"height": document.documentElement.clientHeight
	});
	jQuery("#exciting_background").css({
	"width": windowWidth
	});
	//only need force for IE6
	//disableloginpopup();
	}
	

function closePopUp()
{
jQuery("#exciting_background").fadeOut("slow");
jQuery("#exciting_detail").fadeOut("slow");
//$("#popupContact1").fadeOut("slow");
popupLogin = 0;
}