/*!	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){function s(){if(o)return;if(q.ie&&q.win){var a=E("span");try{var b=h.getElementsByTagName("body")[0].appendChild(a);b.parentNode.removeChild(b)}catch(c){return}}o=!0,l&&(clearInterval(l),l=null);var d=j.length;for(var e=0;e<d;e++)j[e]()}function t(a){o?a():j[j.length]=a}function u(b){if(typeof g.addEventListener!=a)g.addEventListener("load",b,!1);else if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof g.attachEvent!=a)g.attachEvent("onload",b);else if(typeof g.onload=="function"){var c=g.onload;g.onload=function(){c(),b()}}else g.onload=b}function v(){var a=k.length;for(var b=0;b<a;b++){var c=k[b].id;if(q.pv[0]>0){var d=D(c);d&&(k[b].width=d.getAttribute("width")?d.getAttribute("width"):"0",k[b].height=d.getAttribute("height")?d.getAttribute("height"):"0",F(k[b].swfVersion)?(q.webkit&&q.webkit<312&&w(d),H(c,!0)):k[b].expressInstall&&!p&&F("6.0.65")&&(q.win||q.mac)?y(k[b]):z(d))}else H(c,!0)}}function w(a){var c=a.getElementsByTagName(b)[0];if(c){var d=E("embed"),e=c.attributes;if(e){var f=e.length;for(var g=0;g<f;g++)e[g].nodeName.toLowerCase()=="data"?d.setAttribute("src",e[g].nodeValue):d.setAttribute(e[g].nodeName,e[g].nodeValue)}var h=c.childNodes;if(h){var i=h.length;for(var j=0;j<i;j++)h[j].nodeType==1&&h[j].nodeName.toLowerCase()=="param"&&d.setAttribute(h[j].getAttribute("name"),h[j].getAttribute("value"))}a.parentNode.replaceChild(d,a)}}function x(a){q.ie&&q.win&&F("8.0.0")&&g.attachEvent("onunload",function(){var b=D(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=function(){});b.parentNode.removeChild(b)}})}function y(a){p=!0;var b=D(a.id);if(b){if(a.altContentId){var c=D(a.altContentId);c&&(m=c,n=a.altContentId)}else m=A(b);!/%$/.test(a.width)&&parseInt(a.width,10)<310&&(a.width="310"),!/%$/.test(a.height)&&parseInt(a.height,10)<137&&(a.height="137"),h.title=h.title.slice(0,47)+" - Flash Player Installation";var d=q.ie&&q.win?"ActiveX":"PlugIn",e=h.title,i="MMredirectURL="+g.location+"&MMplayerType="+d+"&MMdoctitle="+e,j=a.id;if(q.ie&&q.win&&b.readyState!=4){var k=E("div");j+="SWFObjectNew",k.setAttribute("id",j),b.parentNode.insertBefore(k,b),b.style.display="none",g.attachEvent("onload",function(){b.parentNode.removeChild(b)})}B({data:a.expressInstall,id:f,width:a.width,height:a.height},{flashvars:i},j)}}function z(a){if(q.ie&&q.win&&a.readyState!=4){var b=E("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(A(a),b),a.style.display="none",g.attachEvent("onload",function(){a.parentNode.removeChild(a)})}else a.parentNode.replaceChild(A(a),a)}function A(a){var c=E("div");if(q.win&&q.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName.toLowerCase()!="param")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function B(c,d,f){var g,h=D(f);typeof c.id==a&&(c.id=f);if(q.ie&&q.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var l in d)d[l]!=Object.prototype[l]&&(k+='<param name="'+l+'" value="'+d[l]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>",x(c.id),g=D(c.id)}else if(q.webkit&&q.webkit<312){var m=E("embed");m.setAttribute("type",e);for(var n in c)c[n]!=Object.prototype[n]&&(n=="data"?m.setAttribute("src",c[n]):n.toLowerCase()=="styleclass"?m.setAttribute("class",c[n]):n!="classid"&&m.setAttribute(n,c[n]));for(var o in d)d[o]!=Object.prototype[o]&&o!="movie"&&m.setAttribute(o,d[o]);h.parentNode.replaceChild(m,h),g=m}else{var p=E(b);p.setAttribute("type",e);for(var r in c)c[r]!=Object.prototype[r]&&(r.toLowerCase()=="styleclass"?p.setAttribute("class",c[r]):r!="classid"&&p.setAttribute(r,c[r]));for(var s in d)d[s]!=Object.prototype[s]&&s!="movie"&&C(p,s,d[s]);h.parentNode.replaceChild(p,h),g=p}return g}function C(a,b,c){var d=E("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function D(a){return h.getElementById(a)}function E(a){return h.createElement(a)}function F(a){var b=q.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10),c[2]=parseInt(c[2],10),b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function G(c,d){if(q.ie&&q.mac)return;var e=h.getElementsByTagName("head")[0],f=E("style");f.setAttribute("type","text/css"),f.setAttribute("media","screen"),(!q.ie||!q.win)&&typeof h.createTextNode!=a&&f.appendChild(h.createTextNode(c+" {"+d+"}")),e.appendChild(f);if(q.ie&&q.win&&typeof h.styleSheets!=a&&h.styleSheets.length>0){var g=h.styleSheets[h.styleSheets.length-1];typeof g.addRule==b&&g.addRule(c,d)}}function H(a,b){var c=b?"visible":"hidden";o?D(a).style.visibility=c:G("#"+a,"visibility:"+c)}function I(a){if(!a)return 0;var b=a.childNodes,c=b.length;for(var d=0;d<c;d++){b[d].nodeType==1&&b[d].nodeName.toLowerCase()=="object"&&(b=b[d].childNodes,c=b.length,d=0);if(b[d].nodeType==1&&b[d].nodeName.toLowerCase()=="param"&&b[d].getAttribute("name")=="swfversion")return b[d].getAttribute("value")}return 0}function J(a){if(!a)return"";var b=a.childNodes,c=b.length;for(var d=0;d<c;d++){b[d].nodeType==1&&b[d].nodeName.toLowerCase()=="object"&&(b=b[d].childNodes,c=b.length,d=0);if(b[d].nodeType==1&&b[d].nodeName.toLowerCase()=="param"&&b[d].getAttribute("name")=="expressinstall")return b[d].getAttribute("value")}return""}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g=window,h=document,i=navigator,j=[],k=[],l=null,m=null,n=null,o=!1,p=!1,q=function(){var e=typeof h.getElementById!=a&&typeof h.getElementsByTagName!=a&&typeof h.createElement!=a&&typeof h.appendChild!=a&&typeof h.replaceChild!=a&&typeof h.removeChild!=a&&typeof h.cloneNode!=a,f=[0,0,0],j=null;if(typeof i.plugins!=a&&typeof i.plugins[c]==b)j=i.plugins[c].description,j&&(j=j.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(j.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(j.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/r/.test(j)?parseInt(j.replace(/^.*r(.*)$/,"$1"),10):0);else if(typeof g.ActiveXObject!=a){var k=null,l=!1;try{k=new ActiveXObject(d+".7")}catch(m){try{k=new ActiveXObject(d+".6"),f=[6,0,21],k.AllowScriptAccess="always"}catch(m){f[0]==6&&(l=!0)}if(!l)try{k=new ActiveXObject(d)}catch(m){}}if(!l&&k)try{j=k.GetVariable("$version"),j&&(j=j.split(" ")[1].split(","),f=[parseInt(j[0],10),parseInt(j[1],10),parseInt(j[2],10)])}catch(m){}}var n=i.userAgent.toLowerCase(),o=i.platform.toLowerCase(),p=/webkit/.test(n)?parseFloat(n.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,q=!1,r=o?/win/.test(o):/win/.test(n),s=o?/mac/.test(o):/mac/.test(n);return{w3cdom:e,pv:f,webkit:p,ie:q,win:r,mac:s}}(),r=function(){if(!q.w3cdom)return;t(v);if(q.ie&&q.win)try{h.write("<script id=__ie_ondomload defer=true src=//:></script>");var b=D("__ie_ondomload");b&&(b.onreadystatechange=function(){this.readyState=="complete"&&(this.parentNode.removeChild(this),s())})}catch(c){}q.webkit&&typeof h.readyState!=a&&(l=setInterval(function(){/loaded|complete/.test(h.readyState)&&s()},10)),typeof h.addEventListener!=a&&h.addEventListener("DOMContentLoaded",s,null),u(s)}();return{registerObject:function(a,b,c){if(!q.w3cdom||!a)return;var d=document.getElementById(a),e=J(d),f={};f.id=a,f.swfVersion=b?b:I(d),f.expressInstall=c?c:e!=""?e:!1,k[k.length]=f,H(a,!1)},getObjectById:function(c){var d=null;if(q.w3cdom&&o){var e=D(c);if(e){var f=e.getElementsByTagName(b)[0];!f||f&&typeof e.SetVariable!=a?d=e:typeof f.SetVariable!=a&&(d=f)}}return d},embedSWF:function(c,d,e,f,g,h,i,j,k){if(!q.w3cdom||!c||!d||!e||!f||!g)return;e+="",f+="";if(F(g)){H(d,!1);var l=typeof k==b?k:{};l.data=c,l.width=e,l.height=f;var m=typeof j==b?j:{};if(typeof i==b)for(var n in i)i[n]!=Object.prototype[n]&&(typeof m.flashvars!=a?m.flashvars+="&"+n+"="+i[n]:m.flashvars=n+"="+i[n]);t(function(){B(l,m,d),l.id==d&&H(d,!0)})}else h&&!p&&F("6.0.65")&&(q.win||q.mac)&&(H(d,!1),t(function(){var a={};a.id=a.altContentId=d,a.width=e,a.height=f,a.expressInstall=h,y(a)}))},getFlashPlayerVersion:function(){return{major:q.pv[0],minor:q.pv[1],release:q.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(a,b,c){return q.w3cdom&&o?B(a,b,c):undefined},createCSS:function(a,b){q.w3cdom&&G(a,b)},addDomLoadEvent:t,addLoadEvent:u,getQueryParamValue:function(a){var b=h.location.search||h.location.hash;if(a==null)return b;if(b){var c=b.substring(1).split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return c[d].substring(c[d].indexOf("=")+1)}return""},expressInstallCallback:function(){if(p&&m){var a=D(f);a&&(a.parentNode.replaceChild(m,a),n&&(H(n,!0),q.ie&&q.win&&(m.style.display="block")),m=null,n=null,p=!1)}}}}()
