function increaseSize() { var currentSize = parseInt($("#content").css("font-size")); $("#content, #rightContent").css("font-size", currentSize + 1 + "px"); } function decreaseSize() { var currentSize = parseInt($("#content").css("font-size")); $("#content, #rightContent").css("font-size", currentSize - 1 + "px"); } $(document).ready(function() { $("#navbar img").each(function(index, element) { //get the default image var that = $(element); var defaultImage = that.attr("src"); //the hover is already selected if we are on the image's page if(defaultImage.indexOf("_over") == -1) { //build the hover image's name var indexOfPeriod = defaultImage.lastIndexOf("."); var hoverImage = defaultImage.substring(0, indexOfPeriod) + "_over" + defaultImage.substring(indexOfPeriod); that.hover(function(){that.attr("src", hoverImage);}, function(){that.attr("src", defaultImage);}); } });//end each var home_over = $("").attr("src","/images/home_over.png"); var our_programs_over = $("").attr("src","/images/our_programs_over.png"); var our_children_over = $("").attr("src","/images/our_children_over.png"); var what_do_you_think_over = $("").attr("src","/images/what_do_you_think_over.png"); var employment_over = $("").attr("src","/images/employment_over.png"); var contact_over = $("").attr("src","/images/contact_over.png"); //fix for index page that has two layouts, one for main, one for subpages. $("#subnav li, #subnav a").click(function() { $("#right").hide(); });//end additional click });//end ready