////////////////////////////////////////////////////////
//
// mySWFObject v1.0: Flash Player detection and embed 
//
////////////////////////////////////////////////////////

if(typeof mySWFObject=="undefined")
{
    var mySWFObject=new Object();
}

if(typeof mySWFObject.Utils=="undefined")
{ 
    mySWFObject.Utils=new Object();
}

if(typeof mySWFObject.SWFUtils=="undefined")
{
    mySWFObject.SWFUtils=new Object();
}

/////////////////////////////////
// Constructor
/////////////////////////////////
mySWFObject.SWFObject=function(filename,id,w,h,req_version,c,_7,_8,_9,_a)
{
    if(!document.getElementById)
    {
        return;
    }

    this.skipDetect=0;//HACK
    
    this.params=new Object();
    
    this.variables=new Object();
    
    this.attributes=new Array();
    
    if(filename)
    {
        this.setAttribute("swf",filename);
    }
    
    if(id)
    {
        this.setAttribute("id",id);
    }
    
    if(w)
    {
        this.setAttribute("width",w);
    }
    
    if(h)
    {
        this.setAttribute("height",h);
    }
    
    if(req_version)
    {
        this.setAttribute("version",new mySWFObject.PlayerVersion(req_version.toString().split(".")));
    }
    
    this.installedVer=mySWFObject.SWFUtils.getPlayerVersion();
    if(!window.opera&&document.all&&this.installedVer.major>7){mySWFObject.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};mySWFObject.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(filename0){return this.attributes[filename0];},addParam:function(filename1,filename2){this.params[filename1]=filename2;},getParams:function(){return this.params;},addVariable:function(filename3,filename4){this.variables[filename3]=filename4;},getVariable:function(filename5){return this.variables[filename5];},getVariables:function(){return this.variables;},getVariablePairs:function(){var filename6=new Array();var key;var filename8=this.getVariables();for(key in filename8){filename6[filename6.length]=key+"="+filename8[key];}return filename6;},getSWFHTML:function(){var filename9="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}filename9="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";filename9+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var filenamea=this.getParams();for(var key in filenamea){filename9+=[key]+"=\""+filenamea[key]+"\" ";}var filenamec=this.getVariablePairs().join("&");if(filenamec.length>0){filename9+="flashvars=\""+filenamec+"\"";}filename9+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}filename9="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";filename9+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var filenamed=this.getParams();for(var key in filenamed){filename9+="<param name=\""+key+"\" value=\""+filenamed[key]+"\" />";}var filenamef=this.getVariablePairs().join("&");if(filenamef.length>0){filename9+="<param name=\"flashvars\" value=\""+filenamef+"\" />";}filename9+="</object>";}return filename9;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new mySWFObject.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!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 _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};

/////////////////////////////////
// getPlayerVersion
/////////////////////////////////
mySWFObject.SWFUtils.getPlayerVersion=function()
{
    var result=new mySWFObject.PlayerVersion([0,0,0]);

    if(navigator.plugins&&navigator.mimeTypes.length)
    {
        var x=navigator.plugins["Shockwave Flash"];
        if(x&&x.description)
        {
            result=new mySWFObject.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
        }
    }
    else
    {
            var axo=0;
            var vernum=7;

            if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0)
            {
                vernum=3;
            }
            
            for( var i=0; i< 10; i++ ) //FIXME
            {
                try
                {
                    axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+vernum);
                }
                catch(e)
                {
                    axo = 0;
                }
                
                if( axo )
                    break;
                
                vernum++;
            }
                   
            if(axo!=null)
            {
                result=new mySWFObject.PlayerVersion( axo.GetVariable("$version").split(" ")[1].split(",") );
            }
 
    }
      
    return result;
};
   
   
mySWFObject.PlayerVersion=function(_29)
{this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};mySWFObject.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};mySWFObject.Utils={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};mySWFObject.SWFUtils.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(mySWFObject.SWFObject.doPrepUnload){if(!mySWFObject.unloadSet){mySWFObject.SWFUtils.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",mySWFObject.SWFUtils.cleanupSWFs);};window.attachEvent("onbeforeunload",mySWFObject.SWFUtils.prepUnload);mySWFObject.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=mySWFObject.Utils.getRequestParameter;var FlashObject=mySWFObject.SWFObject;var SWFObject=mySWFObject.SWFObject;