var tvSel=false;

  function getObj(name) {
   var d=document;
    if (d.all) { 
    	return d.all[name];
    }	else if(d.getElementById) {
     return d.getElementById(name);
     }
   }

	var NS=!document.all;
		ns4 = (document.layers)? true:false;
		ie4 = (document.all)? true:false;
		var sel;

	onNavImage = new Image();
	offNavImage = new Image();
	onNavImage.src= "img/nav_sel.png";
	offNavImage.src= "img/nav_puce.png";

	onOrderImage = new Image();
	offOrderImage = new Image();
//	onOderImage.src= "img/fr/commander_rose_on.png";
	//offOrderImage.src= "img/fr/commander_rose_off.png";

	function navOff(bt){
		if (sel!=bt) {		
		 getObj(bt).src=offNavImage.src;
		}
	}
		 
	function navOn(bt){
		if (sel!=bt) {		
		 getObj(bt).src=onNavImage.src;
		}
	}

	function langOff(bt){
		if (langSel!=bt) {		
		  obj=getObj('lang_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onvf]+\.png/,"_of.png")
		  } else {
		  	obj.src="img/navlang_"+bt+"_of.png";
		  }
		}		
	}
		 
	function langOn(bt){
		if (langSel!=bt) {		
		  obj=getObj('lang_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onvf]+\.png/,"_ov.png")
		  } else {
		  	obj.src="img/navlang_"+bt+"_ov.png";
		  }
		}		
	}		
	
	function colOff(bt){
		if (colSel!=bt) {		
		  obj=getObj('col_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onvf]+\.png/,"_of.png")
		  } else {
		  	obj.src="img/navcollection_"+bt+"_of.png";
		  }
		}
	}
		 
	function colOn(bt){
		if (colSel!=bt) {		
		  obj=getObj('col_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onf]+\.png/,"_ov.png")
		  } else {
		  	obj.src="img/navcollection_"+bt+"_ov.png";
		  }
		}
	}	

	function tvOff(obj){
		if (!tvSel) {		
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onvf]+\.png/,"_of.png")
		  } else {
		  	obj.src="img/nav_tv_of.png";
		  }
		}
	}
		 
	function tvOn(obj){
		if (!tvSel) {		
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onf]+\.png/,"_ov.png")
		  } else {
		  	obj.src="img/nav_tv_ov.png";
		  }
		}
	}
			
	function boxOff(bt){
		  obj=getObj('box_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onvf]+\.png/,"_of.png")
		  } else {
		  	z=obj.src
		  	obj.src=z.replace(/_[onvf]+\.png/,"_of.png")
		  }
		  obj=getObj('boxDetails_'+bt);
			obj.style.visibility="hidden";
	}
		 
	function boxOn(bt){
		  obj=getObj('box_'+bt);
		  if (obj.style && obj.style.filter) {
		  	z=obj.style.filter;
		  	obj.style.filter=z.replace(/_[onf]+\.png/,"_ov.png")
		  } else {
		  	z=obj.src
		  	obj.src=z.replace(/_[onvf]+\.png/,"_ov.png")
		  }
		  obj=getObj('boxDetails_'+bt);
			obj.style.visibility="visible";
	}		
	function orderOff(bt){
		 bt.src=offOrderImage.src;
	}
		 
	function orderOn(bt){
		 bt.src=onOrderImage.src;
	}  
	
	function centerLogo() {
		return;
	  iWidth = (NS)?window.innerWidth:document.body.clientWidth;
    iHeight = (NS)?window.innerHeight:document.body.clientHeight;
    var obj,s;
    if ((obj=getObj('attente'))!=null) {
  		if ((s=obj.style)) {
      		s.position="absolute";
      		s.left=(iWidth-964)/2+"px";
      		s.top=(iHeight-598)/2+"px";
      		s.visibility="visible";
       }
    }
}
