// JavaScript Document



$(document).ready(function(){ 
	$("#nav > li").add("#nav2 > li").add("#nav3 > li").add("#nav4 > li").add("#nav5 > li").add("#nav6 > li").add("#nav7 > li").each(
		function( initIndex ){
			// Bind the events
			$( this ).bind (
				'mouseover',
				function() {
					$(this).addClass('over');
				}
			);
			$( this ).bind (
				'mouseout',
				function() {
					$(this).removeClass('over');
				}
			);
		}		
	);
}); 

var name = "#shoe";
var menuYloc = null;  
function moveFooter(daType) {
	menuYloc = $(window).height() - $(name).height();
	var offset = menuYloc+$(document).scrollTop()+"px";  
	if (daType == "animate") {
		$(name).animate({top:offset},{duration:500,queue:false});
	} else {
		$(name).css("top",offset);
	}
};
	
$(document).ready(function(){ 
	$(name).css("display","block");
	moveFooter("jump");
	$(window).scroll(function () {   
		moveFooter("animate");
	});
	$(window).bind('resize', function() {
		moveFooter("animate");
	});	
});   