onload = function() {

	var iframe_div = xGetElementById('dataTable');
	if (iframe_div)	loadXMLDoc( "http://"+location.host+location.pathname.substring(0,location.pathname.lastIndexOf('/'))+"/slides.php" );

	initializeMenu("Menu", "Actuator");
			
	 var navBar = xGetElementById('navBar');
 	if (navBar && xDef(navBar.style) && document.getElementsByTagName) {
		//ON-OFF navBar allowed
		enabled = true;		
  }
		if (!betaVisible)setDisplay();
		positionSearch(); 

}
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*//Load stylesheets
var scrWth = window.screen.width;works vith Firefox, Op IE5-6-7
if(scrWth < '1024' ){	document.write('<link rel=stylesheet href="/css/gris_style800.css" type="text/css" />');}	*/
function positionSearch()
{
	 //posiziono #search in base all'altezza del div globalNav
	var globNavH = document.getElementById("globalNav").offsetHeight;
	var diff = (globNavH - 30);
 var searchId = document.getElementById('search');
	var scrWth = window.screen.width;
	if(scrWth > '800' ){ searchId.style.top = (111+diff)+"px";} 
	searchId.style.display = 'block';	
}


