// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){

Shadowbox.init({
overlayOpacity	: 0.8
});

$('#mixednuts').fadeIn(2000);

$('#mixednuts ul li img').mouseover(function(){
	$(this).fadeTo('fast', 0.5);
	});
$('#mixednuts ul li img').mouseout(function(){
	$(this).fadeTo('slow', 1);
	});

//ACCORDION BUTTON ACTION	
$('.accordionButton').click(function() {
	$('.accordionContent').not('.accordionStart').slideUp('normal');	
	if ( $(this).next().hasClass('accordionOpen') ) {
	}
	else {
	$('.accordionContent').removeClass('accordionOpen');
	$(this).next().slideDown('normal');
	$(this).next().addClass('accordionOpen');
	}
});
 
//HIDE THE DIVS ON PAGE LOAD	
$(".accordionContent").not(".accordionStart").hide();
$(".accordionStart").removeClass('accordionStart');

$(".scenProdCont").hide();

$(".scenProd").css('cursor','pointer').click(function() {
	$(".scenProdCont").toggle();
	});


// your functions go here

}); // end dom ready


/* optional triggers */

$(window).load(function() {

	/*
	$('#mixednuts ul li').each(function(index){
		if ( $(this).find('img').length ) { 
			$(this).css('width', $(this).find('img').css('width') );
		}
		else {
			$(this).css('width','200px');
		}
//	$(this).parent().css('width', $(this).css('width') );

	});
*/	
});

$(window).resize(function() {
	
});


