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