$(document).ready(function(){
	$(".header div.boxcontent").hide();
	$(".header a#view_cart").toggle(function(){
		$(".header div.boxcontent").fadeIn(200);
		return false;
	},function(){
		$(".header div.boxcontent").fadeOut();
		return false;
	});

	var i = 0;
	var stop = $("#topAnim img").length;
	var intID = setInterval(function(){
			if($("#topAnim").css("left") == "-156px"){ var leftO = "0px"; } else { var leftO = "-156px"; }
			
			$("#topAnim").animate({ left:leftO }, 3000, function(){ 
				var thisE = $(this);
				setTimeout(function(){
					if(i == stop){ 
						i = 0;
						$("#topAnim").animate({ top:"0px" }, 200);
					} else {
						$(thisE).animate({ top:"-=227px" }, 1000); 
					}
				}, 2000);
			});
			i++;
	}, 6000);

//	$("a.animImg").hover(function(){
//		$(this).css({ width:$(this).width() + "px", height:$(this).height() + "px", display:"block" });
//	}, function(){});

});
