
// sIFR font replacement

/*document.write('<script src="sifr.js" type="text/javascript"></script>');
document.write('<script src="sifr-addons.js" type="text/javascript"></script>');*/

// Flash file import

function writeFlash(url, w, h, bgcolor, wmode) {
    if (url!='') {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="flashID" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+url+'" />');
		if (wmode==true) {
			document.write('<param name="wmode" value="transparent" />');
				} else {
					document.write('');
					}
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');
		document.write('<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'"')
		if (wmode==true) {
			document.write(' wmode="transparent"');
				} else {
					document.write('');
					}
		document.write('width="'+w+'" height="'+h+'" name="flashID" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
    } else {
        document.write("Flash object not found");
    }
}
/* <script language="javascript">writeFlash('flash/name.swf', '325', '425', '#FFFFFF', true);</script> */

// Flash video import

function writeFlashVideo(player, skin, url, w, h, auto, rew) {
	 if (url!='') {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" id="FLVPlayer">');
		document.write('<param name="movie" value="'+player+'" />');
		document.write('<param name="salign" value="lt" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="scale" value="noscale" />');
		document.write('<param name="FlashVars" value="&MM_ComponentVersion=1&skinName='+skin+'&streamName='+url+'&autoPlay='+auto+'&autoRewind='+rew+'" />');
		document.write('<embed src="'+player+'" flashvars="&MM_ComponentVersion=1&skinName='+skin+'&streamName='+url+'&autoPlay='+auto+'&autoRewind='+rew+'" quality="high" scale="noscale" width="'+w+'" height="'+h+'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
		} else {
        document.write("Flashvideo object not found");
    }
}



function FP_changeProp() {//v1.0
 var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
 d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1]; s="o"; 
 ao=args[i].split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j]; if(null==eval(s)) { 
  s=null; break; } } x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
 x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
 if(s) eval(s+"=v"); }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
