/**********************
** functions.js file
** For all the rollovers
** on all pages on 
** arinc.com index page
**********************/

// rollovers for left and top nav
if (document.images) {   
        top1on = new Image();
        top1on.src = "images/prod_serv_btn_roll.gif";
        top1off = new Image();
        top1off.src = "images/prod_serv_btn.gif";
        top2on = new Image();
        top2on.src = "images/news_btn_roll.gif";
        top2off = new Image();
        top2off.src = "images/news_btn.gif";
        top3on = new Image();
        top3on.src = "images/corp_info_btn_roll.gif";
        top3off = new Image();
        top3off.src = "images/corp_info_btn.gif";
        top4on = new Image();
        top4on.src = "images/customer_btn_roll.gif";
        top4off = new Image();
        top4off.src = "images/customer_btn.gif";
        top5on = new Image();
        top5on.src = "images/doing_business_btn_roll.gif";
        top5off = new Image();
        top5off.src = "images/doing_business_btn.gif";
        top6on = new Image();
        top6on.src = "images/careers_btn_roll.gif";
        top6off = new Image();
        top6off.src = "images/careers_btn.gif";
        top7on = new Image();
        top7on.src = "images/industry_btn_roll.gif";
        top7off = new Image();
        top7off.src = "images/industry_btn.gif";
		
		indx1on = new Image();
        indx1on.src = "images/home_airports_btn_roll.gif";
        indx1off = new Image();
        indx1off.src = "images/home_airports_btn.gif";
        indx2on = new Image();
        indx2on.src = "images/home_aviation_btn_roll.gif";
        indx2off = new Image();
        indx2off.src = "images/home_aviation_btn.gif";
        indx3on = new Image();
        indx3on.src = "images/home_defense_btn_roll.gif";
        indx3off = new Image();
        indx3off.src = "images/home_defense_btn.gif";
        indx4on = new Image();
        indx4on.src = "images/home_govern_btn_roll.gif";
        indx4off = new Image();
        indx4off.src = "images/home_govern_btn.gif";
        indx5on = new Image();
        indx5on.src = "images/home_transport_btn_roll.gif";
        indx5off = new Image();
        indx5off.src = "images/home_transport_btn.gif";
        indx6on = new Image();
        indx6on.src = "images/home_more_about_btn_roll.gif";
        indx6off = new Image();
        indx6off.src = "images/home_more_about_btn.gif";
} // end of rollovers
		  
		  

// start of functions


		  
function img_act(imgName){
    if (document.images) { 
        imgOn = eval(imgName + "on.src");
		 document [imgName].src = imgOn;
        }
}

function img_inact(imgName){
   if (document.images) { 
        imgOff = eval(imgName + "off.src");
		 document [imgName].src = imgOff;
        }
}
