// JavaScript Document
var intIntervalDu=window.setInterval("updateEnterFrameDu()",200);
function updateEnterFrameDu()
{
	document.getElementById("lightboxBackgroundPane").style.width = document.body.clientWidth+'px';
	document.getElementById("lightboxBackgroundPane").style.height = document.body.clientHeight+'px';
	document.getElementById("lightboxContactus").style.left = ((document.body.clientWidth - 400) / 2)+'px';
	document.getElementById("lightboxLogin").style.left = ((document.body.clientWidth - 300) / 2)+'px';
}
var isOpenFor = "";
function closeCurrentLightBox()
{
	document.getElementById("lightboxBackgroundPane").style.visibility = 'hidden';
	document.getElementById("lightboxBackgroundPane").style.width = '1px';
	if(isOpenFor == "contactus")
	{
		document.getElementById("lightboxContactus").style.visibility = 'hidden';
	}
	else
	{
		document.getElementById("lightboxLogin").style.visibility = 'hidden';
	}
	isOpenFor = "";
}

function openContactus()
{
	isOpenFor = "contactus";
	document.getElementById("lightboxBackgroundPane").style.visibility = '';
	document.getElementById("lightboxContactus").style.visibility = '';
}

function openLogin()
{
	isOpenFor = "login";
	document.getElementById("lightboxBackgroundPane").style.visibility = '';
	document.getElementById("lightboxLogin").style.visibility = '';
}