//resize fonts class
function Resize(_applyTo, _fsize)
{
this.applyTo = _applyTo;
this.fSize = _fsize



}
//on doc load, assign the buttons for resizing , in the click handler, assign a new resize object with the 1) item to apply to, and 2) the size of the font , then call the applyTo method
//on the object previously created
Resize.prototype.applyFonts = function()
{
	$(this.applyTo).css("font-size", this.fSize+'px');
	//alert('font function called, applied to: ' + this.applyTo);
}

$(document).ready(function()
{ 

							
	$("li.ml-third a").mouseover(function() {
         $(this).find("img").attr("src", "mla/main_nav_3_cl.jpg");
 
                }).mouseout(function(){
              $(this).find("img").attr("src", "mla/main_nav_3_bw.jpg");
      });
	$(".main-list li").click(function(){
				window.location.href = $(this).find('a').attr('href');		
			
								  
});
							
	$("li.ml-second a").mouseover(function() {
         $(this).find("img").attr("src", "mla/main_nav_2_cl.jpg");
 
                }).mouseout(function(){
              $(this).find("img").attr("src", "mla/main_nav_2_bw.jpg");
  });
	$("li.ml-first a").mouseover(function() {
         $(this).find("img").attr("src", "mla/main_nav_1_cl.jpg");
 
                }).mouseout(function(){
              $(this).find("img").attr("src", "mla/main_nav_1_bw.jpg");
  });
			
			//add buttons
			/*$('.resize-10').click(function(){
						var r = new Resize('#focus p', '10');	
						
								r.applyFonts();			 
					});
							 
			$('.resize-13').click(function(){
						var r = new Resize('#focus p', '13');					 
								r.applyFonts();			 
					});
			$('.resize-15').click(function(){
						var r = new Resize('#focus p', '15');					 
								r.applyFonts();			 
					});
							 */
							 
});
