// Nivo Slider
jQuery(window).load(function() {
        jQuery('#slider').nivoSlider({
			effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
			slices:15,
			animSpeed:500, //Slide transition speed
			pauseTime:3000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:true, //Next and Prev
			captionOpacity:0.9, // Universal caption opacity
			directionNavHide:false, //Only show on hover
			controlNav:false //1,2,3...
		});

    });
	
	
	



// Smooth Scroll
$(function(){
 
    $('a[href*=#]').click(function() {
 
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
 
            var $target = $(this.hash);
 
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
 
            if ($target.length) {
 
                var targetOffset = $target.offset().top;
 
                $('html,body').animate({scrollTop: targetOffset}, 600);
 
                return false;
 
            }
 
        }
 
    });
 
});








//Cufon replace
$(function(){
		   
		Cufon.replace('h2, h3, h4, .imagebox a, .products, .products-price, .menu > li > a',{ hover: true, fontFamily: 'bebas' });
		Cufon.replace('h6, .col_one_three h4' ,{ fontFamily: 'german', textShadow: '-1px 1px #000' });

});



//Sidescroll Bar Green
$(function ()
        {
           $( '#social' ).scrollFollow();
        }
);


// Tooltip
$(function(){
    $( '#demo-tip-darkgray, #demo-tip-red, #demo-tip-green, #demo-tip-blue' ).poshytip({
				className: 'tip-darkgray',
				bgImageFrameSize: 11,
				offsetX: -25
			});
});



// Images fade animation
$(function(){
	$(".fadeload").hover(function(){
		$(this).stop().animate({opacity: "0.5"}, 350);
	},
	function(){
		$(this).stop().animate({opacity: "1"}, 125);
	});
});




// Go Top button animation
$(function(){
	$("#gotop a").hover(function(){
		$(this).stop().animate({top: "-20px" , height: "30px"}, {duration:125 , easing : "easeInCubic"});
	},
	function(){
		$(this).stop().animate({top: "-10px" , height: "20px"}, {duration:600 , easing : "easeOutBounce"});
	});
});





