$(document).ready(function() {

$(".footer-text").html('Copyright &copy;2009 JP Metal America Inc. All Rights Reserved<br><br>Designed by <span style="color:#bebfbf !important">Limelight Design Studios</span>');

$(window).load(function(){
 $('#interior-container').fadeIn('slow').load('./contentFiles/home.html');
});

$('#index-page').click(function(){
    $('a.current').removeClass('current');
    $('#interior-container').fadeIn('slow').load('./contentFiles/home.html');
});

$('a').bind('click',function(event){
  
  var linkref = $(this).attr('href');
  if(linkref != "null"){
    $('a.current').removeClass('current');
    $(this).addClass('current');
    $('.int-content-left h1').addClass("h1");
    var filename = "./contentFiles/" + $(this).attr('id') + ".html";
    $('#interior-container').fadeIn('slow').load(filename);   
 }
 else{
    window.location = "http://" +linkref;
 }

});
 
});

