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