<html> <head> <title>Boutique Herv St Amour pour Elle et Lui</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript"> //Level 1: has most recent version of flash //Level 2: has older version of flash //Level 3: doesn't have flash //Level 4: we're unsure what they have //We call these 4 states "browser_capability_level" 1-4.  //This script displays an informative graphic according to browser_capability_level //These detection schemes should work on any browser //We should be able to detect flash on N2.0+, IE3+ (Win) and N3.0+ (Mac).   //Define Global Variables 	var browser_capability_level=0; //we don't know anything yet 	var browser_name=navigator.appName; //tells us which browser is in use 	var user_agent=navigator.userAgent; //another variable that helps us determine browser 	var browser_version=parseInt(navigator.appVersion); //tells us which browser version is in use 	var app_version=navigator.appVersion; //helps us determine if user is on mac or win 	var ie_flash_installed=0; 	var ie_flash3_installed=0; //these 2 vars are for the VBscript later on 	var which_browser=""; 	 //Do Netscape tests for flash plugin if (browser_name.indexOf("Netscape")!=-1){ 	which_browser = "Netscape"; 	if (browser_version > 2){ 		if ( (navigator.mimeTypes["application/x-shockwave-flash"]) && (navigator.mimeTypes["application/x-shockwave-flash.enabledPlugin"])){ 			browser_capability_level=2; //they at least have some version of flash installed 		}else{ 			browser_capability_level=3;  //they don't have flash installed 		} 		if (navigator.plugins["Shockwave Flash"]){ 			browser_capability_level=1; //they have flash 3 installed 		} 	} }  //Set browser level to 4(unknown capability) if they are using less than Win: IE3, N3 - Mac: N3, any version of Mac IE if (browser_version < 3){  	browser_capability_level=4; }else if ((user_agent.indexOf("MSIE")!=-1) && (app_version.indexOf("Mac")!=-1)){ 	browser_capability_level=4; //unsure if they're using any version of IE on mac }else if ((user_agent.indexOf("MSIE")==-1) && (browser_name.indexOf("Netscape")==-1)){ 	browser_capability_level=4; //we're unsure what the sitch is if they're not using ie or netscape }  </script> <script language="vbscript"> <!-- 	'DETECTION OF FLASH ACTIVEX FOR IE 	'Will detect on WinNT,95,98 on IE3 and 4	 	on error resume next 	ie_flash_installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash"))) 	ie_flash3_installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))	 --> </script> <script language="javascript"> //wrap up by setting IE vars consistent with N vars 	if (user_agent.indexOf("MSIE")!=-1){ 		which_browser = "MSIE"; 		if (browser_version >= 3){ 			browser_capability_level=3; 		} 		if (ie_flash_installed){ 			browser_capability_level=2; 		} 		if (ie_flash3_installed){ 			browser_capability_level=1; 		} 	} </script> </head>  <body bgcolor="#000000" text="#666666" link="#666666" vlink="#666666" alink="#666666"> <center>   <p>&nbsp; </p>   <p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0" width="300" height="200">       <param name="SRC" value="check.swf">       <embed src="check.swf" pluginspage="http://www.macromedia.com/shockwave/download/" type="application/x-shockwave-flash" width="300" height="200">       </embed>      </object>      <script LANGUAGE="javascript"> //browser_capability_level = 5; if (browser_capability_level == 1){ 	window.location = "index_flash.html";	 }else{  	var s=""; 	if (browser_capability_level == 2){ 		s = "Vous avez une vieille version de Flash d'install&eacute;e<br>You have an old version of Flash installed"; 	}else if (browser_capability_level == 3){ 		s = "Flash n'est pas install&eacute; dans votre fureteur<br>You do not have Flash installed"; 	}else if (browser_capability_level == 4){ 		s = "Nous ne sommes pas certains de la configuration de votre fureteur<br>Were not sure about your browser configuration"; 	}else{ 		window.location = "http://www.stamour.ca/lui.htm"; 	} 		 	document.write('<table border=0 cellpadding=5 cellspacing=1 align=center>'); 	document.write('<tr>'); 	document.write('<td align=center>'); 	document.write(s);		 	 	document.write('</td>'); 	document.write('</tr>'); 	document.write('<tr>'); 	document.write('<td align="center">'); 	document.write('</td></tr>'); 	document.write('</td>'); 	document.write('</tr>'); 	document.write('<tr>'); 	document.write('<td align="center">');      	if (browser_capability_level == 4){ 		document.write("Appuyez sur ce bouton pour t&eacute;l&eacute;charger le plus r&eacute;cent fureteur<br>Click this button to download the latest browser"); 		document.write('</td>'); 		document.write('</tr>'); 		document.write('<tr>');     		document.write('<tr><td align="center">'); 		if (which_browser == "Netscape"){ 			document.write('<b><a href="http://www.netscape.com/">'); 			document.write('<img src="netscape.gif" border="0"></a></b>'); 		} 		else{ 			document.write('<b><a href="http://www.microsoft.com/ie/download/">'); 			document.write('<img src="ieget_animated.gif" border="0"></a></b>'); 		} 		document.write('</td>'); 		document.write('</tr>');		 	}else{ 		document.write("Appuyez sur &quot;Get Flash Player&quot; pour installer Flash<br>Click 'Get Flash Player' button to download the plugin"); 		document.write('</td>'); 		document.write('</tr>'); 		document.write('<tr>');     		document.write('<tr><td align="center">'); 		document.write('<b><a href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'); 		document.write('<img src="http://www.macromedia.com/images/get_flashplayer.gif" border="0"></a></b>'); 		document.write('</td>'); 		document.write('</tr>'); 	} 	document.write('</table>'); } </script>   </p> </center> </body> </html> 
