// ---- DISPLAY FLASH ----- //
	function displayFlash(path,w,h,img,link,id,color,wmode) {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+id+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+path+'" /><param name="wmode" value="'+wmode+'" /><param name="quality" value="high" /><param name="bgcolor" value="'+color+'" /><embed src="'+path+'" quality="high" bgcolor="'+color+'" wmode="'+wmode+'" width="'+w+'" height="'+h+'" name="'+id+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}

// Trailer Muse

	function whichBrs() {
		var agt=navigator.userAgent.toLowerCase();
		if (agt.indexOf("opera") != -1) return 'Opera';
		if (agt.indexOf("staroffice") != -1) return 'Star Office';
		if (agt.indexOf("beonex") != -1) return 'Beonex';
		if (agt.indexOf("chimera") != -1) return 'Chimera';
		if (agt.indexOf("netpositive") != -1) return 'NetPositive';
		if (agt.indexOf("phoenix") != -1) return 'Phoenix';
		if (agt.indexOf("firefox") != -1) return 'Firefox';
		if (agt.indexOf("safari") != -1) return 'Safari';
		if (agt.indexOf("skipstone") != -1) return 'SkipStone';
		if (agt.indexOf("msie") != -1) return 'MSIE';
		if (agt.indexOf("netscape") != -1) return 'NS';
		if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
		if (agt.indexOf('\/') != -1) {
		if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
		return navigator.userAgent.substr(0,agt.indexOf('\/'));}
		else return 'Netscape';} else if (agt.indexOf(' ') != -1)
		return navigator.userAgent.substr(0,agt.indexOf(' '));
		else return navigator.userAgent;
	}

	function openTrailer(language_id,title,mov,w,h){
		browserName = whichBrs();		
		if(browserName!="Safari"){
				h = 380;		
		
					switch(browsername) {
						case "MSIE": ypos = document.body.scrollTop; break;
						case "NS": ypos = window.scrollY; break;
						default: ypos = document.body.scrollTop; break;
					}		
					var myWidth = 0, myHeight = 0;
				if( typeof( window.innerWidth ) == 'number' ) {
						//Non-IE
						myWidth = window.innerWidth;
						myHeight = window.innerHeight;
					} else if( document.documentElement &&
					    ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
					  //IE 6+ in 'standards compliant mode'
					  myWidth = document.documentElement.clientWidth;
					  myHeight = document.documentElement.clientHeight;
					} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
					  //IE 4 compatible
					  myWidth = document.body.clientWidth;
					  myHeight = document.body.clientHeight;
					}
					document.getElementById("popin_trailer").style.top = ypos + (myHeight/2) - (h/2) + "px";
					/*document.getElementById("popin_trailer").style.left = (myWidth/2) - (w/2) + "px";*/
		
				title = title.toUpperCase();
		
				document.getElementById("popin_trailer").style.display = "block";	
					
				myTitle = '				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="504" height="51" name="Titre" id="Titre" style="display:block;" VIEWASTEXT>';
				myTitle = myTitle + '	<param name="movie" value="/'+language_id+'/flash/titres_trailer.swf?title='+title+'">';
				myTitle = myTitle + '	<param name="quality" value="high">';
				myTitle = myTitle + '	<param name="wmode" value="opaque">';
				myTitle = myTitle + '	<embed src="/'+language_id+'/flash/titres_trailer.swf?title='+title+'" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" style="display:block;" type="application/x-shockwave-flash" width="504" height="51" name="Titre"></object>';
				document.getElementById("popin_trailer_title").innerHTML = myTitle;
		
		
		
				if(document.getElementById("popin_trailer").style.display == "block"){
					/*myContent = '				<div style="text-align:center;vertical-align:middle;">';
					myContent = myContent + '	<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" align="center" WIDTH="'+w+'" HEIGHT="'+h+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">';
					myContent = myContent + '		<PARAM NAME="controller" VALUE="TRUE">';
					myContent = myContent + '		      <PARAM NAME="type" VALUE="video/quicktime">';
					myContent = myContent + '		      <PARAM NAME="autoplay" VALUE="true">';
					myContent = myContent + '		      <PARAM NAME="target" VALUE="myself">';
					myContent = myContent + '		      <PARAM NAME="src" VALUE="'+mov+'">';
					myContent = myContent + '		      <PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/index.html">';
					myContent = myContent + '		     <EMBED WIDTH="'+w+'" HEIGHT="'+h+'" align="center" CONTROLLER="TRUE" TARGET="myself" SRC="'+mov+'" type="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/index.html"></EMBED>';
					myContent = myContent + '		</OBJECT>';
                     myContent = myContent + '	</div>';
                       */
                   myContent = '<div style="padding:40px 0;"><center>' + mov + '</center></div>';
					//myContent = myContent + '		<EMBED WIDTH="'+w+'" HEIGHT="'+h+'" style="display:block;" CONTROLLER="TRUE" SRC="'+mov+'" type="video/quicktime" PLUGINSPAGE="http://www.apple.com/quicktime/download/index.html"></EMBED>';
					//
					document.getElementById("popin_trailer_mov").innerHTML = myContent;
				}
		
		}else{
			openwin(mov,h,w);
		}
		
	}


	function closeTrailer(){
		document.getElementById("popin_trailer_mov").innerHTML = "&nbsp;";
		document.getElementById("popin_trailer").style.display = "none";
	}
	
	
	


function openwin(filename,height,width){
window.open(filename,"","height="+height+",width="+width)
}

function MM_swapImgRestore() { //v3.0
  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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_findObj(n, d) { //v4.01
  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() { //v3.0
  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 imprimer() {	
var mac = (navigator.appVersion.indexOf("Mac") != -1); 

if(mac) alert('If you are currently using a Macintosh, please print from the "File" menu. Thank you'); 
else    window.print(); 
}
 


function PopFlash()
	{
	MM_openBrWindow('../help.htm','','width=405,height=368,left=0,top=0');
	}
	
	
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindowCentrer(theURL,winName,w,h) 
{ //v2.0
  var top=(screen.width/2)-(w/2);
  var left=(screen.height/2)-(h/2);
  window.open(theURL,winName,'menubar=no,scrollbars=no,statusbar=no,left='+top+',top='+left+',width='+w+',height='+h);
}

function MM_openBrWindowCentrerFeatures(theURL,winName,features,w,h) 
{ //v2.1
  var top=(screen.width/2)-(w/2);
  var left=(screen.height/2)-(h/2);
  window.open(theURL,winName,features + ',left='+top+',top='+left+',width='+w+',height='+h);
}


function checkEmail(to_check) 
	{
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(to_check)){
	return (true)}
	}
	
	
function open_label()
	{
		MM_openBrWindow('../../4105/label.asp','','width=740,height=445,left=0,top=0');
	}
		
		
function print_page(url) 
	{
	window.open("print.asp?url=" + url,'','scrollbars=yes,height=445,width=480,toolbar=yes,left=0,top=0');
	}

function print_page_url(print_location,url) 
	{
	window.open(print_location + "?url=" + url,'','scrollbars=yes,height=445,width=617,toolbar=yes,left=0,top=0');
	}

function goback() 
	{
	history.back();
	}
	
	
function open_signup()
	{
		MM_openBrWindow('signup.asp','','width=450,height=445,left=0,top=0,scrollbars=yes');
	}
	
function CookieDetect(page)
	{
	chkcookie = 'test';
	document.cookie = chkcookie;
	if (document.cookie.indexOf(chkcookie,0) < 0) 
		{
	    if(page != "")
			return true;
		else
			document.location.replace(page);
			return false;
	    }
	else 
		{
	   return true;
	   }
}

//********************************************
//*Used best with the getfilename() in nav_functions to pass the page that should
//* be loaded into the content
//*detect_parent_loaded("<%=HOMEPAGE%>",content_url);
//********************************************
function detect_parent_loaded(parent_url,content_url)
	{
	if (window.parent==window)
		{
		document.location.replace("redirect.asp?content=" + content_url);
		}
	}

//*************************************************************
//netsape 6 and 7 returns a 5 but 4.7 is 4.7
//*************************************************************
var browsername;
function browser_detection(supported)
	{
	browsername=navigator.appName;
	

	if (browsername.indexOf("Netscape")!=-1) 
		{
		browsername="NS"
		}
	else
		{
		if (browsername.indexOf("Microsoft")!=-1)
			{browsername="MSIE"}
		else 
			{browsername="N/A"}};
	//detect the browserversion
	browserversion="0";

	var safari = navigator.appVersion.search(/Safari/);


	if (navigator.appVersion.indexOf("2.")!=-1) 
		{browserversion="2";
		}
	if (navigator.appVersion.indexOf("3.")!=-1) 
		{browserversion="3";
		}
	if (navigator.appVersion.indexOf("5.")!=-1) 
		{browserversion="5";
		}
	if (navigator.appVersion.indexOf("4")!=-1) 
		{browserversion="4";
		if(safari != -1)
		{browserversion="100";}	
		}
	if (navigator.appVersion.indexOf("6.")!=-1) 
		{browserversion="6";
		}
	if (navigator.appVersion.indexOf("7.")!=-1) 
		{browserversion="7";
		}
		
	// Send visitor to relevant pages
	if (browsername=="NS" && parseInt(browserversion) < supported) 
		{
		document.location.replace("../commun/flashdetect/nonetscape.html")
		}
	
	//if (browsername=="N/A") 
	//	{window.location="http://www.webcrawler.com"};
	


	}
	


//-->


<!--
/*****************************************************
 *                                                   *
 *              Flash Plugin Check v1.03             *
 *                                                   *
 *              Written by Steve Vachon              *
 *                  (a.k.a Prometh)                  *
 *                                                   *
 *              www.svachon.com/scripts              *
 *                                                   *
 *****************************************************/

var targetMajor = 6;	// The major version you want to detect - mustn't contain decimals
var targetMinor = 0;	// The release number (example where 79 is the minor version: 6,0,79,0) - leave as 0 if uncertain

// Leave the following untouched unless you know what you're doing
var hasFlash = false,
    hasActiveX = false,
    navPlugins = (navigator.plugins.length > 0),
    isIE = (navigator.appVersion.indexOf("MSIE") > -1),
    ieVer = parseFloat(navigator.appVersion.split("MSIE")[1]),
    isWin = (navigator.appVersion.indexOf("Windows") > -1),
    isMac = (navigator.appVersion.indexOf("Mac") > -1);

// Variables that will later contain version information
var fullVersion, majorVersion, minorVersion;

if(navPlugins || (isIE && isMac && ieVer >= 5)) {	// Less than IE5 on the MAC have no plugins object
	var plugin = navigator.plugins["Shockwave Flash"];
	var pluginDescription = plugin.description.split(" ");
	for(var i=0; i<pluginDescription.length; i++) {
		if(!isNaN(parseInt(pluginDescription[i]))) {
			majorVersion = parseInt(pluginDescription[i]);
			minorVersion = parseInt(plugin.description.split("r")[1]);
			break;
		}
	}
	if(majorVersion >= targetMajor && minorVersion >= targetMinor) hasFlash = true;
}
else if(isWin && isIE) {
	document.write('<script language=VBScript\>\n');
	document.write('function isHere(chk)\n');
	document.write('  isHere = false\n');
	document.write('  on error resume next\n');
	document.write('  if ScriptEngineMajorVersion > 1 then\n');
	document.write('    isHere = IsObject(CreateObject(chk))\n');
	document.write('  end if\n');
	document.write('end function\n');
	document.write('</script\>');

	try {
		hasActiveX = isHere("msxml");
		if(!hasActiveX) hasActiveX = isHere("Microsoft.ActiveXPlugin.1");
	} catch(e) {
		hasActiveX = false;
	}
	if(hasActiveX) {
		
		for(var i=2; i<=targetMajor; i++) {
			if(isHere("ShockwaveFlash.ShockwaveFlash."+i)) majorVersion = i;
		}
	}
	minorVersion = 0;	// You cannot detect minor Flash plugin versions in IE on the PC, so cabversion specifies it in the <object> tag
	if(majorVersion >= targetMajor) hasFlash = true;
}
fullVersion = majorVersion+",0,"+minorVersion+",0";	// Can't be trusted in IE on the PC due to the minorVersion problem

function switchLanguage(currLanguage,newLanguage,currLocation)
	{
	newLocation = currLocation.replace(currLanguage,newLanguage)
	document.location.href = newLocation
	}

function clean_utf(str)
	{
	replacement = new RegExp(String.fromCharCode(339),"g");
	str.value = str.value.replace(replacement,"oe");
	replacement = new RegExp(String.fromCharCode(8211),"g");
	str.value = str.value.replace(replacement,"-");
	replacement = new RegExp(String.fromCharCode(8212),"g");
	str.value = str.value.replace(replacement,"-");
	replacement = new RegExp(String.fromCharCode(8230),"g");
	str.value = str.value.replace(replacement,"...");

	replacement = new RegExp(String.fromCharCode(768),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(769),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(771),"g");
	str.value = str.value.replace(replacement,"~");
	replacement = new RegExp(String.fromCharCode(777),"g");
	str.value = str.value.replace(replacement,"'");	
	replacement = new RegExp(String.fromCharCode(803),"g");
	str.value = str.value.replace(replacement,".");
	replacement = new RegExp(String.fromCharCode(894),"g");
	str.value = str.value.replace(replacement,";");
	replacement = new RegExp(String.fromCharCode(900),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(171),"g");
	str.value = str.value.replace(replacement,'"');	
	replacement = new RegExp(String.fromCharCode(187),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(1764),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(1765),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(733),"g");
	str.value = str.value.replace(replacement,'"');	
	replacement = new RegExp(String.fromCharCode(8213),"g");
	str.value = str.value.replace(replacement,'_');
	replacement = new RegExp(String.fromCharCode(8215),"g");
	str.value = str.value.replace(replacement,'_');
	replacement = new RegExp(String.fromCharCode(8216),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8217),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8218),"g");
	str.value = str.value.replace(replacement,",");
	replacement = new RegExp(String.fromCharCode(8219),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8220),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8221),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8242),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(8243),"g");
	str.value = str.value.replace(replacement,'"');
	replacement = new RegExp(String.fromCharCode(8722),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(9472),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(59450),"g");
	str.value = str.value.replace(replacement,'-');
	replacement = new RegExp(String.fromCharCode(61444),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61445),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61446),"g");
	str.value = str.value.replace(replacement,',');
	replacement = new RegExp(String.fromCharCode(61447),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61448),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61449),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61455),"g");
	str.value = str.value.replace(replacement,"'");
	replacement = new RegExp(String.fromCharCode(61461),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(61463),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(61464),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(64465),"g");
	str.value = str.value.replace(replacement,'~');
	replacement = new RegExp(String.fromCharCode(8482),"g");
	str.value = str.value.replace(replacement,'(tm) ');
	replacement = new RegExp(String.fromCharCode(8539),"g");
	str.value = str.value.replace(replacement,'1/8');
	replacement = new RegExp(String.fromCharCode(8540),"g");
	str.value = str.value.replace(replacement,'3/8');
	replacement = new RegExp(String.fromCharCode(8541),"g");
	str.value = str.value.replace(replacement,'5/8');
	replacement = new RegExp(String.fromCharCode(8542),"g");
	str.value = str.value.replace(replacement,'7/8');
	replacement = new RegExp(String.fromCharCode(8364),"g");
	str.value = str.value.replace(replacement,' Euros');
	replacement = new RegExp(String.fromCharCode(8362),"g");
	str.value = str.value.replace(replacement,' Sheqels');
	replacement = new RegExp(String.fromCharCode(8359),"g");
	str.value = str.value.replace(replacement,' Pesetas');
	replacement = new RegExp(String.fromCharCode(8356),"g");
	str.value = str.value.replace(replacement,' Liras');
	replacement = new RegExp(String.fromCharCode(8355),"g");
	str.value = str.value.replace(replacement,' Francs');
	replacement = new RegExp(String.fromCharCode(64830),"g");
	str.value = str.value.replace(replacement,'(');
	replacement = new RegExp(String.fromCharCode(64831),"g");
	str.value = str.value.replace(replacement,')');
	
	//alert(title.charCodeAt(i) + " = " + title.charAt(i));
	
	}


//-->