	    
	// -----------------------------------------------------------------------------
	// Responses
	// -----------------------------------------------------------------------------
	    function playVideo(hostname,streamname,authParams) {
	    	try{
				parent.playOverlayVideo(hostname,streamname,authParams);
	    	}catch(e){}
	    }
	    
		function setCurrentVideoID(id){
			try{
				parent.setVideoID(id);
	    	}catch(e){}			
		}

	// -----------------------------------------------------------------------------
	// Requests
	// -----------------------------------------------------------------------------

	    function changePlaylistVideo(id) {
	    	try{
				var flexApp = document.getElementById("VidZapper");
  	       	 		flexApp.ChangePlaylistVideo(id);
  	       	}catch(e){}
	    }

	    function changeTab(id) {
			try{
				var flexApp = document.getElementById("VidZapper");
  	       	 		flexApp.ChangeTabs(id);
  	       	}catch(e){}
	    }

		function changePlayList(id){
			try{
				var flexApp = document.getElementById("VidZapper");
  	        		flexApp.ChangePlayList(id);
				return "changed";
  	        	}catch(e){
				return e;
			}
		}

		function doSearch(query, showSearchPanel){
			try{
				var flexApp = document.getElementById("VidZapper");
	  	        	flexApp.DoSearch(query, showSearchPanel)
  	        }catch(e){}
		}