//-----------------------------------------------------------------------------------------------------------------------
//  Filename			:	flashavailibility.js
//-----------------------------------------------------------------------------------------------------------------------
//  Project			    :	Living Library
//  Language			:	JavaScript
//  Author			    :	N/A
//  Date of creation	:	N/A
//  ----------------------------------------------------------------------------------------------------------------------
//  Descriptions
//
//  Revisions           :
//  Date                Name                                Description
//  28-Sep-2007         Jibu                                javascript file is added in order to surpress the unwanted frame appearing over flash animations(Defect ID:35919) 
//-----------------------------------------------------------------------------------------------------------------------

function checkFlashAvailability()
{
	var SW_contentVersion = 7; //Required Version of Shockwave flash
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		try{
			plugin = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + SW_contentVersion);
		}
		catch(e)
		{
		}
	}

	if (plugin) {
		if (document.getElementById("imgTeaser"))
			document.getElementById("imgTeaser").style.display = "none";
		if (document.getElementById("imgTopicoLator")) 
			document.getElementById("imgTopicoLator").style.display = "none";
	} else{

		if (document.getElementById("divTeaser")){
			document.getElementById("divTeaser").innerHTML = "";
			document.getElementById("divTeaser").style.display = "none";
		}
		if (document.getElementById("divOLator")){
			document.getElementById("divOLator").innerHTML = "";
			document.getElementById("divOLator").style.display = "none";
		}
		if (document.getElementById("imgTopicoLator"))
			document.getElementById("imgTopicoLator").style.display = "block";
		if (document.getElementById("imgTeaser"))
			document.getElementById("imgTeaser").style.display = "block";
		if (document.getElementById("OBJECT1"))
			document.getElementById("OBJECT1").style.display = "none";
		if (document.getElementById("OBJECT2"))
			document.getElementById("OBJECT2").style.display = "none";
	}
}


// This javascript file is added in order to surpress the unwanted frame appearing over flash animations
// (Defect ID:35919 : Change made by Jibu on 28-Sep-2007) 
document.write('<script type="text/javascript" src="js/embeddedcontent.js" defer="defer"></script>');