// Flash support by Brian R. miedlar (miedlar.com)
// Modified from sIFR v2.0 RC4 SOURCE
var Flash=Class.create();var _supportsFlash6;Flash.Load=function(){if(typeof (_os)=="undefined"||!_os){setTimeout(Flash.Load,50);return }var A="flash.js";_os.requireAll(A,["agent.js"],{"onComplete":function(){_os.onLoadComplete(A);Flash.AfterLoad()}});_supportsFlash6=Flash.Supports(6)};Flash.AfterLoad=function(){if(_os.pageLoading){setTimeout(Flash.AfterLoad,100);return }var A=UserAgent.GetAgent();if(A.bIsIE){Flash.Activate()}};Flash.Supports=function(B){var D=B;var E=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]);if(E&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var F=navigator.plugins["Shockwave Flash"].description.split(" ");for(var C=0;C<F.length;++C){if(isNaN(parseInt(F[C]))){continue}var A=F[C]}bHasFlash=A>=D}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.appVersion.indexOf("Win")!=-1)){document.write("<script language=\"VBScript\"> \non error resume next \nbHasFlash = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & "+D+"))) \n</script> \n")}}return bHasFlash};Flash.Create=function(D,O,B,N,C,M,J,K,F){K+=" flashObject";var G=null;var A="application/x-shockwave-flash";var I="";if(F["type"]!=null){A=F["type"]}if(G==null||!O.bUseDOM){if(!O.bUseDOM){var H="<embed class=\""+K+"\" type=\""+A+"\" src=\""+B+"\" quality=\""+N+"\" wmode=\""+C+"\" bgcolor=\""+M+"\" flashvars=\""+J+"\" ";if(F["ClassId"]){H+="CLASSID="+attribute["ClassId"]+" "}$H(F).each(function(P){if(P.key=="type"){throw $continue}H+=P.key+"=\""+P.value+"\" "});H+="></embed>";var L=document.createElement("div");D.appendChild(L);Element.update(L,H);nodeFlash=L.childNodes[0]}else{if(O.bIsOpera){nodeFlash=createElement("object");if(attribute["ClassId"]){nodeFlash.setAttribute("CLASSID",attribute["ClassId"])}nodeFlash.setAttribute("data",B);createObjectParameter(nodeFlash,"quality",N);createObjectParameter(nodeFlash,"wmode",C);createObjectParameter(nodeFlash,"bgcolor",M)}else{nodeFlash=document.createElement("embed");if(F["ClassId"]){nodeFlash.setAttribute("CLASSID",F["ClassId"])}nodeFlash.setAttribute("src",B);nodeFlash.setAttribute("quality",N);nodeFlash.setAttribute("flashvars",J);nodeFlash.setAttribute("wmode",C);nodeFlash.setAttribute("bgcolor",M)}nodeFlash.setAttribute("type",A);nodeFlash.className=K;G=nodeFlash.cloneNode(true)}}else{nodeFlash=G.cloneNode(true)}if(O.bUseDOM){if(O.bIsOpera){createObjectParameter(nodeFlash,"flashvars",J)}else{nodeFlash.setAttribute("flashvars",J)}$H(F).each(function(P){nodeFlash.setAttribute(P.key,P.value)});if(F.width){nodeFlash.style.width=F.width+"px"}if(F.height){nodeFlash.style.height=F.height+"px"}D.appendChild(nodeFlash)}if(O.bIsKHTML||O.bIsIE){D.innerHTML+=""}var E=null;$A(document.getElementsByClassName("flashObject",D)).each(function(P){E=P});return E};Flash.Activate=function(){var A=document.getElementsByTagName("object");$A(A).each(function(C){var E="";for(var B=0,D;(D=C.childNodes[B]);B++){E+=D.outerHTML}C.outerHTML=C.outerHTML.replace(/(<\/object>$)/i,E+"$1")})};Flash.Load()
