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(typeof document.getElementById(B)!="undefined"){UFO.main(B);clearInterval(A)}},10);if(UFO.is_ie&&UFO.is_mac){window.onload=function(){if(typeof document.getElementById(B)!="undefined"){UFO.main(B);clearInterval(A)}}}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 F=parseFloat(D+"."+B);if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var G=navigator.plugins["Shockwave Flash"].description;if(G){var I=G.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var J=parseInt(I.replace(/^(.*)\..*$/,"$1"));var K=parseInt(I.replace(/^.*r(.*)$/,"$1"));var A=parseFloat(J+"."+K)}}else{if(window.ActiveXObject){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var G=C.GetVariable("$version");if(G){var E=G.replace(/^\S+\s+(.*)$/,"$1").split(",");var J=parseInt(E[0]);var K=parseInt(E[2]);var A=parseFloat(J+"."+K)}}catch(H){}}}if(typeof A!="undefined"){return(A>=F?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(H){}if(C.innerHTML!="ufo-test"){while(C.hasChildNodes()){C.removeChild(C.firstChild)}var G=UFO.createElement("embed");G.setAttribute("type","application/x-shockwave-flash");G.setAttribute("pluginspage","http://www.macromedia.com/go/getflashplayer");G.setAttribute("src",D.movie);G.setAttribute("width",D.width);G.setAttribute("height",D.height);for(var E=0;E<UFO.optionalAttrEmb.length;E++){if(typeof D[UFO.optionalAttrEmb[E]]!="undefined"){G.setAttribute(UFO.optionalAttrEmb[E],D[UFO.optionalAttrEmb[E]])}}for(var E=0;E<UFO.optionalAttrParams.length;E++){if(typeof D[UFO.optionalAttrParams[E]]!="undefined"){G.setAttribute(UFO.optionalAttrParams[E],D[UFO.optionalAttrParams[E]])}}C.appendChild(G)}else{var B="";for(var E=0;E<UFO.optionalAttrEmb.length;E++){if(typeof D[UFO.optionalAttrEmb[E]]!="undefined"){B+=" "+UFO.optionalAttrEmb[E]+'="'+D[UFO.optionalAttrEmb[E]]+'"'}}for(var E=0;E<UFO.optionalAttrParams.length;E++){if(typeof D[UFO.optionalAttrParams[E]]!="undefined"){B+=" "+UFO.optionalAttrParams[E]+'="'+D[UFO.optionalAttrParams[E]]+'"'}}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 F="";for(var E=0;E<UFO.optionalAttrObj.length;E++){if(typeof D[UFO.optionalAttrObj[E]]!="undefined"){F+=" "+UFO.optionalAttrObj[E]+'="'+D[UFO.optionalAttrObj[E]]+'"'}}var I="";for(var E=0;E<UFO.optionalAttrParams.length;E++){if(typeof D[UFO.optionalAttrParams[E]]!="undefined"){I+='<param name="'+UFO.optionalAttrParams[E]+'" value="'+D[UFO.optionalAttrParams[E]]+'" />'}}C.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+' 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+'" />'+I+"</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; text-align:center;");UFO.createStyleRule("#xi-mod","margin:120px auto 0; 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;")}};