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