
function callFunctWhenLoaded(targWindow,funct,req_var)
{
	if(eval(targWindow+'.'+req_var))
	{
		eval(targWindow+'.'+funct);
	}
	else
	{
		window.setTimeout('callFunctWhenLoaded(\''+targWindow+'\',\''+funct+'\',\''+req_var+'\')',1000);
	}	
} 
//=====================================================================
// Reset Slide show
//=====================================================================

function resetShow()
{
	if(parent.slide_show.location.toString().indexOf('html/sli.html')==-1)
	{
		parent.slide_show.location='../html/sli.html';
	}
}

function pageSize()
{ 
	this.width=document.body&&document.body.offsetWidth?document.body.offsetWidth-20:document.body&&document.body.innerWidth?document.body.innerWidth:innerWidth?innerWidth:0;
	//this.height=document.body&&document.body.offsetHeight?document.body.offsetHeight-5:document.body&&document.body.innerHeight?document.body.innerHeight:innerHeight?innerHeight:0;
}


