$(document).ready(function()                                               
{

//$('document').ready(function() {$('h1h').fontResize({defaultChangePercent: '0.30'});});
        ////////////////////////////////////////
        // CLEAR SEARCH INPUT
        ////////////////////////////////////////
        $('#searchInput').focus(function()
        {
                $(this).val("");
        
        });
        
        
        //////////////////////////////////////
        // INCLUDE CONTRAST STYLESHEET
        ///////////////////////////////////////
        var cookieSetting = $.cookie("whatStyle");
        
        if(cookieSetting == "contrast")
        {
                
                        $('head').append('<link rel="stylesheet" href="css/contrast_home.css" type="text/css" id="contrastSheet"/>');
                $.cookie("whatStyle", "contrast", { path: "/" });
        }
        else
        {
                $("head #contrastSheet").remove();
                        $.cookie("whatStyle", "main", { path: "/" });
                
        }
        /////////////////////////////////
        
    $("#contrastSwitch").click(function() 
        {

                var cookieSetting = $.cookie("whatStyle");
                
                if(cookieSetting == "contrast")
                {
                $("head #contrastSheet").remove();
                        $.cookie("whatStyle", "main", { path: "/" });
                }
                else
                {
                        $('head').append('<link rel="stylesheet" href="css/contrast_home.css" type="text/css" id="contrastSheet"/>');
                        $.cookie("whatStyle", "contrast", { path: "/" });
                }
                
        });

        /////////////////////////////////
        
        /// PNG FIX FOR ie6 etc, add in any element you want it to work on
        $('.cornerCover, .heroText, #numBack').supersleight({shim: 'images/1px.gif'});
        
        
        ////////////////////////////////////////
        // IMAGE ROLLOVER USE CLASS "rollOver" 
        ////////////////////////////////////////
        
                $(".rollOver").hover(
                                                                 
                         function()
                         {
                          var hold = $(this).children("img").attr("src");
                          $(this).children("img").attr("src", hold.replace("_off","_on"));
                         },
                 
                         function()
                         {
                                var hold = $(this).children("img").attr("src");
                          $(this).children("img").attr("src", hold.replace("_on","_off"));
                         }
                );

//////////////////////////////////////////
// TEXT RESIZE
/////////////////////////////////////////

//var ogH1 = $('.bpHeader, .subNavHeader, #contactHeader, #centralColumn').find('h1, h1 a').css('font-size');




//////////////////////////////////////////////////////////////////////

});

