var g_plugin = 0;
 
 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] &&    
     navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
 
 	var version_check = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
 	var flash_ver = parseInt(version_check.description.substring(version_check.description.indexOf(".")-1))
 
 	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && flash_ver > 6 )
 		g_plugin = 1;
 
 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
 	&& (navigator.userAgent.indexOf("Windows 95")>=0 
 	|| navigator.userAgent.indexOf("Windows 98")>=0 
 	|| navigator.userAgent.indexOf("Windows NT")>=0)) {
 		document.write('<SCRIPT LANGUAGE=VBScript> \n');
 		document.write('on error resume next \n');
 		//document.write('g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
 		//document.write('g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); //if ( g_plugin <= 0 ) then 
 		document.write('g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); //if ( g_plugin <= 0 ) then 
 		document.write('</SCRI');
 		document.write('PT> \n');
 }
 
 // the following code can change -- for example, you may not redirect to a new page,
 // you may just use javascript to write out the object tag.
 /*
       if ( g_plugin ) {
 		if (FLASHPAGE!=""){
       		//go to flash page
       		document.location = FLASHPAGE;
 		}
       
       }
       else{
       	//go to no flash page
       	document.location = NOFLASHPAGE;
       	
       }
*/

// SCREEN RESOLUTION DETECT

