function change_tab(id){
	    for(i=1; i<=9; ++i){
		  if(i==1) cl = 'first_inactive';
		  else cl='';
		  document.getElementById('menu_tab_'+i).className=cl;
		  try{
		    document.getElementById('submenu'+i).style.display='none';
		  }catch(err){}
		}
		if(id=='1') cl = 'first_active';
		else cl = 'menu_active';
		document.getElementById('menu_tab_'+id).className=cl;
		try{
		  document.getElementById('menu_tab_'+(parseInt(id)+1)).className='prev_menu_active';
		}catch(err){
		}
	  }
    
    function clear_tab(id){
      document.getElementById('menu_tab_'+i).className=cl;
    }
	  
	var actualImg = new Image();
	actualImg.src = 'images/banner_1.jpg';
	actualImgId = 1;
	var functions = new Array('Shrink','Pulsate','Fade','BlindUp');
	function imageChanger(reset){
	  if(reset){
		document.getElementById('mainImg').style.opacity = 1;
		document.getElementById('mainImg').style.display = 'block';
	  }
	  if(actualImg.complete){
		max = functions.length;
		idx = Math.round((Math.random()*100))%max;
		document.getElementById('mainImgBG').src = actualImg.src;
		new Effect.Fade('mainImg', {duration: 1.0, fps:150, afterFinish:function(){ 
		                ++actualImgId; 
						document.getElementById('mainImg').style.display = 'none'; 
						document.getElementById('mainImg').src = document.getElementById('mainImgBG').src; 
						if(actualImgId>4) actualImgId=1; 
						actualImg.src = 'images/banner_'+actualImgId+'.jpg'; 
						window.setTimeout('imageChanger(true)',2000); }}
						);
	  }else window.setTimeout('imageChanger()',100);
	}