/*
*	Video Playlist
*	Loads and interfaces with a Flash video player application
*	
*	Requires jQuery library (http://www.jquery.com),
*	SWFObject (http://blog.deconcept.com/swfobject/)
*	
*	Marcos Abreu (marcos@trapeze.com) - July 30, 2007
*	Taylan Pince (taylan@trapeze.com) - August 3, 2007
*   Sam Bull (sbull@trapeze.com) - December 15, 2007
*   Sam Bull (sbull@trapeze.com) - March 3, 2008
*/


function RR_PlayingVideo(video_id, title, teaser, object_url){
}

function thisMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

if (typeof trapeze == 'undefined') trapeze = new Object();

trapeze.VideoPlaylist = {
	
	assets_path : trapeze.RachaelRay.assets_path,
	
	init_player : function(xml_url, start_first) {
		var so = new SWFObject(this.assets_path + "fla/player_small.swf", "videoPlayer", "331", "280", "8", "#FFFFFF");
		so.addParam("wmode", "transparent");
		so.addParam("allowScriptAccess", "always");
		so.addParam("scale", "noscale");
		so.addParam("salign", "T");
		so.addVariable("front", "false");
		so.addVariable("xmlPath", xml_url);
		so.addVariable("prefPath", this.assets_path + "xml/player-prefs.xml");
		so.addVariable("allowedDomain", window.location.hostname);
        so.addVariable("playFirst", ((start_first)? "true" : "false"));
		so.write("VideoPlayer");
	},

	init : function() {
		this.init_player(this.starting_video_url, false);
	}
}

$(function() {
	trapeze.VideoPlaylist.init();
});