// JavaScript Document
$(function(){
       //815px x 235
       //Create image objects to preload
			 var imageMain = $('<img />').attr('src', 'images/airport_center.gif');
       var image1 = $('<img />').attr('src', 'images/airport_center_1.gif');
       var image2 = $('<img />').attr('src', 'images/airport_center_2.gif');
			 var image3 = $('<img />').attr('src', 'images/airport_center_3.gif');
			 var image4 = $('<img />').attr('src', 'images/airport_center_4.gif');
			 var image5 = $('<img />').attr('src', 'images/airport_center_5.gif');
			 var image6 = $('<img />').attr('src', 'images/airport_center_6.gif');
 				
				$("#centerExpo1").append(imageMain);
				
       //New Castle Airport
        $("#newcastle").mouseover(function(){
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image2);
         })
				$("#newcastle").mouseout(function() {
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image1);
          })
				
				//Millville Airport
				$("#millville").mouseover(function(){
							$("#centerExpo1").empty();												
              $("#centerExpo1").append(image3);
         })
				$("#millville").mouseout(function() {
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image1);
          })
				
				//Civil Airport
				$("#civilAir").mouseover(function(){
							$("#centerExpo1").empty();												
              $("#centerExpo1").append(image4);
         })
				$("#civilAir").mouseout(function() {
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image1);
          })
				
				//Cape May
				$("#capeMay").mouseover(function(){
							$("#centerExpo1").empty();												
              $("#centerExpo1").append(image5);
         })
				$("#capeMay").mouseout(function() {
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image1);
          })
				
				//Delaware Airpark
				$("#delaware").mouseover(function(){
							$("#centerExpo1").empty();												
              $("#centerExpo1").append(image6);
         })
				$("#delaware").mouseout(function() {
              $("#centerExpo1").empty();
							$("#centerExpo1").append(image1);
          })

});
