// functin bookmark
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;
	 } 
}
// popup
function popOpen(theURL, Name, popW, popH, scrollBar, resize, c) { 
	if (c=="1"){
		posx=(screen.availWidth-w)/2;
	  	posy=(screen.availHeight-h)/2;
		winProp = 'width='+popW+',height='+popH+',scrollbars='+scrollBar+',resizable='+resize+',screenX='+posx+',left='+posx+',screenY='+posy+',top='+posy+',menubar=0';
	}else{
		winProp = 'width='+popW+',height='+popH+',scrollbars='+scrollBar+',resizable='+resize+',screenX=0,left=0,screenY=0,top=0,menubar=0';
	}
	Win = window.open(theURL, Name, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}
// swap image
function swapImg(id, img){
	var obj = document.getElementById(id);
	obj.src= img;
}
/// function pour l'outil recherche ///
// redirige a la page de l'artiste
function ChangeArtist(ARTISAN, Langue){
	if(ARTISAN == "NULL"){
		window.location="main.cfm?p=03_100&l=" + Langue + "&aID=" + ARTISAN;
	}else{
		window.location="main.cfm?p=03_200&l=" + Langue + "&aID=" + ARTISAN;
	}
	
}
// affiche les artistes relie a cet obj 
function ChangeObject(Object, Langue){
	window.location="main.cfm?p=03_100&l=" + Langue + "&oID=" + Object;
}
// affiche les artistes relie a cette matiere
function ChangeMatiere(Matiere, Langue){
	window.location="main.cfm?p=03_100&l=" + Langue + "&mID=" + Matiere;
}