function openWindow2(theURL,winName,features,w,h,c) {
	if (c=="centered"){
	  posx=(screen.availWidth-w)/2;
	  posy=(screen.availHeight-h)/2;
	  window.open(theURL,winName,features+',width='+w+',height='+h+',left='+posx+',top='+posy);
	}
	else{
	  window.open(theURL,winName,features+',width='+w+',height='+h+',left=50,top=50');
	}
}

function CreateBookmarkLink() {
	if (window.sidebar) { 
	// Mozilla Firefox Bookmark		
	window.sidebar.addPanel(document.title, location.href,"");	
	}else if( window.external ) {
	 // IE Favorite		
	 window.external.AddFavorite( location.href, document.title); 
	}else if(window.opera && window.print) {
	  // Opera Hotlist		
	  return true;
	 } 
}

function changeClass(ID){
	var sousMenuP;
	var BodyClass = document.getElementsByTagName('BODY')[0];
	BodyClass.className="viewBG";
	for(i=1;i<=3;i++){
		sousMenuP = document.getElementById("sousMenuP"+i);
		if(ID!=i){
			sousMenuP.style.visibility='hidden';
		}else{
			sousMenuP.style.visibility='visible';
		}
	}
}

function changeClassProduit(){
	changeClass('1');
	return true;
}
function changeClassPresse(){
	changeClass('2');
	return true;
}
function changeClassLabo(){
	changeClass('3');
	return true;
}

function overImage(image, idimage){
	var monImage = document.getElementById(idimage);
	monImage.src=image;
}
