var UFO={requiredAttrParams:["movie","width","height","majorversion","build"],optionalAttrEmb:["name","swliveconnect","align"],optionalAttrObj:["id","align"],optionalAttrParams:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",is_w3cdom:typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!=
"undefined"),is_ie:navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1,is_safari:navigator.userAgent.toLowerCase().indexOf("safari")!=-1,is_win:navigator.userAgent.toLowerCase().indexOf("win")!=-1,is_mac:navigator.userAgent.toLowerCase().indexOf("mac")!=-1,is_XML:typeof document.contentType!="undefined"&&document.contentType.indexOf("xml")>-1,foList:[],create:function(a,c){if(UFO.is_w3cdom){UFO.foList[c]=UFO.updateFO(a);UFO.createStyleRule("#"+
c,"visibility:hidden;");UFO.domLoad(c)}},updateFO:function(a){if(typeof a.xi!="undefined"&&a.xi=="true"){if(typeof a.ximovie=="undefined")a.ximovie=UFO.ximovie;if(typeof a.xiwidth=="undefined")a.xiwidth=UFO.xiwidth;if(typeof a.xiheight=="undefined")a.xiheight=UFO.xiheight}else a.xi=false;a.domLoaded=false;return a},domLoad:function(a){var c=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(a)!=null){UFO.main(a);clearInterval(c)}},
250);typeof document.addEventListener!="undefined"&&document.addEventListener("DOMContentLoaded",function(){UFO.main(a);clearInterval(c)},null)},main:function(a){var c=UFO.foList[a];if(!c.domLoaded){UFO.foList[a].domLoaded=true;document.getElementById(a).style.visibility="hidden";if(UFO.hasRequiredAttrParams(a))if(UFO.hasFlashVersion(c.majorversion,c.build))UFO.writeFlashObject(a);else c.xi&&UFO.hasFlashVersion("6","65")&&UFO.createModalDialog(a);document.getElementById(a).style.visibility="visible"}},
createStyleRule:function(a,c){if(!(UFO.is_ie&&UFO.is_mac)){var e=document.getElementsByTagName("head")[0],d=UFO.createElement("style");if(!(UFO.is_ie&&UFO.is_win)){var b=document.createTextNode(a+" {"+c+"}");d.appendChild(b)}d.setAttribute("type","text/css");d.setAttribute("media","screen");e.appendChild(d);if(UFO.is_safari&&UFO.is_XML)e.innerHTML+="";if(UFO.is_ie&&UFO.is_win&&document.styleSheets&&document.styleSheets.length>0){e=document.styleSheets[document.styleSheets.length-1];typeof e.addRule==
"object"&&e.addRule(a,c)}}},createElement:function(a){return typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)},hasRequiredAttrParams:function(a){a=UFO.foList[a];for(var c=0;c<UFO.requiredAttrParams.length;c++)if(typeof a[UFO.requiredAttrParams[c]]=="undefined")return false;return true},hasFlashVersion:function(a,c){var e=parseFloat(a+"."+c);if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var d=
navigator.plugins["Shockwave Flash"].description;if(d){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var b=parseInt(d.replace(/^(.*)\..*$/,"$1")),f=parseInt(d.replace(/^.*r(.*)$/,"$1")),g=parseFloat(b+"."+f)}}else if(window.ActiveXObject)try{if(d=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")){var h=d.replace(/^\S+\s+(.*)$/,"$1").split(",");b=parseInt(h[0]);f=parseInt(h[2]);g=parseFloat(b+"."+f)}}catch(i){}if(typeof g!="undefined")return g>=e?true:false;return false},writeFlashObject:function(a){var c=
document.getElementById(a);if(typeof c.innerHTML!="undefined"){a=UFO.foList[a];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){try{c.innerHTML="ufo-test"}catch(e){}if(c.innerHTML!="ufo-test"){for(;c.hasChildNodes();)c.removeChild(c.firstChild);var d=UFO.createElement("embed");d.setAttribute("type","application/x-shockwave-flash");d.setAttribute("pluginspage","http://www.macromedia.com/go/getflashplayer");d.setAttribute("src",a.movie);d.setAttribute("width",a.width);d.setAttribute("height",
a.height);for(var b=0;b<UFO.optionalAttrEmb.length;b++)typeof a[UFO.optionalAttrEmb[b]]!="undefined"&&d.setAttribute(UFO.optionalAttrEmb[b],a[UFO.optionalAttrEmb[b]]);for(b=0;b<UFO.optionalAttrParams.length;b++)typeof a[UFO.optionalAttrParams[b]]!="undefined"&&d.setAttribute(UFO.optionalAttrParams[b],a[UFO.optionalAttrParams[b]]);c.appendChild(d)}else{d="";for(b=0;b<UFO.optionalAttrEmb.length;b++)if(typeof a[UFO.optionalAttrEmb[b]]!="undefined")d+=" "+UFO.optionalAttrEmb[b]+'="'+a[UFO.optionalAttrEmb[b]]+
'"';for(b=0;b<UFO.optionalAttrParams.length;b++)if(typeof a[UFO.optionalAttrParams[b]]!="undefined")d+=" "+UFO.optionalAttrParams[b]+'="'+a[UFO.optionalAttrParams[b]]+'"';c.innerHTML='<embed type="application/x-shockwave-flash" src="'+a.movie+'" width="'+a.width+'" height="'+a.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+d+"></embed>"}}else{d="";for(b=0;b<UFO.optionalAttrObj.length;b++)if(typeof a[UFO.optionalAttrObj[b]]!="undefined")d+=" "+UFO.optionalAttrObj[b]+'="'+a[UFO.optionalAttrObj[b]]+
'"';var f="";for(b=0;b<UFO.optionalAttrParams.length;b++)if(typeof a[UFO.optionalAttrParams[b]]!="undefined")f+='<param name="'+UFO.optionalAttrParams[b]+'" value="'+a[UFO.optionalAttrParams[b]]+'" />';c.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+d+' width="'+a.width+'" height="'+a.height+'" codebase="'+(window.location.protocol=="https:"?"https:":"http:")+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+a.majorversion+",0,"+a.build+',0"><param name="movie" value="'+
a.movie+'" />'+f+"</object>"}}},createModalDialog:function(a){a=UFO.foList[a];UFO.createStyleRule("html","height:100%; overflow:hidden;");UFO.createStyleRule("body","height:100%; overflow:hidden;");UFO.createStyleRule("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#333; filter:alpha(opacity:50); -khtml-opacity:0.5; -moz-opacity:0.5; opacity:0.5;");UFO.createStyleRule("#xi-mod","position:absolute; left:50%; top:50%; margin-left: -"+parseInt(a.xiwidth)/
2+"px; margin-top: -"+parseInt(a.xiheight)/2+"px; width:"+a.xiwidth+"px; height:"+a.xiheight+"px;");var c=document.getElementsByTagName("body")[0],e=UFO.createElement("div");e.setAttribute("id","xi-con");var d=UFO.createElement("div");d.setAttribute("id","xi-mod");e.appendChild(d);c.appendChild(e);c=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";e=document.title;UFO.foList["xi-mod"]=UFO.is_ie&&UFO.is_win?{movie:a.ximovie,width:a.xiwidth,height:a.xiheight,
majorversion:"6",build:"65",flashvars:"MMredirectURL="+c+"&amp;MMplayerType=ActiveX&amp;MMdoctitle="+e}:{movie:a.ximovie,width:a.xiwidth,height:a.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+c+"&amp;MMplayerType=PlugIn&amp;MMdoctitle="+e};UFO.writeFlashObject("xi-mod")},expressInstallCallback:function(){var a=document.getElementsByTagName("body")[0],c=document.getElementById("xi-con");a.removeChild(c);UFO.createStyleRule("body","height:auto; overflow:auto;");UFO.createStyleRule("html",
"height:auto; overflow:auto;")}};

