/*
//////////////////////////////////////////////////////////////////////////////

  Flash Detect 0.9.5  -  2006-04-19
  javascript swf embed/object printout and detection
  (c) Francis Turmel - www.nectere.ca - francis (at) nectere.ca

//////////////////////////////////////////////////////////////////////////////
*/

var fd={};fd.showFlash=function(_1,id,_3,_4,w,h,_7,_8){if(fd.movies==null){fd.movies=[];}if(_7==null){_7=0;}var _9=fd.tools.getFlashVersion();var _a="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_7+",0,0,0";if(fd.player_download==null){fd.player_download="http://www.macromedia.com/go/getflashplayer";}(_8!=null)?_8=_8.split(" : "):_8="";if(_9>=_7||fd.tools.getParam("bypassFlashCheck")=="true"){fd.actions.outputTag(_1,id,_3,_4,w,h,_a);}else{if(_8[0]=="r"){fd.actions.redirect(_8[1],_8[2],_7,_9);}else{if(_8[0]=="i"){fd.actions.image(_8[1],_8[2]);}else{if(_8[0]=="d"){fd.actions.showDiv(_8[1]);}else{if(_8[0]=="h"){fd.actions.html(_8[1]);}}}}}fd.movies.push(id);};fd.actions={outputTag:function(_b,id,_d,_e,w,h,_11){for(k in _e){(_b.indexOf("?")==-1)?_b+="?"+k+"="+_e[k]:_b+="&"+k+"="+_e[k];}var _12=[];_12["quality"]="high";_12["menu"]="false";_12["swLiveConnect"]="true";_12["pluginspage"]=fd.player_download;_12["allowScriptAccess"]="sameDomain";for(var i in _d){_12[i]=_d[i];}if(!fd.tools.ns4()){obj_w="100%";obj_h="100%";}else{obj_w=fd.size.calculate(w,"w");obj_h=fd.size.calculate(h,"h");}var tag="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='"+_11+"' id='"+id+"' width='"+obj_w+"' height='"+obj_h+"' align='top' hspace='0' vspace='0'><param name='movie' value='"+_b+"'>";for(var i in _12){tag+="<param name='"+i+"' value='"+_12[i]+"'>";}tag+="<embed src='"+_b+"' width='"+obj_w+"' height='"+obj_h+"' align='top' hspace='0' vspace='0' type='application/x-shockwave-flash' name='"+id+"' ";for(var i in _12){tag+=i+"='"+_12[i]+"' ";}tag+="></embed></object>";if(!fd.tools.ns4()){document.write("<div id='div_"+id+"' style='width:"+fd.size.calculate(w,"w")+"; height:"+fd.size.calculate(h,"h")+"'>"+tag+"</div>");fd.tools.getElement("div_"+id).innerHTML=fd.tools.getElement("div_"+id).innerHTML;fd.tools.getElement("div_"+id).fd_w=w;fd.tools.getElement("div_"+id).fd_h=h;}else{document.write(tag);}},redirect:function(url,_18,_19,_1a){if(_18){location.href=url+"?r="+_19+"&i="+_1a;}else{location.href=url;}},image:function(_1b,url){if(url=="none"){document.write("<img src='"+_1b+"' border=0 />");}else{if(url==null){url=fd.player_download;}document.write("<a href='"+url+"' target='_blank'><img src='"+_1b+"' border=0 /></a>");}},showDiv:function(id){if(!fd.tools.ns4()&&!fd.tools.ie5_mac()){fd.tools.getElement(id).style.display="block";}},html:function(_1e){document.write(_1e);}};fd.size={calculate:function(val,_20){if(val.indexOf(" : ")!=-1){val=val.split(" : ");var _21=val[0].split("%");(_21[0]!=""&&_21[1]!=null)?_21=(_21[0]/100):_21=1;(val[1]>(fd.tools.windowSize()[_20]*_21)||val[1]=="")?val=val[1]:val=val[0];}return val;},refresh:function(){if(!fd.tools.ns4()){for(var id in fd.movies){if(fd.tools.getElement("div_"+fd.movies[id])){var w=fd.size.calculate(fd.tools.getElement("div_"+fd.movies[id]).fd_w,"w");var h=fd.size.calculate(fd.tools.getElement("div_"+fd.movies[id]).fd_h,"h");fd.tools.getElement("div_"+fd.movies[id]).style.width=w;fd.tools.getElement("div_"+fd.movies[id]).style.height=h;}}}else{location.reload();}}};fd.tools={getParam:function(key){return fd.tools.getQuerystring()[key];},getQuerystring:function(){var _26=window.location.search.substring(1).split("&");var _27=[];for(var i in _26){var pos=_26[i].indexOf("=");if(pos>0){_27[_26[i].substring(0,pos)]=_26[i].substring(pos+1);}}return _27;},ns4:function(){return (document.layers)?true:false;},ie5_mac:function(){var _2a=navigator.userAgent.toLowerCase();return (_2a.indexOf("msie 5")!=-1&&_2a.indexOf("mac")!=-1)?true:false;},ie7:function(){var _2b=navigator.userAgent.toLowerCase();return (_2b.indexOf("msie 7")!=-1)?true:false;},windowSize:function(){if(self.innerWidth){return {w:self.innerWidth,h:self.innerHeight};}else{if(document.documentElement&&document.documentElement.clientWidth){return {w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};}else{if(document.body){return {w:document.body.clientWidth,h:document.body.clientHeight};}}}},getElement:function(id){if(!fd.tools.ns4()){return document.getElementById(id);}else{return document.layers[id];}},getFlashVersion:function(){document.writeln("<script language=\"VBscript\">");document.writeln("Function detectActiveXControl(activeXControlName)");document.writeln("  on error resume next");document.writeln("  detectActiveXControl = False");document.writeln("  detectActiveXControl = IsObject(CreateObject(activeXControlName))");document.writeln("End Function");document.writeln("</scr"+"ipt>");var _2d=0;var b=navigator.userAgent.toLowerCase();if((b.indexOf("msie")!=-1)&&(b.indexOf("win")!=-1)&&(b.indexOf("opera")==-1)){if(fd.tools.ie7()){_2d=15;}else{for(var i=3;i<15;i++){if(detectActiveXControl("ShockwaveFlash.ShockwaveFlash."+i)==true){_2d=i;}}}}else{if(navigator.plugins["Shockwave Flash"]){var _30=navigator.plugins["Shockwave Flash"].description;_2d=parseInt(_30.charAt(_30.indexOf(".")-1));}if(b.indexOf("webtv/2.6")!=-1){_2d=4;}if(b.indexOf("webtv/2.5")!=-1){_2d=3;}if(b.indexOf("webtv")!=-1){_2d=2;}}return _2d;}};window.onresize=fd.size.refresh;