function HaveCorrectFlashVersion(MinFlashVer)
{
    if (typeof deconcept!="undefined")
        if (MinFlashVer <= deconcept.SWFObjectUtil.getPlayerVersion().major)
            if (MinFlashVer >= deconcept.SWFObjectUtil.getPlayerVersion().minor)
                return true;
    return false;
}

function SetScreen(MinFlashVer)
{
    if (HaveCorrectFlashVersion(MinFlashVer) && document.getElementById)
    {
        document.getElementById('nomenucontent_holder').className = document.getElementById('nomenucontent_holder').className.replace("hidden", "visible");        
        document.getElementById('intro_holder').className = document.getElementById('intro_holder').className.replace("visible", "hidden");
		ShowData();	
    }	
	else {
		document.getElementById('nomenucontent_holder').className = document.getElementById('nomenucontent_holder').className.replace("visible", "hidden");        
        document.getElementById('intro_holder').className = document.getElementById('intro_holder').className.replace("hidden", "visible");
	}
}

function ShowData() // check we have correct version of no point running this script
{    
		document.getElementById('animation').className = document.getElementById('animation').className.replace("hidden", "visible");        
        document.getElementById('noanimation').className = document.getElementById('noanimation').className.replace("visible", "hidden");
        var so = new SWFObject("App_Themes/Husher/hush.swf","hushmovie","210","139","6","#FFFFFF");
        so.addParam("wmode","transparent");
        so.write("animation");
	    
}

//Display flash animation only on homepage and style background when flash animation not playing
function HomepageCheck()
{	
	if (document.getElementById('home') != null)
	{			
		SetScreen(6);						
	}
	else {							
		document.getElementById('intro_holder').className = document.getElementById('nomenucontent_holder').className.replace("visible", "hidden");
		//document.getElementById('animation').className = document.getElementById('animation').className.replace("visible", "hidden");
	}
}
