// JavaScript Document
<!-- 
// <![CDATA[
var hash = getUrlVars();
var lang = hash['lang'];
//var jURL = 'http://'+document.location.host+'/altus/flash/';
var jURL = 'http://'+document.location.host+'/flash/';
if (lang == undefined) {
	lang = getCookie('jfcookie[lang]');
    if(lang == null) lang='en';
}
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
//var fm = document.getElementById('flashcontent_psvw');
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="791" height="460"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="flash/content_psvw.swf" /><param name="loop" value="false" /><param name="flashvars" value="activeLang='+lang+'&jURL='+jURL+'&activeYear='+year+'" /><param name="flashcontent_psvw" value="false" /><param name="wmode" value="transparent"><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
    + '<embed src="flash/content_psvw.swf" loop="false" menu="false" quality="high" bgcolor="#ffffff" '
    + 'width="791" height="460" name="flashcontent_psvw" align="middle"'
    + 'play="true"'
    + 'loop="false"'
	+ 'flashvars="activeLang='+lang+'&jURL='+jURL+'&activeYear='+year+'"'
	+ 'wmode="transparent"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
	//fm.innerHTML = oeTags;
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<table width="791" border="0" cellspacing="0" cellpadding="0"><tr><td>For our site requires Adobe Flash Player. '
   	+ '<a href=http://www.macromedia.com/go/getflash/>Download Flash</a></td></tr></table>';
    document.write(alternateContent);  // insert non-flash content
    //fm.innerHTML = alternateContent;
  }
// ]]>  
// -->
