var curvyCornersVerbose = false;
//Slider index1
	$(document).ready(function() {

	$("#topnav li").prepend("<span></span>"); //Throws an empty span tag right before the a tag

	$("#topnav li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the <a> tag
		$(this).find("span").show().html(linkText); //Add the text in the <span> tag
	}); 

	$("#topnav li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({
			marginTop: "-40" //Find the <span> tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0"  //Move the <span> back to its original state (0px)
		}, 250);
	});

});

Cufon.replace('h3, span.block-title, span.subtitle', { fontFamily: 'Aller' });
Cufon.replace('h1, h2', { fontFamily: 'Aller' });
	
//Toggle Menu
$(document).ready(function(){

//Set default open/close settings
$('.toggle_container').hide(); //Hide/close all containers
$('.active').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

//On Click
$('.trigger, .triggerfirst, .triggerlast').click(function(){
	if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
		$('.trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	
	else {
	$(this).removeClass('active').next().slideUp()
	}
	
	return false; //Prevent the browser jump to the link anchor
});

});


//Slider index2

function formatText(index, panel) {
  return index + "";
}

$(function () {

    $('.slider').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: 5000,                    // 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: true,                 // 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: "Go",             // Start text
        stopText: "Stop",               // Stop text
        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
    });
    
    $("#slide-jump").click(function(){
        $('.slider').anythingSlider(6);
    });
    
});

$(document).ready(function(){

	$("#step li").each(function (i) {
		i = i+1;
		$(this).addClass("item"+i);
   });

	$("#number li").each(function (i) {
		i = i+1;
		$(this).addClass("item"+i);
   });

	$("#commentlist li").each(function (i) {
		i = i+1;
		$(this).prepend('<span class="commentnumber"> #'+i+'</span>');
   });

});
$(function () {
	$('#slideout').hover(function() {
		$(this).animate({left:'0px'}, {queue:false, duration: 500});
	}, function() {
		$(this).animate({left:'-405px'}, {queue:false, duration: 500});
	});
});
  $(function() {
    $('#thumbNav').tipsy({gravity: 's', fallback: 'Select a slide'});
});
    $(function() {
    $('.tipsy').tipsy({gravity: 's'});
});
$(function () {						   
	simpleCart.email = "sales@jojonet.net";
	simpleCart.checkoutTo = PayPal;
	simpleCart.cartHeaders = [ "name" , "Quantity_input" ,  "increment",  "decrement", "Total" ];
});
