


jQuery(document).ready(function(){

	jQuery('.tip').tipTip();
	jQuery('.tipleft').tipTip({defaultPosition: 'left', delay: 0});
	jQuery('.tiptop').tipTip({defaultPosition: 'top', delay: 0});
	jQuery('.tipright').tipTip({defaultPosition: 'right', delay: 0});
	
	
	// Shop option links
	jQuery('ul.productoptions li').click( function(){
		if (!jQuery(this).hasClass('disabled')) { 
		
			jQuery('ul.productoptions li.selected').removeClass('selected');
			jQuery(this).addClass('selected');
			
			// Set the value of the hidden field
			jQuery('#selectedoption').val( jQuery(this).attr('value') ); 
		}
	});


	// Remove the displayed errors on entering the field
	jQuery('input.form-error').click( function(){
		jQuery(this).next('div.error-message').hide('slow'); 
		jQuery(this).removeClass('form-error'); 
	});
	
	// PrettyPhoto all the photos and shit
	jQuery("a[rel^='mushroomBox']").prettyPhoto({theme:'dark_square'});
  	
  	
  	
	
});



jQuery(document).ready(function(){
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Vertical Sliding
	jQuery('.boxgrid.slidedown').hover(function(){
		jQuery(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Horizontal Sliding
	jQuery('.boxgrid.slideright').hover(function(){
		jQuery(".cover", this).stop().animate({left:'25px'},{queue:false,duration:300});
	}, function() {
		jQuery(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	//Diagnal Sliding
	jQuery('.boxgrid.thecombo').hover(function(){
		jQuery(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	jQuery('.boxgrid.peek').hover(function(){
		jQuery(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
	});
	//Full Caption Sliding (Hidden to Visible)
	jQuery('.boxgrid.captionfull').hover(function(){
		jQuery(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
	});
	//Caption Sliding (Partially Hidden to Visible)
	jQuery('.boxgrid.caption').hover(function(){
		jQuery(".cover", this).stop().animate({top:'100px'},{queue:false,duration:160});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'120px'},{queue:false,duration:160});
	});
	jQuery('.boxgrid.captionless').hover(function(){
		jQuery(".cover", this).stop().animate({top:'126px'},{queue:false,duration:160});
	}, function() {
		jQuery(".cover", this).stop().animate({top:'116px'},{queue:false,duration:160});
	});
	
});
