<!--
//23 Jun 2008
var ES_latest_ver = 2263;	//not used in this script, but can be used in other pages
var ES_obsolete_ver = 2250;	//used below.  Will ask user to update.

var alertIE_yellow = 'You need EdgeStream’s media player software component to watch videos ' + 
					'hosted on the EdgeStream Video Delivery Network. Please click the yellow ' + 
					'bar on top of the page and select ‘Install ActiveX Control’ to download ' + 
					'and install the EdgeStream software.\n\n' +
					'Once the software is installed, click any of the video links and watch how ' + 
					'our break through technology platform and \nnetwork delivers videos to standard ' + 
					'media players without any buffering, interruptions or degradation to video signal.'

var alertIE_get = 'You need EdgeStream’s media player software component to watch videos hosted on ' + 
				'the EdgeStream Video Delivery Network. Please click on the "Get EdgeStream Software" ' + 
				'icon on this page and install the EdgeStream software.\n\n'  +  'Once the software is ' + 
				'installed, click any of the video links and watch how our break through technology ' + 
				'platform and network delivers videos to standard media players without any buffering, ' + 
				'interruptions or degradation to video signal.'

var alertIE_old = 'A new version of the EdgeStream software is available.\nPlease click on the "Get ' + 
				'EdgeStream Software" icon on this page\nand install the latest EdgeStream software.'
               
var alertFF_get = 'To enable high quality streaming video from the EdgeStream Delivery Network,\n' + 
				  'please click on the  "Get EdgeStream Software"  icon on this page.'

var agt=navigator.userAgent.toLowerCase(); 
var is_win   = ( (agt.indexOf("windows")!=-1) || (agt.indexOf("16bit")!=-1) );

var is_opera = (agt.indexOf("opera") != -1);
var is_ie     = ((agt.indexOf("msie") != -1) &&  (agt.indexOf("opera") == -1) );

var is_nav = (navigator.appName=="Netscape" && navigator.userAgent.indexOf("Netscape")!=-1);
var is_firefox = (navigator.appName=="Netscape" && navigator.userAgent.indexOf("Firefox")!=-1);

//alert( 'navigator.appName:' + navigator.appName + ',  navigator.userAgent:' + navigator.userAgent );
//if (is_nav) alert( 'Netscape detected');
//if (is_firefox) alert( 'Firefox detected');
//if (is_ie) alert( 'IE detected');

var version;
if ( is_ie)
     {
      try { version = ESPlugin.Version; }
      catch(e)  { //alert ('activeX not loaded - error msg: ' + e); 
                }
      if ( version == null ) 
        { alert( alertIE_yellow ); }
       else if ( version == 0) 
        { alert( alertIE_get ); }
       else if ( version <= ES_obsolete_ver ) 
        { alert( alertIE_old ); }
     }

 if(is_nav || is_firefox)
    {
      //alert('is_nav || is_firefox');
      try
         {
          if ("createEvent" in document) 
			{ 
			 var element = document.createElement("EdgeStreamDataElement"); 
			 document.documentElement.appendChild(element); 
			 var ev = document.createEvent("Events"); 
			 ev.initEvent("EdgeStreamEvent", true, false); 
			 element.dispatchEvent(ev);
			 if(element.getAttribute("ESC_Version"))
				{
				  version = element.getAttribute("ESC_Version");
				  //alert("EdgeStreamClient Version = " + element.getAttribute("ESC_Version") + ", version=" + version );
				 }
	         } 
          } //end try
      catch(err)  { alert('firefox-netscape: ' + err.description); }
      if ( version == null || version == 0 ) { alert( alertFF_get ); }
   }
//-->