$(document).ready(function(){

	
	$('.content').hide();
  	$('#reviews').siblings().hide();

  	$(".body-right .head").live('click', function(){
	  $(this).next().toggle("slow")
	  .siblings("li.content").hide();
	  $(this).toggleClass("active1");
	  $(this).siblings("h2").removeClass("active1");
	  		
		var largeImagegPath = $(this).children('h2').attr('title');//get a href from Thumb image for Image path of Large image 
		//var largeAlt = $(this).attr('title'); //get the Title from Thumb image for Alt tag of Large image .children('b')
        $('#body-left img').attr({ src: largeImagegPath });//.attr('src', imagepath ); //give new large image path of src and Alt tag, which I get from href and Title of href
				//$(".output").html(largeAlt); 
		return false; // mention it when use clcik event specially for src
			
	});

	$('.head').hover(
		function(){
			$(this).addClass('highlightNews');
		},
		function(){
			$(this).removeClass('highlightNews');
		}
	);

	$('.newslink').bind('click', function(){
		//showWaiting('Loading...');
		page = $(this).attr('id');
		$('#body-wrapper').load('newslist.php', {'newspage':page});
		return false;
	});
	
	$('#menu-top ul ul li a').click(function(){ //When any link is clicked
			
			//$(this).parent('li').siblings().removeClass('active');//$('#tab ul li').removeClass('active'); // Remove active class from Previous Link or All Links
            //$(this).parent('li').addClass('active'); //Set parent (just before element of It like content-filter.html) of clicked link class to active
			
			var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
		    
			$(currentTab).siblings().hide();//.fadeOut()	$('#news-mid div').hide(); // Hide all divs with in tab id 
			$(currentTab).fadeIn(); //.show() Show div with id equal to variable currentTab
			
			return false;
	});

});
