	/*
	* Called from flash when the video player is initialised - prior to this function being called, you have no control of the video player
	*/
	function onVideoPlayerReady()
	{
//		alert ('testy'+firstVidId+autoPlay);
		loadVideo("/food/video/menu/inline/id/"+firstVidId);
		//loadVideo("/food/menu/inline/id/"+firstVidId);
		if(autoPlay=="true"){
			playVideo("/food/menu/inline/id/"+firstVidId);
		}
	}

	function onVideoComplete(id)
	{
		// do nothing.
	}

	/*
	* Wraps up the equivalent loadVideoXML in the flash - will add an autoPlay flag later.... 
	*/
	function loadVideoXML(xmlURL, force)
	{
		var videoPlayer = (navigator.appName.indexOf ("Microsoft") != -1) ? window["video_player"] : document["video_player"];
		videoPlayer.loadVideoXML(xmlURL, force);
	}
	
	function getPlayer()
	{
		return videoPlayer = (navigator.appName.indexOf ("Microsoft") != -1) ? window["video_player"] : document["video_player"];
	}
	
	function loadVideo(menuURL, path)
	{
		getPlayer().loadVideo(menuURL, path);
	}
	function playVideo(menuURL, path)
	{
		getPlayer().playVideo(menuURL, path);
	}