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,b){if(!UFO.is_w3cdom){return}UFO.foList[b]=UFO.updateFO(a);UFO.createStyleRule("#"+b,"visibility:hidden;");UFO.domLoad(b)},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(b){var a=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(b)!=null){UFO.main(b);clearInterval(a)}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(b);clearInterval(a)},null)}},main:function(b){var a=UFO.foList[b];if(a.domLoaded){return}UFO.foList[b].domLoaded=true;document.getElementById(b).style.visibility="hidden";if(UFO.hasRequiredAttrParams(b)){if(UFO.hasFlashVersion(a.majorversion,a.build)){UFO.writeFlashObject(b)}else{if(a.xi&&UFO.hasFlashVersion("6","65")){UFO.createModalDialog(b)}}}document.getElementById(b).style.visibility="visible"},createStyleRule:function(a,f){if(UFO.is_ie&&UFO.is_mac){return}var c=document.getElementsByTagName("head")[0];var d=UFO.createElement("style");if(!(UFO.is_ie&&UFO.is_win)){var e=document.createTextNode(a+" {"+f+"}");d.appendChild(e)}d.setAttribute("type","text/css");d.setAttribute("media","screen");c.appendChild(d);if(UFO.is_safari&&UFO.is_XML){c.innerHTML+=""}if(UFO.is_ie&&UFO.is_win&&document.styleSheets&&document.styleSheets.length>0){var b=document.styleSheets[document.styleSheets.length-1];if(typeof b.addRule=="object"){b.addRule(a,f)}}},createElement:function(a){return(typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)},hasRequiredAttrParams:function(c){var b=UFO.foList[c];for(var a=0;a<UFO.requiredAttrParams.length;a++){if(typeof b[UFO.requiredAttrParams[a]]=="undefined"){return false}}return true},hasFlashVersion:function(d,b){var g=parseFloat(d+"."+b);if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var h=navigator.plugins["Shockwave Flash"].description;if(h){var j=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var k=parseInt(j.replace(/^(.*)\..*$/,"$1"));var l=parseInt(j.replace(/^.*r(.*)$/,"$1"));var a=parseFloat(k+"."+l)}}else{if(window.ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var h=c.GetVariable("$version");if(h){var f=h.replace(/^\S+\s+(.*)$/,"$1").split(",");var k=parseInt(f[0]);var l=parseInt(f[2]);var a=parseFloat(k+"."+l)}}catch(i){}}}if(typeof a!="undefined"){return(a>=g?true:false)}return false},writeFlashObject:function(a){var c=document.getElementById(a);if(typeof c.innerHTML=="undefined"){return}var d=UFO.foList[a];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){try{c.innerHTML="ufo-test"}catch(j){}if(c.innerHTML!="ufo-test"){while(c.hasChildNodes()){c.removeChild(c.firstChild)}var h=UFO.createElement("embed");h.setAttribute("type","application/x-shockwave-flash");h.setAttribute("pluginspage","http://www.macromedia.com/go/getflashplayer");h.setAttribute("src",d.movie);h.setAttribute("width",d.width);h.setAttribute("height",d.height);for(var f=0;f<UFO.optionalAttrEmb.length;f++){if(typeof d[UFO.optionalAttrEmb[f]]!="undefined"){h.setAttribute(UFO.optionalAttrEmb[f],d[UFO.optionalAttrEmb[f]])}}for(var f=0;f<UFO.optionalAttrParams.length;f++){if(typeof d[UFO.optionalAttrParams[f]]!="undefined"){h.setAttribute(UFO.optionalAttrParams[f],d[UFO.optionalAttrParams[f]])}}c.appendChild(h)}else{var b="";for(var f=0;f<UFO.optionalAttrEmb.length;f++){if(typeof d[UFO.optionalAttrEmb[f]]!="undefined"){b+=" "+UFO.optionalAttrEmb[f]+'="'+d[UFO.optionalAttrEmb[f]]+'"'}}for(var f=0;f<UFO.optionalAttrParams.length;f++){if(typeof d[UFO.optionalAttrParams[f]]!="undefined"){b+=" "+UFO.optionalAttrParams[f]+'="'+d[UFO.optionalAttrParams[f]]+'"'}}c.innerHTML='<embed type="application/x-shockwave-flash" src="'+d.movie+'" width="'+d.width+'" height="'+d.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+b+"></embed>"}}else{var g="";for(var f=0;f<UFO.optionalAttrObj.length;f++){if(typeof d[UFO.optionalAttrObj[f]]!="undefined"){g+=" "+UFO.optionalAttrObj[f]+'="'+d[UFO.optionalAttrObj[f]]+'"'}}var k="";for(var f=0;f<UFO.optionalAttrParams.length;f++){if(typeof d[UFO.optionalAttrParams[f]]!="undefined"){k+='<param name="'+UFO.optionalAttrParams[f]+'" value="'+d[UFO.optionalAttrParams[f]]+'" />'}}c.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+g+' width="'+d.width+'" height="'+d.height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+d.majorversion+",0,"+d.build+',0"><param name="movie" value="'+d.movie+'" />'+k+"</object>"}},createModalDialog:function(h){var e=UFO.foList[h];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(e.xiwidth)/2)+"px; margin-top: -"+(parseInt(e.xiheight)/2)+"px; width:"+e.xiwidth+"px; height:"+e.xiheight+"px;");var b=document.getElementsByTagName("body")[0];var c=UFO.createElement("div");c.setAttribute("id","xi-con");var d=UFO.createElement("div");d.setAttribute("id","xi-mod");c.appendChild(d);b.appendChild(c);var g=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";var a=document.title;if(UFO.is_iewin){var f={movie:e.ximovie,width:e.xiwidth,height:e.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+g+"&amp;MMplayerType=ActiveX&amp;MMdoctitle="+a}}else{var f={movie:e.ximovie,width:e.xiwidth,height:e.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+g+"&amp;MMplayerType=PlugIn&amp;MMdoctitle="+a}}UFO.foList["xi-mod"]=f;UFO.writeFlashObject("xi-mod")},expressInstallCallback:function(){var a=document.getElementsByTagName("body")[0];var b=document.getElementById("xi-con");a.removeChild(b);UFO.createStyleRule("body","height:auto; overflow:auto;");UFO.createStyleRule("html","height:auto; overflow:auto;")}};