<!--


//This script detects the following:
//RealPlayer
//Acrobat Reader
var cookie_name_real = "EON_PlugInReal"; 
var cookie_name_acrobat = "EON_PlugInAcrobat"; 
var cookie_name_test = "EON_Test"; 


var oReal;
var oAcrobat;

// alert(name + ": " + result);
function detectIE(ClassID,name) { result = false; document.write('<SCR' + 'IPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '")) </SCR' + 'IPT>\n'); if (result) return name+','; else return ''; }
function detectW3C(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes && navigator.mimeTypes[ClassID] != null) n = name+","; return n; }


function deleteCookie() {
	document.cookie=cookie_name_real+'=True; expires=Tuesday, 05-Apr-2002 05:00:00 GMT';
	document.cookie=cookie_name_acrobat+'=True; expires=Tuesday, 05-Apr-2002 05:00:00 GMT';
}



function testCookie() {
if (document.cookie) {
	document.cookie=cookie_name_test+'=True; expires=Tuesday, 05-Apr-2005 05:00:00 GMT';
	testcookie = true;
}
	else {testcookie = false}
}



function checkSite() {
	testCookie();

//  See if the Cookie for REAL is written
	
	if (document.cookie) 
	{
	index = document.cookie.indexOf('EON_PlugInReal');
	index2 = document.cookie.indexOf('EON_PlugInAcrobat');
	}
	else {index = -1; index2 = -1;} 
	
	//  If the cookie is NOT written, then check if Real is installed
	if (index == -1) {

			if (isExp && !isMac) {isReal = detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer"); }
			if (isW3C || isMac) {
					nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
					isReal = detectW3C("audio/x-pn-realaudio-plugin","RealPlayer");        
			}

			isReal += navigator.javaEnabled() ? "Java," : "";
			if (isReal.length > 0) isReal = isReal.substring(0,isReal.length-1);
	

			//  If the Player is installed, then set a cookie so we don't check this again
			if (isReal.indexOf("RealPlayer")!=-1)
			{
				oReal = true;
				document.cookie=cookie_name_real+'=True; expires=Tuesday, 05-Apr-2005 05:00:00 GMT';
			}
			else
				oReal = false;
		}
	else
		oReal = true;
			
	// **********************************************************************************************
	
	//  See if the Cookie for ACROBAT is written
	//  If the cookie is NOT written, then check if ACROBAT is installed
	if (index2 == -1)
		
		{
			//if (isExp && !isMac) {isAcrobat = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("AcroExch.Document","Acrobat Reader") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
			if (isExp && !isMac) {isAcrobat = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("AcroExch.Document.7","Acrobat Reader") + detectIE("PDF.PdfCtrl.5","Acrobat Reader")+ detectIE("PDF.PdfCtrl.6","Acrobat Reader") + detectIE("PDF.PdfCtrl.7","Acrobat Reader") + detectIE("pdf.ocx","Acrobat Reader") + detectIE("AcroPDF.PDF","Acrobat Reader"); }
			if (isW3C || isMac) {
					nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
					isAcrobat = detectW3C("application/pdf","Acrobat Reader");  
					
			}
	
			isAcrobat += navigator.javaEnabled() ? "Java," : "";
			if (isAcrobat.length > 0) isAcrobat = isAcrobat.substring(0,isAcrobat.length-1);

			

			//  If Acrobat is installed, then set a cookie so we don't check this again
			if (isAcrobat.indexOf("Acrobat Reader")!=-1)
			{
				oAcrobat = true;
				document.cookie=cookie_name_acrobat+'=True; expires=Tuesday, 05-Apr-2005 05:00:00 GMT';
			}
			else
				oAcrobat = false;
		}
		
	else

	oAcrobat = true;
}
//-->