/**
 * @author Ashish Bogawat
 */
// CUFON Declarations
Cufon.replace('h2');

// Nivo Slider
$(window).load(function(){
	$('#featured').nivoSlider({
		directionNav: false
	});
});

// Custom Functions
$(function(){

	// Content slider and on-click tooltip
	
	$('a#navpage1').click(function(){
		$(this).attr("href","#");
		$('ul#contentlist').animate({'left': '0px'},700);
		$('.tooltip').animate({'top':'25px'},200);
		$('#tooltippage1').animate({'top':'0'},200);
	});
	$('a#navpage2').click(function(){
		$(this).attr("href","#");
		$('ul#contentlist').animate({'left': '-700px'},700);
		$('.tooltip').animate({'top':'25px'},200);
		$('#tooltippage2').animate({'top':'0'},200);
	});
	$('a#navpage3').click(function(){
		$(this).attr("href","#");
		$('ul#contentlist').animate({'left': '-1400px'},700);
		$('.tooltip').animate({'top':'25px'},200);
		$('#tooltippage3').animate({'top':'0'},200);
	});
	$('a#navpage4').click(function(){
		$(this).attr("href","#");
		$('ul#contentlist').animate({'left': '-2100px'},700);
		$('.tooltip').animate({'top':'25px'},200);
		$('#tooltippage4').animate({'top':'0'},200);
	});
	$('a#navleader').click(function(){
		$(this).attr("href","#");
		$('ul#contentlist').animate({'left': '-2800px'},700);
		$('.tooltip').animate({'top':'25px'},200);
		$('#tooltippage4').animate({'top':'0'},200);
	});
	
	// jCarouselLite
	
	$('#carousel1').jCarouselLite({btnPrev:"#prev1", btnNext:"#next1",	visible: 2});
	$('#carousel2').jCarouselLite({btnPrev:"#prev2", btnNext:"#next2",	visible: 2});
	$('#carousel3').jCarouselLite({btnPrev:"#prev3", btnNext:"#next3",	visible: 2});
	$('#carousel4').jCarouselLite({btnPrev:"#prev4", btnNext:"#next4",	visible: 2});

});

