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