var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing","allowfullscreen","allownetworking"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(a,b){if(!(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac"))){UFO.getFlashVersion();
UFO.foList[b]=UFO.updateFO(a);UFO.createCSS("#"+b,"visibility:hidden;");UFO.domLoad(b);var c=document.title||"";document.onpropertychange=function(){var e,d=document.title||"";if(!(window.event.propertyName!="title"||d==c)){e=d.indexOf("#")!=-1?d.substring(0,d.indexOf("#")):d;if(e==""&&d.indexOf("#")!=-1)e=c;c=e;document.title=e}}}},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}a.mainCalled=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);typeof document.addEventListener!="undefined"&&document.addEventListener("DOMContentLoaded",function(){UFO.main(a);clearInterval(b)},null)},main:function(a){var b=UFO.foList[a];if(!b.mainCalled){UFO.foList[a].mainCalled=true;
document.getElementById(a).style.visibility="hidden";if(UFO.hasRequired(a))if(UFO.hasFlashVersion(parseInt(b.majorversion,10),parseInt(b.build,10))){typeof b.setcontainercss!="undefined"&&b.setcontainercss=="true"&&UFO.setContainerCSS(a);UFO.writeSWF(a)}else b.xi=="true"&&UFO.hasFlashVersion(6,65)&&UFO.createDialog(a);document.getElementById(a).style.visibility="visible"}},createCSS:function(a,b){var c=document.getElementsByTagName("head")[0],e=UFO.createElement("style");UFO.uaHas("ieWin")||e.appendChild(document.createTextNode(a+
" {"+b+"}"));e.setAttribute("type","text/css");e.setAttribute("media","screen");c.appendChild(e);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){c=document.styleSheets[document.styleSheets.length-1];typeof c.addRule=="object"&&c.addRule(a,b)}},setContainerCSS:function(a){var b=UFO.foList[a],c=/%/.test(b.width)?"":"px",e=/%/.test(b.height)?"":"px";UFO.createCSS("#"+a,"width:"+b.width+c+"; height:"+b.height+e+";");b.width=="100%"&&UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");
if(b.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;")}},createElement:function(a){return UFO.uaHas("xml")&&typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)},createObjParam:function(a,b,c){var e=UFO.createElement("param");e.setAttribute("name",b);e.setAttribute("value",c);a.appendChild(e)},uaHas:function(a){var b=
UFO.ua;switch(a){case "w3cdom":return typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined");case "xml":a=document.getElementsByTagName("meta");b=a.length;for(var c=0;c<b;c++)if(/content-type/i.test(a[c].getAttribute("http-equiv"))&&/xml/i.test(a[c].getAttribute("content")))return true;return false;case "ieMac":return/msie/.test(b)&&!/opera/.test(b)&&/mac/.test(b);case "ieWin":return/msie/.test(b)&&
!/opera/.test(b)&&/win/.test(b);case "gecko":return/gecko/.test(b)&&!/applewebkit/.test(b);case "opera":return/opera/.test(b);case "safari":return/applewebkit/.test(b);default:return false}},getFlashVersion:function(){if(UFO.fv[0]==0)if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var a=navigator.plugins["Shockwave Flash"].description;if(typeof a!="undefined"){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var b=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);
a=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[b,a]}}else if(window.ActiveXObject){UFO.pluginType="ax";try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];b.AllowScriptAccess="always"}catch(e){if(UFO.fv[0]==6)return}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(typeof b=="object"){a=b.GetVariable("$version");if(typeof a!="undefined"){a=a.replace(/^\S+\s+(.*)$/,"$1").split(",");
UFO.fv=[parseInt(a[0],10),parseInt(a[2],10)]}}}},hasRequired:function(a){for(var b=UFO.req.length,c=0;c<b;c++)if(typeof UFO.foList[a][UFO.req[c]]=="undefined")return false;return true},hasFlashVersion:function(a,b){return UFO.fv[0]>a||UFO.fv[0]==a&&UFO.fv[1]>=b?true:false},writeSWF:function(a){var b=UFO.foList[a];a=document.getElementById(a);if(UFO.pluginType=="npapi")if(UFO.uaHas("gecko")||UFO.uaHas("xml")){for(;a.hasChildNodes();)a.removeChild(a.firstChild);var c=UFO.createElement("object");c.setAttribute("type",
"application/x-shockwave-flash");c.setAttribute("data",b.movie);c.setAttribute("width",b.width);c.setAttribute("height",b.height);for(var e=UFO.optAtt.length,d=0;d<e;d++)typeof b[UFO.optAtt[d]]!="undefined"&&c.setAttribute(UFO.optAtt[d],b[UFO.optAtt[d]]);var f=UFO.opt.concat(UFO.optExc);e=f.length;for(d=0;d<e;d++)typeof b[f[d]]!="undefined"&&UFO.createObjParam(c,f[d],b[f[d]]);a.appendChild(c)}else{c="";f=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);e=f.length;for(d=0;d<e;d++)if(typeof b[f[d]]!="undefined")c+=
" "+f[d]+'="'+b[f[d]]+'"';a.innerHTML='<embed type="application/x-shockwave-flash" src="'+b.movie+'" width="'+b.width+'" height="'+b.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+c+"></embed>"}else if(UFO.pluginType=="ax"){f="";e=UFO.optAtt.length;for(d=0;d<e;d++)if(typeof b[UFO.optAtt[d]]!="undefined")f+=" "+UFO.optAtt[d]+'="'+b[UFO.optAtt[d]]+'"';c="";e=UFO.opt.length;for(d=0;d<e;d++)if(typeof b[UFO.opt[d]]!="undefined")c+='<param name="'+UFO.opt[d]+'" value="'+b[UFO.opt[d]]+
'" />';a.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+' width="'+b.width+'" height="'+b.height+'" codebase="'+(window.location.protocol=="https:"?"https:":"http:")+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+b.majorversion+",0,"+b.build+',0"><param name="movie" value="'+b.movie+'" />'+c+"</object>"}},createDialog:function(a){a=UFO.foList[a];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");
UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(a.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(a.xiheight,10)/2)+"px; width:"+a.xiwidth+"px; height:"+a.xiheight+"px;");var b=document.getElementsByTagName("body")[0],c=UFO.createElement("div");c.setAttribute("id","xi-con");var e=
UFO.createElement("div");e.setAttribute("id","xi-dia");c.appendChild(e);b.appendChild(c);b=window.location;c=UFO.uaHas("xml")&&UFO.uaHas("safari")?document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation":document.title=document.title.slice(0,47)+" - Flash Player Installation";UFO.foList["xi-dia"]={movie:a.ximovie,width:a.xiwidth,height:a.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+
b+"&MMplayerType="+(UFO.pluginType=="ax"?"ActiveX":"PlugIn")+"&MMdoctitle="+c+(typeof a.xiurlcancel!="undefined"?"&xiUrlCancel="+a.xiurlcancel:"")+(typeof a.xiurlfailed!="undefined"?"&xiUrlFailed="+a.xiurlfailed:"")};UFO.writeSWF("xi-dia")},expressInstallCallback:function(){var a=document.getElementsByTagName("body")[0],b=document.getElementById("xi-con");a.removeChild(b);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;")},cleanupIELeaks:function(){for(var a=
document.getElementsByTagName("object"),b=a.length,c=0;c<b;c++){a[c].style.display="none";for(var e in a[c])if(typeof a[c][e]=="function")a[c][e]=null}}};typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")&&window.attachEvent("onunload",UFO.cleanupIELeaks);

