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","seamlesstabbing"],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),is_linux:(navigator.userAgent.toLowerCase().indexOf("linux")!=-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,A)){if(typeof A.setcontainercss!="undefined"&&A.setcontainercss=="true"){UFO.setContainerCSS(B)}UFO.writeFlashObject(B)}else{if(A.xi&&UFO.hasFlashVersion("6","65",A)){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)}}},setContainerCSS:function(D){var C=UFO.foList[D];var B=(C.width.indexOf("%")==-1)?"px":"";var A=(C.height.indexOf("%")==-1)?"px":"";UFO.createStyleRule("#"+D,"width:"+C.width+B+"; height:"+C.height+A+";");if(C.width=="100%"){UFO.createStyleRule("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;")}if(C.height=="100%"){UFO.createStyleRule("html","height:100%; overflow:hidden;");UFO.createStyleRule("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;")}},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(E,B,C){var G=parseFloat(E+"."+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=(J.indexOf("r")==-1)?0:parseInt(J.replace(/^.*r(.*)$/,"$1"));var A=parseFloat(K+"."+L)}}else{if(window.ActiveXObject){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var H=D.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){A="8.0"}}}if(UFO.is_linux&&C.wmode=="transparent"){return false}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(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]]+'" />'}}var J=(window.location.protocol=="https:"?"https:":"http:");C.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+' width="'+D.width+'" height="'+D.height+'" codebase="'+J+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+D.majorversion+",0,"+D.build+',0"><param name="movie" value="'+D.movie+'" />'+I+"</object>"}},cleanupIELeaks:function(){var C=document.getElementsByTagName("OBJECT");for(var B=0;B<C.length;B++){for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=null}}}},createModalDialog:function(C){var F=UFO.foList[C];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(F.xiwidth)/2)+"px; margin-top: -"+(parseInt(F.xiheight)/2)+"px; width:"+F.xiwidth+"px; height:"+F.xiheight+"px;");var H=document.getElementsByTagName("body")[0];var B=UFO.createElement("div");B.setAttribute("id","xi-con");var I=UFO.createElement("div");I.setAttribute("id","xi-mod");B.appendChild(I);H.appendChild(B);var A=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";var G=document.title;var D=(UFO.is_ie&&UFO.is_win)?"ActiveX":"PlugIn";var J=(typeof F.xiurlcancel!="undefined")?"&xiUrlCancel="+F.xiurlcancel:"";var E=(typeof F.xiurlfailed!="undefined")?"&xiUrlFailed="+F.xiurlfailed:"";UFO.foList["xi-mod"]={movie:F.ximovie,width:F.xiwidth,height:F.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+A+"&MMplayerType="+D+"&MMdoctitle="+G+J+E};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;")}};if(typeof window.attachEvent!="undefined"&&UFO.is_ie&&UFO.is_win){window.attachEvent("onunload",UFO.cleanupIELeaks)};
