<!--
// ==============================
// SET VARIABLES
// ==============================


// ==============================
// RUN ALL ONLOAD JQUERY COMMANDS
// ==============================
$(document).ready(function() {
	// ==============================
	// Pulldonw menus for IE
	// ==============================
	/*if (jQuery.browser.msie && jQuery.browser.version == '7.0') {                     
        // The isIE variable is set in the page.tpl.php file
        $('#mainNav ul li').mouseover(function() {
            $(this).children('ul').css({left:'auto'});
        });
        
		$('#mainNav ul li').mouseout(function() {
            $(this).children('ul').css({left:'-999em'});
        });
	}*/


    // Run nav code if this is IE6
	if (jQuery.browser.msie && jQuery.browser.version == '6.0') {              
        // The isIE variable is set in the page.tpl.php file
        $('#mainNav ul li').mouseover(function() {
            $(this).children('ul').css({left:'auto'});
        });
        
		$('#mainNav ul li').mouseout(function() {
            $(this).children('ul').css({left:'-999em'});
        });
	}

	// ==============================
	// FONT SIZE BUTTONS
	// ==============================
	$('.big_a').mousedown(function() {
		var currentFontSize = parseInt($('body').css('font-size'));
		var newFontSize = currentFontSize + 1;
		if (newFontSize <= 14) {
			$('body').css('font-size',newFontSize);
		}
	});
	$('.small_a').mousedown(function() {
		var currentFontSize = parseInt($('body').css('font-size'));
		var newFontSize = currentFontSize - 1;
		if (newFontSize >= 11) {
			$('body').css('font-size',newFontSize);
		}
	});
});
//-->  

