<!--
window.defaultStatus = "Bienvenido a PREMENASA Precisión Mecánica Naval, S.A.";
//
/*
This bumper page determines if the user's browser fits into one of four categories:
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 their deal is
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).
Please note that this script could be more efficient
but it has been designed to be as easy to understand as possible
*/
//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
//-------------------------------------
//Do Netscape tests for flash plugin
if (browser_name.indexOf("Netscape")!=-1){
	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=5; //unsure if they're using any version of IE on mac
}else if ((user_agent.indexOf("MSIE") > 0) || (browser_name.indexOf("Netscape") > 0)){
	browser_capability_level=6; //we're unsure what the sitch is if they're not using ie or netscape
}
// -->

