
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(contextPath){
    if(parent.slide_show.location.toString().indexOf('html/slideshow.html')==-1){
        parent.slide_show.location=contextPath+'html/slideshow.html';
    }
}
function resetSearch(){
    if(parent.nav){
        parent.nav.document.forms[0].search_words='';
    }
}
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;
}

		