var Player = {
	version: "9.0.0",
	base: "http://www.restox.tv",
	video: function(id, v, w, h) {
		Player.embed(id, this.base + "/default/player/config/v/" + parseInt(v), w, h);
	},
	playlist: function(id, p, w, h) {
		Player.embed(id, this.base + "/default/player/config/p/" + parseInt(p), w, h);
	},
	restaurant: function(id, r, w, h) {
		Player.embed(id, this.base + "/default/player/config/r/" + parseInt(r), w, h);
	},
	embed: function(id, config, w, h) {
		var e = document.getElementById(id);
		if(e) {
			e.style.width = parseInt(w) + "px";
			e.style.height = parseInt(h) + "px";
			var flashvars = {
				"config":					config,
				"wmode":					"transparant",
				"autoplay":					"false"
			};
			var params = {
				"allowFullScreen":			"true",
				"allowScriptAccess":		"true"
			};
			var attributes = {};
			swfobject.embedSWF(this.base + "/agriya/flvplayer_elite.swf", id, parseInt(w), parseInt(h), this.version, "expressInstall.swf", flashvars, params, attributes);
		}
	},
	getBase: function() {
		return this.base;
	}
};


/*

			swfobject.embedSWF(this.base + "/player/flvplayer_elite.swf", id, "" + parseInt(w)
			var swf = new SWFObject(, id, parseInt(w), parseInt(h), this.version, null, true);
			swf.addParam("allowFullScreen", "true");
			swf.addParam("allowSciptAccess", "always");
			swf.addParam("wmode", "transparant");
			swf.addVariable("wmode", "transparant");
			swf.addVariable("config", config);
			swf.addVariable("autoplay", "false");
			swf.write(id);
			*/