<!--
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";

if(navigator.plugins && navigator.plugins.length) {
	x = navigator.plugins["Shockwave Flash"];
	if(x){
		flashinstalled = 2;
		if (x.description){
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if(navigator.plugins["Shockwave Flash 2.0"]){
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length) {
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}
else
	MSDetect = "true";

if(MSDetect == "true") {
    for(var i=7; i>0; i--){
		flashversion = 0;
		try{
			var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
			flashversion = i;
			break;
		}
		catch(e){
		}
	}
}

//alert(MSDetect);
//alert(flashVersion);
// -->


function embedCode() {
    alert("flashversion.."+flashversion);

    /*
         wmode="transparent"
         required to make the flash movie transparent, thereby HTML elements like Menus can be overlapped...
         Macromedia Flash Player version 6,0,65,0 (Windows) or 6,0,67,0 (Macintosh) or higher required for this feature.
    */

    if(flashinstalled == 2) {
        // some browsers won't show the version properly but still it would have been installed
        if(flashversion >= 6) {
            // Flash Installed
            document.writeln('<embed src="BannerAd_Orange_Niteo.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="588" height="50" name="Spreadsheet_Webinar_FlashFile" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
            return;
        }
        else {
            //alert("flashversion -"+flashversion);
            document.writeln('<A href="/cpmwebinar/"><IMG SRC="/img/flashBannerAd.jpg" Border=0 WIDTH=588 HEIGHT=50 ALT=""></A>');
            return;
        }
    }
    else { // Flash Not Installed, IE may show like this
        if(flashversion >= 6) {
            // For IE
            document.writeln('<embed src="BannerAd_Orange_Niteo.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="588" height="50" name="Spreadsheet_Webinar_FlashFile" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
            return;
        }
        else {
            // for flashinstalled == 0 and 1
            document.writeln('<A href="/cpmwebinar/"><IMG SRC="/img/flashBannerAd.jpg" Border=0 WIDTH=588 HEIGHT=50 ALT=""></A>');
            return;
        }
    }

} // end of function
