$(function() {
	//menu : set the hover background
	$("a",".menu").each(function(i){
		var mhover = "m" + i + "hover";
		if ($(this).parent('li').hasClass(mhover)){
			//alert("currentPage")
		}
		else {
			$(this).hover(function(){
				$(this).parent('li').addClass(mhover);
			},function(){
				$(this).parent('li').removeClass(mhover);
			});
		}	
	});
	
	//scroll movie : set .footer to bottom of the page
	$(window).scroll( function() {
		var bodyTop =  $(".topLink").height() + $(".header").height() +$(".main").height() + $(".botLink").height() + 45 +"px";
		//var bodyTop = $('.footer').offset().top + $(document).scrollTop() +"px"; 
		//alert($(this).scrollTop());
		$('.footer').css({'left':'0','top':bodyTop});
		var bodyTop = "0";
	});	
	
//	botLink : site links
//	$("a",".botLinkL").each(function(i){
//		var mhover = "b" + i + "hover";
//		
//		$(this).hover(function(){
//			$(this).parent('li').addClass(mhover);
//			//$('img',this).attr('src','images/icon6.png');
//		},function(){
//			$(this).parent('li').removeClass(mhover);
//	
//		});
//	});
	

});
