<!--
/*******************************************************************************************
	(c) 2003 spot-media AG
	Lange Reihe 2
	20099 Hamburg
	
	All rights reserved
	
 *******************************************************************************************/
 
/*******************************************************************************************
	Constants
	
 *******************************************************************************************/
 
 var MAIN_INCLUDED		= true;
 
 var BROWSER_MSIE4x 	= (parseInt(navigator.appVersion) == 4 && navigator.userAgent.indexOf("MSIE") != (-1) ? true : false);
 var BROWSER_MSIE5 		= ((navigator.appVersion.indexOf("MSIE 5") != (-1)) && navigator.userAgent.indexOf("MSIE") != (-1) ? true : false);
 var BROWSER_MSIE6		= ((navigator.appVersion.indexOf("MSIE 6") != -1 ) && navigator.userAgent.indexOf("MSIE") != (-1) ? true : false);
 
 var BROWSER_NN3 		= (parseInt(navigator.appVersion) <= 4 && navigator.appName == "Netscape" ? true : false);
 var BROWSER_NN4 		= (parseInt(navigator.appVersion) == 4 && navigator.appName == "Netscape" ? true : false);
 var BROWSER_NN5x 		= (parseInt(navigator.appVersion) >= 5 && navigator.appName == "Netscape" ? true : false);

 var BROWSER_MICROSOFT 	= (navigator.appName.indexOf("Microsoft") != (-1) ? true : false);
 var BROWSER_NETSCAPE  	= (navigator.appName.indexOf("Netscape") != (-1) ? true : false);

 var PLATFORM_WIN31 	= (navigator.appName.indexOf("3.1") != (-1) ? true : false);
 var PLATFORM_MAC 		= (navigator.appVersion.indexOf("Mac") != (-1) ? true : false);
 
 
/*******************************************************************************************
	Global identefiers
	
 *******************************************************************************************/
 
 currentUserAgent = navigator.userAgent.toLowerCase();

 
/*******************************************************************************************
	Global identefiers
	
 *******************************************************************************************/
 
 var flashVersion 	= 0;
 var flashAvailable = false;
 
 
/*******************************************************************************************
	Detect Shockwave Flash Object
	
 *******************************************************************************************/
 
 if ((BROWSER_MICROSOFT) &&
 	 (!PLATFORM_MAC)) {
  	document.write("<script language=\"VBScript\">\n");
    document.write("On error resume next\n");
    document.write("flash = NOT IsNull(CreateObject(\"ShockwaveFlash.ShockwaveFlash\"))\n");
    document.write("</script>\n");
 }

 if ((!BROWSER_MICROSOFT) ||
     ((navigator.plugins) && (navigator.plugins.length))) {
 	flashAvailable = ((navigator.plugins && navigator.plugins["Shockwave Flash"]) ? true : false);
 }
 else if (!PLATFORM_WIN31) {
 	if (window.flash != null) { 
		flashAvailable = window.flash ? true : false; 
	}
 }
 
 
/*******************************************************************************************
	Detect Shockwave Flash Version
	
 *******************************************************************************************/
 
 if (flashAvailable) {
 	if (navigator.plugins != null && navigator.plugins.length > 0) {
	    var flashPlugin = navigator.plugins["Shockwave Flash"];
	    
		if (typeof(flashPlugin) == "object") {
			if (flashPlugin.description.indexOf("9.") != -1) {
				flashVersion = 6;
			}
			else if (flashPlugin.description.indexOf("8.") != -1) {
				flashVersion = 6;
			}
			else if (flashPlugin.description.indexOf("7.") != -1) {
				flashVersion = 6;
			}
            else if (flashPlugin.description.indexOf("6.") != -1) {
				flashVersion = 6;
			}
            else if (flashPlugin.description.indexOf("5.") != -1) {
				flashVersion = 5;
			}
            else if (flashPlugin.description.indexOf("4.") != -1) {
				flashVersion = 4;
			}
            else if (flashPlugin.description.indexOf("3.") != -1) {
				flashVersion = 3;
			}
	    }
	}
	else if (currentUserAgent.indexOf("msie") != (-1) && parseInt(navigator.appVersion) >= 4 && currentUserAgent.indexOf("win") != (-1) && currentUserAgent.indexOf("16bit") == (-1)) {
         document.write('<script language="VBScript"\>\n');
         document.write('on error resume next\n');
		 document.write('if IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")) then flashVersion = 9\n');
		 document.write('if flashVersion < 9 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")) then flashVersion = 8\n');
		 document.write('if flashVersion < 8 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")) then flashVersion = 7\n');
         document.write('if flashVersion < 7 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")) then flashVersion = 6\n');
         document.write('if flashVersion < 6 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")) then flashVersion = 5\n');
         document.write('if flashVersion < 5 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")) then flashVersion = 4\n');
         document.write('if flashVersion < 4 and IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")) then flashVersion = 3\n');
         document.write('</script\>\n');
	 }
	 else if (agent.indexOf("webtv/2.5") != -1)  { 
	 	flashVersion = 3;
	 }
	 else if (agent.indexOf("webtv") != -1) { 
	 	flashVersion = 2;
	 }
 }
 
/* end */
//-->
