var $ = jQuery.noConflict();
	$(document).ready(function(){
		/* for top navigation */
		$(" #nav ul ").css({display: "none"}); // Opera Fix
		$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
		/* For Header easyslider */
		$("#slider").easySlider({
			auto: true,
			continuous: true,
			pause:<?php echo $time;?>
		});
		/* For Cycle Header Slideshow */
	 	$('#slideshow').cycle({
		timeout: <?php echo $time;?>,  // milliseconds between slide transitions (0 to disable auto advance)
		fx:      'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...            
		pager:   '#pager',  // selector for element to use as pager container
		pause:   0,	  // true to enable "pause on hover"
		pauseOnPagerHover: 0 // true to pause when hovering over pager link
		});
		/* For Cycle Sideright Slideshow  */
	 	$('#boxslideshow').cycle({
		timeout: 6000,  // milliseconds between slide transitions (0 to disable auto advance)
		fx:      'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...            
		pause:   0,	  // true to enable "pause on hover"
		pauseOnPagerHover: 0 // true to pause when hovering over pager link
		});
		/* For Tab */
		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
		//On Click Event
		$("ul.tabs li").click(function() {
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(900); //Fade in the active content
			return false;
		});
		/* for news ticker */
		$(".latestnews").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 2,
		auto:4000,
		speed:1000,
		btnNext: ".next",
    	btnPrev: ".prev"
		});

	});	
