// Think Ambient
// Javascript functions for video
// Powered by Prego

function initVideo(containerID, videoURL, format)
{
	//var ff2Mac = (navigator.userAgent.indexOf("Firefox/2") && navigator.userAgent.indexOf("Macintosh")) ? true : false;
	
	if(format != "normal" && format != "wide")
		format = "normal";
	
	var flashVars = {
			//skin:baseURL+"flash/skin.swf",
			//logo:baseURL+"images/watermark.png",
			file:videoURL,
			autostart:false
		};
		
	var params = {
			//wmode:"transparent",
			allowfullscreen:false //was ff2Mac
		};
	
	var width = (format == "normal") ? "230" : "311";
	
	swfobject.embedSWF(
		"flash/player.swf", 
		containerID, 
		width, 
		"195", 
		"8.0.0", 
		false, 
		flashVars,
		params
	);

}