
	// setTitle (UNUSED -> voir footer.xml)
	//////////////////////////////////////////////// 
	function setTitle( title ) {
		document.pageTitle.value = title;
	}
	
	//	Ouverture d'une fenetre popup
	//  @param : URL,WindowName, parametres d'ouverture
	//////////////////////////////////////////////// 
	function popup(theURL,winName,features)
	{
		window.open( theURL ,winName,features);
	}
	
	//	Post le formulaire dans une popup
	//  @param : URL,WindowName, paramétres d'ouverture
	//////////////////////////////////////////////// 
	function sendFormInPopup(strAction, winName, features ){
		window.open("",winName,features);
		document.FORM.action = strAction ;
		document.FORM.target = winName ;
		document.FORM.submit();
	}	
	// showWait
	//////////////////////////////////////////////// 
	function showWait( ) {
		//if (parent.frames['search']) {
		//	parent.frames['search'].show("wait");
		//}
	}
	
	// autoSearchTimbre
	//////////////////////////////////////////////// 
	function autoSearchTimbre( _yearId, _themeId, _typeId, _editorId, _subject, _city, _themeLabel, _themeImage ) {
		document.location = 'timbre-france-thematique.php?action=search&searchYear='+_yearId+
											'&searchTheme='+_themeId+'&searchType='+_typeId+'&searchEditor='+
											_editorId+'&searchSubject='+_subject+'&searchCity='+_city+'&label='+_themeLabel+'&image='+_themeImage;
	}		
	
	// autoSearchFDC
	//////////////////////////////////////////////// 
	function autoSearchFDC( _yearId, _themeId, _typeId, _editorId, _subject, _city, _themeLabel, _themeImage ) {
		document.location = 'fdc-france-theme.php?action=search&searchYear='+_yearId+
											'&searchTheme='+_themeId+'&searchType='+_typeId+'&searchEditor='+
											_editorId+'&searchSubject='+_subject+'&searchCity='+_city+'&label='+_themeLabel+'&image='+_themeImage;
	}		
	
	// setThematicImage
	////////////////////////////////////////////////
	function setThematicImage(_image) {
	 document.getElementById('thematicImage').src='img/themes/'+_image;
	}

	// Image swapping
	//////////////////////////////////////////////// 
	//detect browser:
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
	else if (browserName == "Microsoft Internet Explorer" && browserVer == 4) browserVer = "1";
	else browserVer = "2";

	//preload images:
	if (browserVer == 1) {
		btnLeft = new Image(19,20);
		btnLeft.src = "img/btnLeft.gif";
		btnLeftOn = new Image(19,20);
		btnLeftOn.src = "img/btnLeftOn.gif";
		btnRight = new Image(19,20);
		btnRight.src = "img/btnRight.gif";
		btnRightOn = new Image(19,20);
		btnRightOn.src = "img/btnRightOn.gif";
	}

	//image swapping function:
	function hiLite(imgDocID, imgObjName, comment) {
		if (browserVer == 1) {
			//alert(imgObjName );
			document.images[imgDocID].src = eval(imgObjName + ".src");
			window.status = comment; 
			return true;
		}	
	}
	
	// openLoading : utilise par insert_announce.php
	function openLoading() {
		popupLoading = window.open('loading.php','popupLoading','width=100,height=60,top=300,left=300,scrollbars=no');
	}

	// closeLoading : utilise par insert_announce.php
	function closeLoading() {
			popupLoading = window.open('','popupLoading','width=1,height=1,scrollbars=no,top=3000,left=3000');
			window['popupLoading'].close();
	}	

	// showZoom
	function showZoom(fileName, zoomFileName) {
		document.getElementById(fileName+'_img').src=zoomFileName;
		document.getElementById(fileName).style.display='block';
	}	

	// hideZoom
	function hideZoom(fileName) {
		document.getElementById(fileName).style.display='none';
	}	

	// refreshwithanchor
	function refreshwithanchor( anchorName ) {
		var url = window.location.href;
		var pos = url.indexOf('?');
		if (pos>0) {
		  url = url.substr(0,pos);
		}
		window.location = url+'?a='+anchorName;
	}	

	// gotoAnchor
  function gotoAnchor( )
  {
    var parameters = location.search.substring(1).split("&");
    var temp = parameters[0].split("=");
    a = unescape(temp[1]);
		if (temp[0]=="a") {
      window.location = window.location+'#'+a; 
		}	
  }
		
	
//end hiding -->