<!--
swfMovieCount=0;
swfMovie=function(movie,id,w,h,containerID,wmode,bgcolor,fsCallback)
{
	if (!document.getElementById || typeof(movie)=="undefined") return;
	swfMovieCount++;
	this.loaded=false;
	this.params=new Object();
	this.atts=new Object();
	this.vars=new Object();
	this.oH=h;
	this.oW=w;
	this.fsRaw=typeof(fsCallback)!="undefined"?fsCallback:null;
	this.setItem("container",containerID);
	this.setItem("movie",movie);
	this.setItem("wmode",typeof(wmode)=="undefined"?"opague":wmode);
	this.setItem("width",typeof(w)=="undefined" || w==null?"100%":w);
	this.setItem("height",typeof(h)=="undefined" || h==null?"100%":h);
	id=(typeof(id)=="undefined" || id==null)?"swfMovie"+swfMovieCount:id;
	this.setItem("id",id);
	this.setItem("align","center");
	this.setItem("bgcolor",bgcolor);
	this.direct=null;
	this.isfirst=true;
}
swfMovie.prototype.getAttributes=function()
{
	return this.atts;
}
swfMovie.prototype.getParams=function()
{
	return this.params;
}
swfMovie.prototype.setItem=function(i,v)
{
	var pa="width|height|vspace|hspace|quality|align|id|container";
	v=typeof(v)=="undefined"?null:v;
	i=i.toLowerCase();
	i=i=="align" && v.length==2?i="salign":i;
	i=i=="file" || i=="src"?"movie":i;
	if (pa.indexOf(i)>=0)
	{
		if (v==null && typeof(this.atts[i])!="undefined") delete this.atts[i]; else this.atts[i]=v;
	}
	else
	{
		if (v==null && typeof(this.params[i])!="undefined") delete this.params[i]; else this.params[i]=v;
	}
}
swfMovie.prototype.getItem=function(a)
{
	return (typeof(this.atts[a])=="undefined")?typeof(this.params[a])=="undefined"?null:this.params[a]:this.atts[a];
}
swfMovie.prototype.fitbrowser=function()
{
	var NS = (navigator.appName=="Netscape")?true:false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
	iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
	iWidth = this.getItem('width') - iWidth; 
	iHeight = this.getItem('height') - iHeight; 
	window.resizeBy(iWidth, iHeight); 
	self.focus();
}
swfMovie.prototype.display=function(id)
{
	if (this.loaded) return;
	this.loaded=true;
	var s="",k,isIE=false;
	if (this.fsRaw!=null) 
	{
		var asa=this.getItem('allowscriptaccess');
		asa=(asa==null || asa=='never')?'always':asa;
		this.setItem("allowscriptaccess",asa);
	}
	var p=this.getParams();
	if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length)
	{ // mozilla
		s = '<embed type="application/x-shockwave-flash" src="'+ this.getItem('movie') +'" width="'+ this.getItem('width') +'" height="'+ this.getItem('height') +'"';
		s = s + ' id="'+ this.getItem('id') +'" name="'+ this.getItem('id') +'" align="' + this.getItem("align") + '" ';
		for(k in p) s = s + [k] +'="'+ p[k] +'" ';
		if (this.fsRaw!=null) s=s + ' swLiveConnect=true ';
		s = s +  '/>';
	} 
	else 
	{ // IE
		s = '<object id="'+ this.getItem('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getItem('width') +'" height="'+ this.getItem('height') + '" align="' + this.getItem("align") + '">';
		s = s + '<param name="movie" value="'+ this.getItem('movie') +'" />';
		for(k in p) s = s +  '<param name="'+ k +'" value="'+ p[k] +'" />';
		isIE=true;
		s = s + "</object>";
	}
	if (id=="" && this.isfirst)
	{
		document.write(s);
	}
	else
	{
		if (this.isfirst)
		{
			if (typeof(id)=="undefined") id=this.getItem("container"); else id=id;
			id=typeof(id)=="string"?id=document.getElementById(id):id;
			if (typeof(id)=="undefined") return false;
			this.setItem("container",id);
		}
		else
		{
			id=this.getItem("container");
		}
		if (id)
		{
		    id.innerHTML="";
		    id.innerHTML=s;
		}
	}
	if (this.isfirst==true)
	{
		this.isfirst=false;
		this.direct=document.getElementById(this.getItem("id"));
		if (this.fsRaw!=null)
		{
			if (isIE)
			{
				var f=typeof(this.fsRaw)=="string"?eval(this.fsRaw):this.fsRaw;
				this.direct.attachEvent("FSCommand",f);
			}
			else
			{
				var fn=typeof(this.fsRaw)=="function"?this.fsRaw.toString():this.fsRaw;
				fn=fn.split("(");
				fn=fn.length>1?fn[0].substr(9):fn[0];
				var f="function " + this.getItem("id") + "_DoFSCommand(command,args){\n" + fn +"(command,args);\n}";
				//alert(f);
				var sc = document.createElement("script");
				sc.type="text/javascript";
				document.body.appendChild(sc);
				sc.innerHTML=f;
			}	
		}
	}
	return true;
}
-->
