if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

//This array will hold the newly created IMAGE objects
var preloadArray = new Array();
var menuItem = "initItem";
var menuNum = 0;

var myimages=new Array()

function preloadimages(){
    for (i=0;i<preloadimages.arguments.length;i++){
    myimages[i]=new Image()
    myimages[i].src=preloadimages.arguments[i]
    
    }
}

preloadimages("/content/images/nav/a1.gif","/content/images/nav/a2.gif","/content/images/nav/b1.gif","/content/images/nav/b2.gif","/content/images/nav/c1.gif","/content/images/nav/c2.gif","/content/images/nav/d1.gif","/content/images/nav/d2.gif","/content/images/nav/nav_prodGifts1.gif","/content/images/nav/nav_prodGifts2.gif","/content/images/nav/e1_new.gif","/content/images/nav/e2_new.gif","/content/images/nav/g1.gif","/content/images/nav/g2.gif");


//added 11-15 by Lisa
function contactAA(pageName){


		window.open(pageName,'ContactAA','scrollbars=yes,menubar=no,resizable=yes,width=680,height=430,top=100,left=100');
}

function printPage(pageName){
		window.open(pageName,'Print','toolbar=no,status=no,width=680,height=430,scrollbars=yes,directories=no,location=no,resizable=yes,menubar=yes,screenX=100,screenY=100,top=10,left=50');
}

function printViewMiles(pageName){
		window.open(pageName,'Print','scrollbars=yes,menubar=yes,resizable=yes,width=720,height=430,top=100,left=100');
}

function rollover(menuID,num){
    var imageSwitch = eval("document."+menuID);
    imageSwitch.src=myimages[num].src;
}

//sets the base properties for the menu items
HM_PG_MenuWidth = 130;
HM_PG_FontFamily = "Arial,sans-serif";
if (navigator.appVersion.indexOf("Mac") !=-1){
HM_PG_FontSize = 10;
}
else {
HM_PG_FontSize = 8;
}
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#000000";
HM_PG_FontColorOver = "#000000";
HM_PG_BGColor = "#D9E2F4";
HM_PG_BGColorOver = "#FFFFFF";
HM_PG_ItemPadding = 1;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "black";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#000066";
HM_PG_ImageSrc = "/content/images/nav/more.gif";
HM_PG_ImageSrcLeft = "/content/images/nav/more.gif";

HM_PG_ImageSize = 8;
HM_PG_ImageHorizSpace = 1;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 1;
HM_PG_ChildOffset = -1;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .1;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 1;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;


//styles for search box and radio buttons - need to update contact_style.jhtml and HM_preload-booking.jhtml if changed
if (navigator.appVersion.indexOf("Mac") !=-1 && navigator.appName=="Microsoft Internet Explorer"){
document.write('<style>.searchBox {COLOR: blue; BACKGROUND-COLOR: white;font-family:arial,helvetica,sans-serif;font-size:10px;line-height:10px;width:50px;height:13px;border-style:none;vertical-align:top;margin-top:2px;margin-bottom:2px;margin-left:2px;margin-right:2px;}.radio{height:12px;line-height:10px;}.clear-radio{height:12px;line-height:10px;}.checkbox-13{height:13px;}</style>');
} 
else if (navigator.appVersion.indexOf("Mac") !=-1){
document.write('<style>.searchBox {COLOR: blue; BACKGROUND-COLOR: white;font-family:arial,helvetica,sans-serif; font-size:10px;line-height:12px;vertical-align:top;}.radio{height:12px;line-height:10px;}.clear-radio{height:12px;line-height:10px;}.checkbox-13{height:13px;}</style>');
}
else if (document.layers && !document.getElementById){
document.write('<style>.searchBox {COLOR: blue; BACKGROUND-COLOR: white;font-family:arial,helvetica,sans-serif; font-size:10px;line-height:12px;vertical-align:top;}.radio{background-color:#EEF2FB;color:#EEF2FB;height:10px;line-height:10px;}.clear-radio{height:12px;line-height:10px;}.checkbox-13{height:13px;}</style>');
}
else if (document.getElementById && !document.all){
document.write('<style>.searchBox {COLOR: blue; BACKGROUND-COLOR: white;font-family:arial,helvetica,sans-serif; font-size:10px;line-height:10px;vertical-align:top;height:17px;width:52px;}.radio{height:12px;line-height:10px;}.clear-radio{height:12px;line-height:10px;}.checkbox-13{height:13px;}</style>');
}
else if (document.all){
document.writeln('<style>.searchBox {COLOR: blue; BACKGROUND-COLOR: white;font-family:arial,helvetica,sans-serif;font-size:10px;line-height:10px;width:50px;height:13px;border-style:none;vertical-align:top;margin-top:2px;margin-bottom:2px;margin-left:2px;margin-right:2px;}.radio{background-color:#EEF2FB;color:#EEF2FB;height:10px;line-height:10px;}.clear-radio{height:10px;line-height:10px;}.checkbox-13{height:13px;}</style>');
}

// Begin - TS #15601
function viewAvailableSeats(viewSeatsURL, solutionCount) {
	for (j=1; j<=solutionCount; j++) {
		var selected = 0;
		 for (i=0; i< document.getElementsByName("flightSolution"+j).length; i++){
        	var radio = document.getElementsByName("flightSolution"+j)[i];
	        if(radio.checked) {
    	        selected = i+1;
        	    break;
	        }
		 }
	     if (selected != 0) {
    	 	viewSeatsURL += "&radioSelected"+j+"="+selected;
     	}
     }
     window.location.href = "" + viewSeatsURL;
	return viewSeatsURL;
}
// End - TS #15601
