function doClick(url, target)
{
	window.open(url,target);
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}

var enterframeArray = new Array();
function addEnterFrame(func)
{
	enterframeArray.push(func);
}
var intInterval=window.setInterval("updateEnterFrame()",200);

function updateEnterFrame()
{
	for(var i=0; i<enterframeArray.length; i++)
	{
		var tmpFunc = enterframeArray[i];
		tmpFunc();
	}
	document.getElementById("lightboxBackground").style.left = 0;
	document.getElementById("lightboxBackground").style.top = 0;
	try{
	document.getElementById("lightboxBackground").style.width = window.innerWidth+'px';
	document.getElementById("lightboxBackground").style.height = window.innerHeight+'px';
	}catch(e)
	{
		document.getElementById("lightboxBackground").style.width = document.body.clientWidth+'px';
		document.getElementById("lightboxBackground").style.height = document.body.clientHeight+'px';
	}
}
// addLoadEvent(initLoadingBlock);