//image mouseover state paths
var arrImg = new Array(
 "/img/menu/home-over.gif",
 "/img/menu/our_company-over.gif",
 "/img/menu/air_charter-over.gif",
 "/img/menu/maintenance-over.gif",
 "/img/menu/grounds_service-over.gif",
 "/img/menu/fleet-over.gif",
 "/img/menu/air_freight_cargo-over.gif",
 "/img/menu/flight_training-over.gif",
 "/img/menu/rental-over.gif",
 "/img/menu/photo_gallery-over.gif",
 "/img/menu/contact_us-over.gif"
);

//instantiate object for each item in the [arrImg] array
var img;
for( cnt = 0; cnt < arrImg.length; cnt++ ){
 img = new Image();
 img.src = arrImg[ cnt ];
}

//replaces current image's path with opposite state path
//if img.src == '.gif', then img.src == '-over.gif'
//else img.src == '-over.gif', then img.src == '.gif'
function f_AImg( a ) {
 if( document.images ) {
  if( a.hasChildNodes() ) {
   var img = a.lastChild;
   if( img.src.indexOf( "-over.gif" ) == -1 ) {
    img.src = img.src.replace( ".gif", "-over.gif" );
   } else {
    img.src = img.src.replace( "-over.gif", ".gif" );
   }
  }
 }
}

//opens new window for internal domain pages or external domain pages
function f_AHref( href ) {
 if( href.indexOf( "http://" ) == -1 ) {
  //internal domain pages
  window.open( href, "", "width=600,height=450" );
 } else {
  //external domain pages
  window.open( href );
 }
}

