$(function() {
					 
	//------------------------
	// navigation drop downs
	//------------------------
	$('#nav li').hover(
		function () {
			$('ul', this).slideDown(200);
		}, 
		function () {
			$('ul', this).slideUp(400);
		}
	);
	$('#sub-nav li').hover(
		function () {
			$('ul', this).slideDown(200);
		}, 
		function () {
			$('ul', this).slideUp(400);
		}
	);

	//------------------------
	// YouTube player
	//------------------------
	$(".videos_scroller").ytplaylist({addThumbs:false, autoPlay:false, playerWidth:480, playerHeight:295, holderId: 'top-strip-youtube'});

	//------------------------
	// Top strip YouTube & Actions scrollers
	//------------------------
	$("div.scrollable").scrollable({
		vertical:true, 
		clickable: false,
		size: 4
	}).mousewheel();

	$("div.actions_scrollable").scrollable({
		vertical:true, 
		clickable: false,
		size: 3,
		speed: 600
	}).mousewheel();

	//------------------------
	// content actions scroller
	//------------------------
	$("div.content-actions-scroller").scrollable({
		vertical:false, 
		clickable: true,
		size: 5,
		speed: 600
	});

	//----------------------------------
	// Main side menu
	// Developed by Roshan Bhattarai 
	// Visit http://roshanbh.com.np for this script and more.
	// This notice MUST stay intact for legal use
	// ---------------------------------
	$("#side-channel-menu").accordion({
		event: "mouseover",
		autoHeight: false
	});

	//------------------------
	// news ticker
	//------------------------
	$("#newsticker").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 3,
		auto:2500,
		speed:1500
	});

	//------------------------
	// figures ticker
	//------------------------
	$("#data-ticker").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2800,
		speed:1500
	});

	//------------------------
	// image links animations
	//------------------------
	$("#logo a").mouseover(function(){$('#logo a').animate({opacity:0.6}, 'fast'); return false;}); 
	$("#logo a").mouseout(function(){$('#logo a').animate({opacity:1}, 'slow'); return false;}); 
	$("#logo-bot-en a").mouseover(function(){$('#logo-bot-en a').animate({opacity:0.6}, 'fast'); return false;}); 
	$("#logo-bot-en a").mouseout(function(){$('#logo-bot-en a').animate({opacity:1}, 'slow'); return false;}); 
	$("#about-hiddush a").mouseover(function(){$('#about-hiddush a img').animate({opacity:0.7}, 'fast'); return false;}); 
	$("#about-hiddush a").mouseout(function(){$('#about-hiddush a img').animate({opacity:1}, 'slow'); return false;}); 
	$("#lionways a").mouseover(function(){$('#lionways a').animate({opacity:0.6}, 'fast'); return false;}); 
	$("#lionways a").mouseout(function(){$('#lionways a').animate({opacity:1}, 'slow'); return false;}); 
	$("#kiwinet a").mouseover(function(){$('#kiwinet a').animate({opacity:0.6}, 'fast'); return false;}); 
	$("#kiwinet a").mouseout(function(){$('#kiwinet a').animate({opacity:1}, 'slow'); return false;}); 

	//------------------------
	// To Top link
	//------------------------
	$(".toplink a").click(function(){
		$('html, body').animate({scrollTop:0}, 'slow'); 
		return false;
	}); 

	//------------------------
	// box grid
	//------------------------
	$('.boxgrid.slideright').hover(function(){
		$(".cover", this).stop().animate({left:'180px'},{queue:false,duration:300});
		}, function() {
		$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	$('.boxgridm.slideright').hover(function(){
		$(".cover", this).stop().animate({left:'380px'},{queue:false,duration:300});
		}, function() {
		$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
	});

});
