var give_your_mail = 'Entrez votre e-mail';

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
var MM_FlashCanPlay;
if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
     for (var i = 0; i < words.length; ++i)
     {
  if (isNaN(parseInt(words[i])))
  continue;
  var MM_PluginVersion = words[i];
     }
 MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   && (navigator.appVersion.indexOf("Win") != -1)) {
 document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
 document.write('on error resume next \n');
 document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
 document.write('</SCR' + 'IPT\> \n');
}

if (!document.getElementById) {
	document.getElementById = getObjectById;
}

function getObjectById(ID) {
	var obj;
	if (bw.dom)
		return document.getElementById(ID);
	else if (bw.ie4)
		return document.all(ID);
	else if (bw.ns4)
		return eval('document.' + ID);
}
 
function clearEMailInput() {
	if (document.getElementById('email').value = give_your_mail) {
		document.getElementById('email').value = '';
	}
}

function initEMailInput() {
	if (document.getElementById('email').value=='') {
		document.getElementById('email').value = give_your_mail;		
	}
}

// Navigation (pagination) dans les résultats de recherche
function submitSearchByPage(formul, nPageIndex){
	var pos = this.location.href.indexOf('page_index=');
	if (pos == -1){
		var strAction = this.location.href +'&page_index='+nPageIndex;
	}else {
		
		var strAction = this.location.href.substring(0,pos-1)+'&page_index='+nPageIndex;
	}
	formul.method='POST';	
	formul.action = strAction;
	formul.target = "";
	formul.submit();
}