var flashplayer = "http://static.quadiatv.com/player/peplayer/peplayer.swf";

loadVideo = function(media_id, where) {
	if($type(where)==false) where="h_player";

	var so = new SWFObject(flashplayer, 'h_player_object', 512, "384", "9");
	
//	var pf = new Hash({"file":"http://static.quadiatv.com/media_v3/169/"+media_id+".flv"});
	var pf = new Hash({"media_id":media_id,"controlbar":"over","autostart":"true"});
	var pp = new Hash({"allowscriptaccess":"always","wmode":"transparent"});

	pf.each(function(value,key){so.addVariable(key,value)},this);
	pp.each(function(value,key){so.addParam(key,value)},this);
	
	so.write(where);
}

