//			$(document).ready(function(){
			function loadpagestuff(){
				//nivoslider
				var total = $('#banners img').length;
				var rand = Math.floor(Math.random()*total);
				$(window).load(function() {
					$('#banners').nivoSlider({	effect:'fade',
												pauseTime:6000,
												startSlide:rand,
												directionNav:false,
												controlNav:true
												});
				});
				$("#newsletter").validate();
				$("#newsletterunsubscribe").validate();
				$("#loginform").validate({
					errorPlacement: function(error, element) {
						error.appendTo(element.siblings("label"));
					}
            	});
				$(".validateform").validate({
					errorPlacement: function(error, element) {
						error.appendTo(element.siblings("label"));
					}
            	});
				$(".jpop").colorbox({opacity:0, width:'520'});
				$(".jpopext").colorbox({width:'60%', height:'50%', opacity:0});
			}
			loadpagestuff();												
//			});// end doc ready
			function infopop(url) {
				window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=520,height=400,screenX=150,screenY=150,top=150,left=150')
			}
			function dropwarning(status){
					if(status == 0){
						$('#dropwarntext').hide();
						$('.btnshipmethods').show();
					} else {
						$('#dropwarntext').show();
						$('.btnshipmethods').hide();
					}
			}
			function showcoupon(){
						$('.coupon_shopping').show("fast");
			}
			function coconfirm(){
						$('.confirmbtn').hide();
						$('.confirmprocess').show();
			}
			
			function initAddThis(){ addthis.init() }     // After the DOM has loaded...
		    initAddThis();
