/*	Unobtrusive Flash Objects (UFO) v3.20 <http://www.bobbyvandersluis.com/ufo/>
	Copyright 2005, 2006 Bobby van der Sluis
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/
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(a,b){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac"))return;UFO.getFlashVersion(),UFO.foList[b]=UFO.updateFO(a),UFO.createCSS("#"+b,"visibility:hidden;"),UFO.domLoad(b)},updateFO:function(a){return typeof a.xi!="undefined"&&a.xi=="true"&&(typeof a.ximovie=="undefined"&&(a.ximovie=UFO.ximovie),typeof a.xiwidth=="undefined"&&(a.xiwidth=UFO.xiwidth),typeof a.xiheight=="undefined"&&(a.xiheight=UFO.xiheight)),a.mainCalled=!1,a},domLoad:function(a){var b=setInterval(function(){(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)return;UFO.foList[a].mainCalled=!0,document.getElementById(a).style.visibility="hidden",UFO.hasRequired(a)&&(UFO.hasFlashVersion(parseInt(b.majorversion,10),parseInt(b.build,10))?(typeof b.setcontainercss!="undefined"&&b.setcontainercss=="true"&&UFO.setContainerCSS(a),UFO.writeSWF(a)):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],d=UFO.createElement("style");UFO.uaHas("ieWin")||d.appendChild(document.createTextNode(a+" {"+b+"}")),d.setAttribute("type","text/css"),d.setAttribute("media","screen"),c.appendChild(d);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var e=document.styleSheets[document.styleSheets.length-1];typeof e.addRule=="object"&&e.addRule(a,b)}},setContainerCSS:function(a){var b=UFO.foList[a],c=/%/.test(b.width)?"":"px",d=/%/.test(b.height)?"":"px";UFO.createCSS("#"+a,"width:"+b.width+c+"; height:"+b.height+d+";"),b.width=="100%"&&UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;"),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 d=UFO.createElement("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)},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":var c=document.getElementsByTagName("meta"),d=c.length;for(var e=0;e<d;e++)if(/content-type/i.test(c[e].getAttribute("http-equiv"))&&/xml/i.test(c[e].getAttribute("content")))return!0;return!1;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!1}},getFlashVersion:function(){if(UFO.fv[0]!=0)return;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),c=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[b,c]}}else if(window.ActiveXObject){UFO.pluginType="ax";try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0],d.AllowScriptAccess="always"}catch(e){if(UFO.fv[0]==6)return}try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(typeof d=="object"){var a=d.GetVariable("$version");typeof a!="undefined"&&(a=a.replace(/^\S+\s+(.*)$/,"$1").split(","),UFO.fv=[parseInt(a[0],10),parseInt(a[2],10)])}}},hasRequired:function(a){var b=UFO.req.length;for(var c=0;c<b;c++)if(typeof UFO.foList[a][UFO.req[c]]=="undefined")return!1;return!0},hasFlashVersion:function(a,b){return UFO.fv[0]>a||UFO.fv[0]==a&&UFO.fv[1]>=b?!0:!1},writeSWF:function(a){var b=UFO.foList[a],c=document.getElementById(a);if(UFO.pluginType=="npapi")if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(c.hasChildNodes())c.removeChild(c.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);var e=UFO.optAtt.length;for(var f=0;f<e;f++)typeof b[UFO.optAtt[f]]!="undefined"&&d.setAttribute(UFO.optAtt[f],b[UFO.optAtt[f]]);var g=UFO.opt.concat(UFO.optExc),e=g.length;for(var f=0;f<e;f++)typeof b[g[f]]!="undefined"&&UFO.createObjParam(d,g[f],b[g[f]]);c.appendChild(d)}else{var h="",g=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc),e=g.length;for(var f=0;f<e;f++)typeof b[g[f]]!="undefined"&&(h+=" "+g[f]+'="'+b[g[f]]+'"');c.innerHTML='<embed type="application/x-shockwave-flash" src="'+b.movie+'" width="'+b.width+'" height="'+b.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+h+"></embed>"}else if(UFO.pluginType=="ax"){var i="",e=UFO.optAtt.length;for(var f=0;f<e;f++)typeof b[UFO.optAtt[f]]!="undefined"&&(i+=" "+UFO.optAtt[f]+'="'+b[UFO.optAtt[f]]+'"');var j="",e=UFO.opt.length;for(var f=0;f<e;f++)typeof b[UFO.opt[f]]!="undefined"&&(j+='<param name="'+UFO.opt[f]+'" value="'+b[UFO.opt[f]]+'" />');var k=window.location.protocol=="https:"?"https:":"http:";c.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+' width="'+b.width+'" height="'+b.height+'" codebase="'+k+"//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(a){var b=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(b.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(b.xiheight,10)/2)+"px; width:"+b.xiwidth+"px; height:"+b.xiheight+"px;");var c=document.getElementsByTagName("body")[0],d=UFO.createElement("div");d.setAttribute("id","xi-con");var e=UFO.createElement("div");e.setAttribute("id","xi-dia"),d.appendChild(e),c.appendChild(d);var f=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari"))var g=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";else var g=document.title=document.title.slice(0,47)+" - Flash Player Installation";var h=UFO.pluginType=="ax"?"ActiveX":"PlugIn",i=typeof b.xiurlcancel!="undefined"?"&xiUrlCancel="+b.xiurlcancel:"",j=typeof b.xiurlfailed!="undefined"?"&xiUrlFailed="+b.xiurlfailed:"";UFO.foList["xi-dia"]={movie:b.ximovie,width:b.xiwidth,height:b.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+f+"&MMplayerType="+h+"&MMdoctitle="+g+i+j},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(){var a=document.getElementsByTagName("object"),b=a.length;for(var c=0;c<b;c++){a[c].style.display="none";for(var d in a[c])typeof a[c][d]=="function"&&(a[c][d]=null)}}};typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")&&window.attachEvent("onunload",UFO.cleanupIELeaks)
