$(document).ready(function(){
    // Increase Font Size
    $("#increase_font").click(function(){
        var currentFontSize = $('html').css('font-size');
        var currentFontSizeNum = parseFloat(currentFontSize, 10);
        var newFontSize = currentFontSizeNum*1.1;
        $('html').css('font-size', newFontSize);
        return false;
    });

    // Decrease Font Size
    $("#decrease_font").click(function(){
        var currentFontSize = $('html').css('font-size');
        var currentFontSizeNum = parseFloat(currentFontSize, 10);
        var newFontSize = currentFontSizeNum*0.9;
        $('html').css('font-size', newFontSize);
        return false;
    });
});

function disable_stylesheets(){
    for(i=0;i<document.styleSheets.length;i++){
        void(document.styleSheets.item(i).disabled=true);
        }
    }

function showHeaderImage(page){
    var defaultImg = "/Style%20Library/images/banner01.jpg";
    var defaultAlt = "Arkansas.gov - Offical Website for the State of Arkansas";

    var url = ""+document.location;

    var pages=new Array(
    //"url selector", "image path","alt tag"
    "aboutArkansas/Pages", "/Style%20Library/images/aboutarkansas_overview.jpg", "Arkansas.gov - About Arkansas",
    "tourism/Pages", "/Style%20Library/images/tourism_overview.jpg", "Arkansas.gov - Tourism",
    "residents/Pages", "/Style%20Library/images/residents_overview.jpg", "Arkansas.gov - Residents",
    "services/Pages", "/Style%20Library/images/onlineservices_overview.jpg", "Arkansas.gov - Online Services",
    "government/Pages", "/Style%20Library/images/government_overview.jpg", "Arkansas.gov - Government",
    "employment/Pages", "/Style%20Library/images/employment_overview.jpg", "Arkansas.gov - Employment",
    "education/Pages", "/Style%20Library/images/education_overview.jpg", "Arkansas.gov - Education",
    "business/Pages", "/Style%20Library/images/business_overview.jpg", "Arkansas.gov - Business"
    );

    for(var i=0; i<pages.length; i+=3){
        if( url.match(pages[i]) ){
            document.write('<img src="'+pages[i+1]+'" alt="'+((pages[i+2] != null && pages[i+2].length > 1)?pages[i+2]:defaultAlt)+'">');
            return;
        }
    }

    document.write('<img src="'+defaultImg+'" alt="'+defaultAlt+'">');
}