$(document).ready(function() {         
  
// PRE CACHE IMAGE
 var images = [ 'homeImg.jpg', 'autoImg.jpg', 'busImg.jpg', 'lifeImg.jpg' ];
  jQuery.each(images, function(i) {
    images[i] = new Image();
    images[i].src = this;
  });
  
 //TWITTER
  $("#twitter").getTwitter({               
    userName: twitterName,               
    numTweets: 1,               
    loaderText: "Loading tweets...",               
    slideIn: true,               
    showHeading: true,               
    headingText: "Follow Us On Twitter",               
    showProfileLink: false         
  });

  
//SLIDE-DOWN-PANEL
  $("#open").click(function(){
    $("div#panel").slideDown("slow");
  });  
  $("#close").click(function(){
    $("div#panel").slideUp("slow");  
  });    
  $("#toggle a").click(function () {
    $("#toggle a").toggle();
  });
  

// JSWAP              
  $('#menu1').hover(
    function(){      
      $("#menuimage").stop().attr("src", "homeImg.jpg"); },
    
    function(){
      $("#menuimage").stop().attr("src", "homeImg.jpg");
      });
              
  $('#menu2').hover(
    function(){      
      $("#menuimage").stop().attr("src", "autoImg.jpg"); },
    
    function(){
      $("#menuimage").stop().attr("src", "homeImg.jpg");
      });
  
  $('#menu3').hover(
    function(){      
      $("#menuimage").stop().attr("src", "busImg.jpg"); },
    
    function(){
      $("#menuimage").stop().attr("src", "homeImg.jpg");
      });
      
  $('#menu4').hover(
    function(){      
      $("#menuimage").stop().attr("src", "lifeImg.jpg"); },
    
    function(){
      $("#menuimage").stop().attr("src", "homeImg.jpg");
      });
  
$('#awardsShow').cycle({ fx: 'fade', random: 1 });  
  
});
