/**
 * based on FlashObject v1.3b: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
function FlashObject (file,id,w,h,t,c,_8) {
	this.params=new Object();
	this.variables=new Object();
	this.attributes=new Array();
	this.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
	if(!document.getElementById){return;}
	if(file){this.setAttribute("swf",file);}
	if(id){this.setAttribute("id",id);}
	if(w){this.setAttribute("width",w);}
	if(h){this.setAttribute("height",h);}
	if(t){this.setAttribute("title",t);}
	if(c){this.addParam("bgcolor",c);}
	var q=_8?_8:"high";
	this.addParam("quality",q);
};
FlashObject.prototype={
setAttribute:function(_e,_f){this.attributes[_e]=_f;},
getAttribute:function(_10){return this.attributes[_10];},
addParam:function(_11,_12){this.params[_11]=_12;},
getParams:function(){return this.params;},
addVariable:function(_13,_14){this.variables[_13]=_14;},
getVariable:function(_15){return this.variables[_15];},
getVariables:function(){return this.variables;},
getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){_19.push(key+"="+_1b[key]);}
return _19;
},getFlashHTML:function(){
with (this) {
	_1c="<object id=\""+getAttribute("id")+"\"\
		type=\"application/x-shockwave-flash\"\
		data=\""+getAttribute("swf")+"\"\
		width=\""+getAttribute("width")+"\"\
		height=\""+getAttribute("height")+"\"\
		title=\""+getAttribute("title")+"\">";
	var append="";
	var _22=getVariablePairs().join("&");
	if(_22.length>0)append="?"+_22;
	_1c+="<param name=\"movie\" value=\""+getAttribute("swf")+append+"\" />";
	var _20=getParams();
	for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}
	if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";
	_1c+="</object>";}}
	return _1c;
},
write:function(_flashID){
	var n=(typeof _flashID=="string")?document.getElementById(_flashID):_flashID;
	n.innerHTML=this.getFlashHTML();
},
showCont:function(_contID,_flashID){
	var n=(typeof _contID=="string")?document.getElementById(_contID):_contID;
	n.removeAttribute("class","hidden");
	n.removeAttribute("className","hidden");
	this.write(_flashID);
},
hideCont:function(_contID){
	var n=(typeof _contID=="string")?document.getElementById(_contID):_contID;
	n.setAttribute("class","hidden");
	n.setAttribute("className","hidden");
}};

/*
function showFlash() {
	var a;
	a = document.getElementById("flash");
	a.removeAttribute('class');
	a.removeAttribute('className');
}

function hideFlash() {
	var a;
	a = document.getElementById("flash");
	a.setAttribute('class','hidden');
	a.setAttribute('className','hidden');
}
*/
