// JavaScript Document
function divdetect(){
	
	if (!document.getElementsByTagName){ return; }
		var divs = document.getElementsByTagName("div");
	
		// loop through all divs tags
		for (var i=0; i<divs.length; i++){
			var div = divs[i];
	
			if ((div.getAttribute("id") == "video1") || (div.getAttribute("id") == "video2")|| (div.getAttribute("id") == "video3") || (div.getAttribute("id") == "video4") || (div.getAttribute("id") == "video5") || (div.getAttribute("id") == "video6")){
				
				$('video1').hide();
				$('video2').hide();
				$('video3').hide();
				$('video4').hide();
				$('video5').hide();
				$('video6').hide();				
				
				return false;
			}
		}
}

function watch1()
  {
  	$('video2').hide();
	$('video3').hide();
	$('video4').hide();
	$('video5').hide();
	$('video6').hide();
	new Effect.toggle('video1', 'appear');
	return false;
}
function watch2()
  {
  	$('video1').hide();
	$('video3').hide();
	$('video4').hide();
	$('video5').hide();
	$('video6').hide();
	new Effect.toggle('video2', 'appear');	
	return false;
}
function watch3()
  {
  	$('video1').hide();
	$('video2').hide();
	$('video4').hide();
	$('video5').hide();
	$('video6').hide();
	new Effect.toggle('video3', 'appear');	
	return false;
}
function watch4()
  {
  	$('video1').hide();
	$('video2').hide();
	$('video3').hide();
	$('video5').hide();
	$('video6').hide();
	new Effect.toggle('video4', 'appear');
	return false;
}
function watch5()
  {
  	$('video1').hide();
	$('video2').hide();
	$('video3').hide();
	$('video4').hide();
	$('video6').hide();
	new Effect.toggle('video5', 'appear');	
	return false;
}
function watch6()
  {
  	$('video1').hide();
	$('video2').hide();
	$('video3').hide();
	$('video4').hide();
	$('video5').hide();
	new Effect.toggle('video6', 'appear');	
	return false;
}