function start()
	{
	$('ventura').setOpacity(0.9);
	$('news').setOpacity(0.9);
	$('filosofia').setOpacity(0.9);
	$('brokerage').setOpacity(0.9);
	$('contatti').setOpacity(0.9);
//	new Effect.BlindRight ('container_big', {duration:4}); 
//	new Effect.Appear ('container_big', {duration:4}); 	
}
	
Event.observe(window, 'load', start, false);

  var loaded = false;

  function startLoading() {
    loaded = false;
    window.setTimeout('showLoadingImage()', 500);
  }

  function showLoadingImage() {
    var el = document.getElementById("loading_box");
    if (el && !loaded) {
        el.innerHTML = '<img src="images/loading.gif" style="margin:180 0 0 0;>';
        new Effect.Appear('loading_box');
       	$('loading_box').setOpacity(0.7);
    }
  }
  
    function stopLoading() {
    Element.hide('loading_box');
    loaded = true;
  }
  
    Ajax.Responders.register({
    onCreate : startLoading,
    onComplete : stopLoading
  });

    function init() {
      new ImageRoller('roller1', {duration:1});
      new ImageRoller('roller2');
    }
    Event.observe(window,'load',init);

	function sarnico()
		{
			$('container_big').setStyle({backgroundColor: '#636a70'});
			$('main').setStyle({background: 'url(./images/bg_main_sarnico.gif) no-repeat'});
		}
		
	function dufour()
		{
			$('container_big').setStyle({backgroundColor: '#00204E'});
			$('main').setStyle({background: 'url(../images/bg_main_dufour.gif) no-repeat'});
		}		
	
	function home()
		{
			$('container_big').setStyle({backgroundColor: '#090d14'});
			$('main').setStyle({background: 'url(./images/bg_main.jpg) no-repeat'});
		}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function changeStyle(e){
	/*var elem = eval("document.getElementById('"+e+"') ;") ;	
	li_1.style.listStyleType='circle' ;*/
	 
	var num = document.getElementsByTagName('li');
	
	 
	
	//stuto tutti
	for (var i=0;i<num.length;i++) { 
			idx = num[i].id ;
					 
			arr = idx.split("_") ;
 		 
				if (arr[0] == "li") {   	 
					eval("document.getElementById('"+idx+"').style.listStyleType='none' ;");
					eval("document.getElementById('"+idx+"').className='scheda' ;");
	 				// eval(idx+".style.listStyleType='none'") ;	
					// eval(idx+".className='menu'") ;	
					 
				} 		
		}
		eval("document.getElementById('"+e+"').className='menuHi' ;");
		//eval(e+".style.listStyleType='square'") ;
		//eval(e+".className='menuHi'") ;
		//eval ("document.getElementById('"+e+"').className='menuHi'") ;
}
