function OpenWindow( url, width, height, options, name ) {
	if ( ! width ) width = 640;
	if ( ! height ) height = 420;
	if ( ! options ) options = "scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
	if ( ! name ) name = "outsideSiteWindow";
		var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options );
}

var flash2Installed = false;    
var flash3Installed = false;    
var flash4Installed = false;   
var flash5Installed = false;    
var flash6Installed = false;  
var maxVersion = 6; 
var actualVersion = 0;         
var hasRightVersion = false; 
var jsVersion = 1.0;
var gotflash = 0;

<!----------------------------------------------------->
<!------------ START BROWSER DETECT SCRIPT ------------>
<!----------------------------------------------------->

// Check the browser...we're looking for ie/win
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
// This is a js1.1 code block, so make note that js1.1 is supported.
jsVersion = 1.1;
// Write vbscript detection on ie win. IE on Windows doesn't support regular
// JavaScript plugins array detection.
if(isIE && isWin){
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  
	document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); 
	document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
}

<!----------------------------------------------------->
<!------------- END BROWSER DETECT SCRIPT ------------->
<!----------------------------------------------------->


<!--------------------------------------------------->
<!------------ START FLASH DETECT SCRIPT ------------>
<!--------------------------------------------------->
function detectFlash() {  
// If navigator.plugins exists...
	if (navigator.plugins) {
	// ...then check for flash 2 or flash 3+.
		if (navigator.plugins["Shockwave Flash 2.0"]
			|| navigator.plugins["Shockwave Flash"]) {
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			// alert("Flash plugin description: " + flashDescription);
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
			flash2Installed = flashVersion == 2;    
			flash3Installed = flashVersion == 3;
			flash4Installed = flashVersion == 4;
			flash5Installed = flashVersion == 5;
			flash6Installed = flashVersion >= 6;
		}
	}
	// Loop through all versions we're checking, and
	// set actualVersion to highest detected version.
	for (var i = 2; i <= maxVersion; i++) {  
		if (eval("flash" + i + "Installed") == true) gotflash = i;
	}
}

detectFlash();  // call our detector now that it's safely loaded.  

<!------------------------------------------------->
<!------------ END FLASH DETECT SCRIPT ------------>
<!------------------------------------------------->
//var testImg=new Image();
//testImg.src='/vector/testImg/'+gotflash+'.gif';  

function tOv() {}
	function tOf() {}
	function popTop() {}
	function changeImages() {}
	function clrT() {}
	function clsT() {}
	
function urlMenu(that) {
	theURL = that.options[that.selectedIndex].value; 
	if (theURL) {
		window.location = theURL;
	}
}

function MM_swapImgRestore() { 
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { 
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_reloadPage(init) {  
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
	
function MM_showHideLayers() { 
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
		obj.visibility=v; 
	}
}	


<!------------------------------------------------------->
<!------------ START NEWS SCROLLER FUNCTIONS ------------>
<!------------------------------------------------------->

// Ticker startup
function startTicker()
{
	// Define run time values
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	// Locate base objects
	if (document.getElementById) {	
			theAnchorObject = document.getElementById("tickerAnchor");
			runTheTicker();   	
		 }
	else {
			document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
			return true;
	}
}
// Ticker main run loop
function runTheTicker()
{
	var myTimeout;  
	// Go for the next story data block
	if(theCurrentLength == 0)
	{
		theCurrentStory++;
		theCurrentStory      = theCurrentStory % theItemCount;
		theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"');		
		theTargetLink        = theSiteLinks[theCurrentStory];
		theAnchorObject.href = theTargetLink;
		theAnchorObject.target = theSiteTargets[theCurrentStory];

		thePrefix 	     = "<span class=\"tickls\">" + theLeadString + "</span>";
	}
	// Stuff the current ticker text into the anchor
	theAnchorObject.innerHTML = thePrefix + 
	theStorySummary.substring(0,theCurrentLength) + whatWidget();
	// Modify the length for the substring and define the timer
	if(theCurrentLength != theStorySummary.length)
	{
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
	if(theCurrentLength == theStorySummary.length)
	{
		return theWidgetNone;
	}

	if((theCurrentLength % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}
<!------------------------------------------------------->
<!------------ END NEWS SCROLLER FUNCTIONS ------------>
<!------------------------------------------------------->

function LTrim(String){
	var i = 0;
	var j = String.length - 1;

	if (String == null)
		return (false);

	for (i = 0; i < String.length; i++){
		if (String.substr(i, 1) != ' ' && String.substr(i, 1) != '\t');
		break;
	}

	if (i <= j)
		return (String.substr(i, (j+1)-i));
	else
		return ('');
}

function RTrim(String) {
	var i = 0;
	var j = String.length - 1;

	if (String == null)
		return (false);

	for(j = String.length - 1; j >= 0; j--)
	{
		if (String.substr(j, 1) != ' ' &&
			String.substr(j, 1) != '\t')
		break;
	}

	if (i <= j)
		return (String.substr(i, (j+1)-i));
	else
		return ('');
}
function Trim(String)
{
	if (String == null)
		return (false);

	return RTrim(LTrim(String));
}


// INTERACTIVE MAPS

function mapPop(site){
	exactX =(screen.width - 739)/2;
	exactY = (screen.height -498)/2;
	//window.moveTo(exactX,exactY);
	mapWin = window.open(site,"mapWin","width=739,height=498,toolbar=0,scrollbars=0,menubar=0,left=" + exactX + ",top=" + exactY);
	mapWin.focus();
}

function emptySearch() {
  if (document.searchForm.keyword.value == "Search"  || document.searchForm.keyword.value == "mot(s)-clé(s) ici") {
    document.sitesearch.keyword.value = "";
	}
  }
	
	