function egtv_DoFSCommand( command, args ) {
	var egtv = $( "telly" );
	//playah = $( "playah" );
	//play0r = $( "play0r" );
	if( command == "size" ) {
		if (args == "large") {
			egtv.style.width = "673px";
			egtv.style.height = "560px";
			//playah.style.width = "673px";
			//playah.style.height = "560px";
			//play0r.style.width = "673px";
			//play0r.style.height = "560px";
		} else if( args == "normal" ) {
			egtv.style.width = "480px";
			egtv.style.height = "400px";
			//playah.style.width = "480px";
			//playah.style.height = "400px";
			//play0r.style.width = "480px";
			//play0r.style.height = "400px";
		}
	}
}
function toggleVisibility( objID ) {
	obj =  $( objID );
	if( obj ) {
		if( obj.style.display == "none" ) {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
	}
}
function rateVideo( rating, playlist_id ) {
	// params is a set of name/value pairs, which get passed to
	// the remotely called file in the form of a querystring.
	var params = "message=rate&playlist_id=" + playlist_id + "&rating=" + rating;
	
	// this is what does the updating. the parameters in order are:
	// element to be updated, script to use, and additional parameters.
	// documentation: http://www.prototypejs.org/api/ajax/updater
	var superAjax =	new
		Ajax.Updater(
			"vidRating",
			"tv_response.php",
			{
				method: 'get',
				parameters: params,
				evalScripts: false
			}
		);
	return false;
}
