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