jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}



$(document).ready(function(){

    $.preloadImages(
        "files/images/header_1_on.jpg",
        "files/images/header_2_on.jpg",
        "files/images/header_3_on.jpg",
        "files/images/header_4_on.jpg",
        "files/images/tab_hover.jpg");

    $("#tabs li.set").hover(
        function(){
            $(this).addClass("hover");
        },
        function(){
            $(this).removeClass("hover");
        }
    );

    $(".navblockholder").hover(
        function(){
            $(this).addClass("navhover");
        },
        function(){
            $(this).removeClass("navhover");
        }
    );

    $(".lightbox_link").lightBox();

    $(".image_gtr img").hover(
        function(){
            var source = $(this).attr('src').replace("_off", "_on");
            $(this).attr('src', source);
        },
        function(){
            var source = $(this).attr('src').replace("_on", "_off");
            $(this).attr('src', source);
        }
    );
});