function write_swf(){_a=write_swf.arguments;_b=new Array();_b['id']='';_b['width']='100%';_b['height']='100%';_b['vspace']='';_b['hspace']='';_b['align']='';_b['id']='';_b['bgcolor']=(document.bgColor!=null)?document.bgColor:"#ffffff";_b['quality']='high';_b['swliveconnect']='false';_b['wmode']='';_b['menu']='false';_c=(_a[1])?_a[1].split(','):new Array();for(i=0;i<_c.length;i++){_d=_c[i].split('=');_b[_d[0].replace(' ','')]=_d[1].replace(' ','');}
if(_a[2]){_e=_a[2].split('&');_e=_e.join('&',escape(_e));}else{_e='';}
if(_b['bgcolor'].substr(0,1)!="#")_b['bgcolor']=flashColor(_b['bgcolor']);swf_tag='<object  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" name="'+_b['id']+'" width="'+_b['width']+'" height="'+_b['height']+'" vspace="'+_b['vspace']+'" hspace="'+_b['hspace']+'" align="'+_b['align']+'" id="'+_b['id']+'"><param name="wmode" value="'+_b['wmode']+'"><param name="movie" value="'+_a[0]+'"><param name="quality" value="'+_b['quality']+'"><param name="BGCOLOR" value="'+_b['bgcolor']+'"><param name="menu" value="'+_b['menu']+'"><param name="FlashVars" value="'+_e+'"><embed src="'+_a[0]+'" width="'+_b['width']+'" height="'+_b['height']+'" vspace="'+_b['vspace']+'" hspace="'+_b['hspace']+'" align="'+_b['align']+'" menu="'+_b['menu']+'" swliveconnect="'+_b['swliveconnect']+'" quality="'+_b['quality']+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="'+_b['id']+'" bgcolor="'+_b['bgcolor']+'" flashvars="'+_e+'" /></object>';document.write(swf_tag);};function get_style(selector,style_attribute){if(!document.styleSheets){return(false);}
for(var ss=0;ss<document.styleSheets.length;ss++){var tss=document.styleSheets[ss];if(!tss.cssRules){tss.cssRules=tss.rules;}
for(var ru=0;ru<tss.cssRules.length;ru++){if(typeof(tss.cssRules[ru].selectorText)!="undefined"){_match=new RegExp(selector,"gi");if(tss.cssRules[ru].selectorText.match(_match)){if(typeof(tss.cssRules[ru].style[style_attribute])!="undefined"){return(tss.cssRules[ru].style[style_attribute]);}}}}}
return(false);}
function decToHex(dec)
{var hexStr="0123456789ABCDEF";var low=dec%16;var high=(dec-low)/16;hex=""+hexStr.charAt(high)+hexStr.charAt(low);return hex;}
function flashColor(clas)
{var rgb=get_style('.'+clas,'backgroundColor');if(!rgb)return false;if(rgb.substr(0,3)=='rgb'){rgb=rgb.replace(/rgb\(/g,"").replace(/\)/g,"");var rgbsplit=rgb.split(', ');return '#'+decToHex(rgbsplit[0])+decToHex(rgbsplit[1])+decToHex(rgbsplit[2]);}
else return rgb;}
