
$(function(){
		   
//Show Hide the "About Projector" in the home page		   
	var Toggled=false;
	$(".introGrad a").click(function () {
		if(Toggled==false){$(".introGrad p").slideUp("slow"); Toggled=true;$(this).text("+ Show");} 
		else{$(".introGrad p").slideDown("slow"); Toggled=false;$(this).text("X Hide");} 
		return false;
	});
	
	
///////////////////////////////////////////////////////	
//toggle tabs and divs in the movie page
	$('.tabs li a').click(function(){								   
		$('.tabs li').removeClass('on');
		$(this.parentNode).addClass('on');
		//var urlTab = $(this[href^="http"]);
		//if(urlTab == true){return true;}else{
       
		var toLoad = $('.tabsContent div#'+$(this).attr('href'));
		function showNewContent() {
			$('.tabsContent div').hide();
			$('.tabsContent').fadeIn('slow');
			toLoad.show();
		}
		$('.tabsContent').fadeOut('slow',showNewContent);
		
		return false;
		//}
	});
///////////////////////////////////////////////////////////	
//Show Hide the "addReviewForm"	   
	var ToggleReview=true;
	$(".addReviewUrl").click(function () {
		if(ToggleReview==false)
		{
		    $(".addReviewForm").slideUp("slow"); ToggleReview=true;$(this).css({ background:"url(images/buttons/red.gif) left center no-repeat"})
		} 
		else
		{
		    $(".addReviewForm").slideDown("slow"); ToggleReview=false;$(this).css({ background:"url(images/buttons/grey.gif) left center no-repeat"});
		} 
		
		//window.setTimeout("ChangeCommentsVisibility(false)", 500);
		
		return false;
	});
//Close the "addReviewForm"	
	$(".addReviewForm .close").click(function () {
		$(".addReviewForm").slideUp("slow");
		$(".addReviewUrl").css({ background:"url(images/buttons/red.gif) left center no-repeat"});
		ToggleReview=true;
		
		//window.setTimeout("ChangeCommentsVisibility(false)", 500);
		
		return false;
	});	
/////////////////////////////////////////////////////////
//Show Hide the "talkBack" p	 
	$(".talkBack li div a").click(function () {
		$(this).nextAll("p").slideToggle("slow");
		return false;
	});

});
