/*------------------- FADETOGGLE FUNCTIONALYTI BEGIN --------------------*/

jQuery.fn.fadeToggle = function(speed, easing, callback) { 
    return this.animate({opacity: 'toggle'}, speed, easing, callback); 
};

/*------------------- FADETOGGLE FUNCTIONALYTI END --------------------*/

$(document).ready(function(){
  //hide the all of the element with class msg_body
  $("#prods").hide();
  //toggle the componenet with class msg_body
  $("a.prods").click(function()
  {
    $("#prods").fadeToggle(250);
  });



/*------------------- EQUAL HEIGHT BEGIN --------------------*/

	$('.equal_one').equalHeight();
	$('.equal_two').equalHeight();
	$('.equal_three').equalHeight();
	$('.equal_four').equalHeight();
	$('.equal_five').equalHeight();

/*------------------- EQUAL HEIGHT END --------------------*/		





/* ----------------------------------------- SMOOTH SCROLL BEGIN ----------------------------------------- */
 
	jQuery(function( $ ){
		$('a.smooth').click(function(){//$.scrollTo works EXACTLY the same way, but scrolls the whole screen
			$.scrollTo( this.hash, 1500, { easing:'easeOutExpo' });
			$(this.hash).find('span.message').text( this.title );
			return false;
		});
	});
	
/* ----------------------------------------- SMOOTH SCROLL END ----------------------------------------- */ 
            
	});

function formatText(index, panel) {
	return index + "";
	    }        
           $('.anythingSlider.static').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: true,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Start slideshow",             // Start text
		        stopText: "Stop slideshow",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            
            $('.anythingSlider.auto').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Start slideshow",             // Start text
		        stopText: "Stop slideshow",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });            



	
$(document).ready(function(){
  	
	
/*------------------- HOVER FADE BEGIN --------------------*/
	$(".blog_thumb .fade").fadeTo("fast", 1.0)
		$(".blog_thumb .fade").hover(function(){
			$(this).fadeTo(250, 0.4)},

			function(){
			$(this).fadeTo(400, 1.0)
			})
			
			var Duration = 150; //time in milliseconds

/*------------------- HOVER FADE END --------------------*/





$('#meerkat').meerkat({
	background: 'url(images/meerkat-bot-bg.png) repeat-x bottom right',
	height: '160px',
	width: '100%',
	position: 'bottom',
	close: '.close',
	dontShowAgain: '.close',
	cookieExpires: 0,
	animationIn: 'slide',
	animationSpeed: 500
});






});	
