//-----------------------------------------------------------------------------
// PITplayer v3.5 - http://dev.pitplay.com
//=============================================================================
function PITplayer(div,_width,_height, bg){
	var v	= new Array();
	var aculous = new Array();
	getDefaults();
		
	this.setControls = function(controls){this.add("controls",controls);}
	this.add = function(key,value){v[key] = value;}
	
	this.play = function(file){
      var so = new SWFObject("http://www.laser-mike.nl/inc/swf/pit-engine_LM.swf", "pit", _width, _height, version, bg);
      v["file"] = file + "?var="+Math.random();
      
		for (i in v) {
			// scriptaculous array.extend workaround
			if(aculous[i]==undefined){
				so.addVariable(i,v[i]);
			}
		}
		
		so.addParam("allowFullScreen",true);
		so.addParam("wmode","transparent");
		so.write(div);
	}
		
	function getDefaults(){
		v["controls"] = "bg";
	
		if(_width==undefined){_width = 450;}
		if(_height==undefined){_height = 360;}
		if(bg==undefined){bg = "#000000"};
		this.version = "8";
	}
}