//This is the function file for the V.library
function NewText(text)
	{
	parent.variable.document.form1.text.value = text;
	parent.right_center.location.href = "right_center.php?page="+text;
	}
function PickVideo(video)
	{
	var speed = parent.variable.document.form1.speed.value;
	var player = parent.variable.document.form1.player.value;
	if(speed == "0")
		{
		parent.left_center.location.href = "left_center_56.php?player="+player+"&video="+video;
		}
	if(speed == "1")
		{
		parent.left_center.location.href = "left_center_bb.php?player="+player+"&video="+video;
		}
	parent.variable.document.form1.video.value = video;
	NewText(video);
	}
function NewHeader(player)
	{
	if(player == 'qt56')
		{
		parent.left_top.location.href = "left_top.php?connection=Low+Bandwidth&name=QuickTime";
		parent.variable.document.form1.player.value = "qt56";
		parent.variable.document.form1.speed.value = "0";
		}
	else if(player == 'qtbb')
		{
		parent.left_top.location.href = "left_top.php?connection=High+Bandwidth&name=QuickTime";
		parent.variable.document.form1.player.value = "qtbb";
		parent.variable.document.form1.speed.value = "1";
		}
	else if(player == 'wmp56')
		{
		parent.left_top.location.href = "left_top.php?connection=Low+Bandwidth&name=Windows+Media+Player";
		parent.variable.document.form1.player.value = "wmp56";
		parent.variable.document.form1.speed.value = "0";
		}
	else if(player == 'wmpbb')
		{
		parent.left_top.location.href = "left_top.php?connection=High+Bandwidth&name=Windows+Media+Player";
		parent.variable.document.form1.player.value = "wmpbb";
		parent.variable.document.form1.speed.value = "1";
		}
	else if(player == 'real56')
		{
		parent.left_top.location.href = "left_top.php?connection=Low+Bandwidth&name=RealPlayer";
		parent.variable.document.form1.player.value = "real56";
		parent.variable.document.form1.speed.value = "0";
		}
	else if(player == 'realbb')
		{
		parent.left_top.location.href = "left_top.php?connection=High+Bandwidth&name=RealPlayer";
		parent.variable.document.form1.player.value = "realbb";
		parent.variable.document.form1.speed.value = "1";
		}
	else if(player == 'help')
		{
		parent.left_top.location.href = "left_top.php?connection=Detection+Failed";
		}
	else
		{
		parent.left_top.location.href = "left_top.php?connection=Unknown";
		}
	}
function Update(player)
	{
	var video = parent.variable.document.form1.video.value;
	var text = parent.variable.document.form1.text.value;
	if(player == 'wmpbb' || player == 'qtbb' || player == 'realbb')
		{
		parent.left_center.location.href = "left_center_bb.php?player="+player+"&video="+video;
		}
	if(player == 'wmp56' || player == 'qt56' || player == 'real56')
		{
		parent.left_center.location.href = "left_center_56.php?player="+player+"&video="+video;
		}
	NewHeader(player);
	NewText(text);
	}
