if(typeof deconcept=="undefined"){
var deconcept=new Object();
}
if(typeof deconcept.util=="undefined"){
deconcept.util=new Object();
}
if(typeof deconcept.SWFObjectUtil=="undefined"){
deconcept.SWFObjectUtil=new Object();
}
deconcept.SWFObject=function(a,b,w,h,d,c,e,f,g,i,j){
if(!document.createElement||!document.getElementById){
return;
}
this.DETECT_KEY=j?j:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(a){
this.setAttribute("swf",a);
}
if(b){
this.setAttribute("id",b);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(d){
this.setAttribute("version",new deconcept.PlayerVersion(d.toString().split(".")));
}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),e);
if(c){
this.addParam("bgcolor",c);
}
var q=f?f:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",e);
this.setAttribute("doExpressInstall",false);
var k=(g)?g:window.location;
this.setAttribute("xiRedirectUrl",k);
this.setAttribute("redirectUrl","");
if(i){
this.setAttribute("redirectUrl",i);
}
};
deconcept.SWFObject.prototype={setAttribute:function(a,b){
this.attributes[a]=b;
},getAttribute:function(a){
return this.attributes[a];
},addParam:function(a,b){
this.params[a]=b;
},getParams:function(){
return this.params;
},addVariable:function(a,b){
this.variables[a]=b;
},getVariable:function(a){
return this.variables[a];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var a=new Array();
var b;
var c=this.getVariables();
for(b in c){
a.push(b+"="+c[b]);
}
return a;
},getSWFHTML:function(){
var a="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
a="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
a+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var b=this.getParams();
for(var c in b){
a+=[c]+"=\""+b[c]+"\" ";
}
var d=this.getVariablePairs().join("&");
if(d.length>0){
a+="flashvars=\""+d+"\"";
}
a+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
}
a="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
a+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var e=this.getParams();
for(var c in e){
a+="<param name=\""+c+"\" value=\""+e[c]+"\" />";
}
var f=this.getVariablePairs().join("&");
if(f.length>0){
a+="<param name=\"flashvars\" value=\""+f+"\" />";
}
a+="</object>";
}
return a;
},write:function(a){
if(this.getAttribute("useExpressInstall")){
var b=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);
}
}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof a=="string")?document.getElementById(a):a;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
deconcept.SWFObjectUtil.getPlayerVersion=function(a,b){
var c=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
c=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}
}else{
try{
var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;d!=null;i++){
d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
c=new deconcept.PlayerVersion([i,0,0]);
}
}
catch(e){
}
if(a&&c.major>a.major){
return c;
}
if(!a||((a.minor!=0||a.rev!=0)&&c.major==a.major)||c.major!=6||b){
try{
c=new deconcept.PlayerVersion(d.GetVariable("$version").split(" ")[1].split(","));
}
catch(e){
}
}
}
return c;
};
deconcept.PlayerVersion=function(a){
this.major=parseInt(a[0])!=null?parseInt(a[0]):0;
this.minor=parseInt(a[1])||0;
this.rev=parseInt(a[2])||0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(a){
if(this.major<a.major){
return false;
}
if(this.major>a.major){
return true;
}
if(this.minor<a.minor){
return false;
}
if(this.minor>a.minor){
return true;
}
if(this.rev<a.rev){
return false;
}
return true;
};
deconcept.util={getRequestParameter:function(a){
var q=document.location.search||document.location.hash;
if(q){
var b=q.indexOf(a+"=");
var c=(q.indexOf("&",b)>-1)?q.indexOf("&",b):q.length;
if(q.length>1&&b>-1){
return q.substring(q.indexOf("=",b)+1,c);
}
}
return "";
}};
if(Array.prototype.push==null){
Array.prototype.push=function(a){
this[this.length]=a;
return this.length;
};
}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;

