//$(document).ready(function() {
//$('document').ready(function() { 
//    $('.cloud').css({backgroundPosition: '0px 0px'}).animate({backgroundPosition: '4000px 0px'},160000,'linear'); 
//	$('.outer-cloud').css({backgroundPosition: '0px 0px'}).animate({backgroundPosition: '12000px 0px'},200000,'linear'); 
//});
//$('#top-nav li a').hide();
//    $('li a.story').delay(500).fadeIn(200,function(){
//		$('li a.range').fadeIn(200,function(){
//			$('li a.ramblings').fadeIn(200,function(){
//				$('li a.stores').fadeIn(200,function(){
//					$('li a.trade').fadeIn(200);
//						});
//					});
//				});
//			});
//});

$(document).ready(function() {
	$.fn.slideFadeToggle  = function(speed, easing, callback) {
				return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
		};

$(".customise-pots-tab").hide();
$(".customise-pots-button img").click(function () {
    $(".customise-pots-tab").fadeIn(1000);
	$(".customise-pots-button img").slideFadeToggle();
    });

$(".nutrition-info").hide();
$(".btn-nutrition").click(function () {
    $(".nutrition-info").fadeIn(1000);
	$(".btn-nutrition").slideFadeToggle();
    });


	$(".gallery_1").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","1");	
	});
	
	$(".gallery_2").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","2");	
	});
	
	$(".gallery_3").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","3");	
	});
	
	$(".gallery_4").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","4");	
	});
	
	$(".gallery_5").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","3");	
	});
	
	$(".gallery_6").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","2");	
	});
	
	$(".gallery_main").hover(function(){
		$(this).css("z-index","1000");						 
	}, function(){
		$(this).css("z-index","0");	
	});
	


});


	



function rangeShowInfo(type){
	$("#pot-info").slideUp(500, function(){
		$("#pot-info").load('/inc/our_range_'+type+'/index.php', function(){
			$("#pot-info").slideDown(500);													  
		});	
	});
	
}














(function($) {
    function toggleLabel() {
        var input = $(this);
        setTimeout(function() {
            var def = input.attr('title');
            if (!input.val() || (input.val() == def)) {
                input.prev('span').css('visibility', '');
                if (def) {
                    var dummy = $('<label></label>').text(def).css('visibility','hidden').appendTo('body');
                    input.prev('span').css('margin-left', dummy.width() + 3 + 'px');
                    dummy.remove();
                }
            } else {
                input.prev('span').css('visibility', 'hidden');
            }
        }, 0);
    };

    function resetField() {
        var def = $(this).attr('title');
        if (!$(this).val() || ($(this).val() == def)) {
            $(this).val(def);
            $(this).prev('span').css('visibility', '');
        }
    };

    $('input, textarea').live('keydown', toggleLabel);
    $('input, textarea').live('paste', toggleLabel);
    $('select').live('change', toggleLabel);

    $('input, textarea').live('focusin', function() {
        $(this).prev('span').css('color', '#999');
    });
    $('input, textarea').live('focusout', function() {
        $(this).prev('span').css('color', '#c9126b');
    });

    $(function() {
        $('input, textarea').each(function() { toggleLabel.call(this); });
    });
	


})(jQuery);


//cloud carousel












