  	
//script from test page
navVersion = navigator.appVersion;
	// Initialise array holding the default no of days in each month
	
	var isReturnAdressChosen = 0;	
	var infoIconWidth = 10;
	var infoIconHeight = 11;
	var infoTxt = new Array;	
	tempTxt = new Array("mapsearch", "Map search&nbsp;combines the use of maps and Radisson SAS Hotel locations. If&nbsp;location is a critical to&nbsp;you, you&nbsp;should&nbsp;search using the Map search.<BR><BR>You navigate&nbsp;simply by clicking on the maps.&nbsp;At City&nbsp;level you&nbsp;find&nbsp;Radisson SAS logos. These illustrate the&nbsp;hotel location. Click on the icons, if you want&nbsp;a detailed hotel description.<BR><BR>");
	infoTxt['mapSearchTxt'] = tempTxt;	
	tempTxt = new Array("City/Country", "Enter city and/or country to find a hotel near your destination.");
	infoTxt['cityCountryTxt'] = tempTxt;	
	tempTxt = new Array("Ankomstdatum", "V&auml;lj ankomst- och avresedatum om du vill f&aring; aktuella prisuppgifter i anslutning till din s&ouml;kning.");
	infoTxt['arrivalDepartureTxt'] = tempTxt;	
	tempTxt = new Array("G&auml;ster i samma rum", "Ange antalet g&auml;ster i samma rum. Antalet g&auml;ster kan p&aring;verka pris och tillg&auml;nglighet.");
	infoTxt['noOfGuestsTxt'] = tempTxt;	
	tempTxt = new Array("Generel", "Enter city and/or country to find a hotel near your destination.");
	infoTxt['GenerelTxt'] = tempTxt;	
	var arrivalStartMonthIndex;
	var departureStartMonthIndex;
	var staticPath = '/rsas_static_content'; 
	var arrivalDateText="Ankomstdatum";
	var departureDateText="Avresedatum";
	
	
	
	
	
	navVersion = navigator.appVersion;	
	
	// Get the month and year, then populate the selected day field with the proper amount of days
	
	// Initialise a monthYear and day pair
	function initDate(monthYearField, dayField, matchMonthYear, matchDay){
		// Select previously selected month 			
		for(var monthLoop=0; monthLoop<monthYearField.options.length; monthLoop++){
			if(monthYearField[monthLoop].value == matchMonthYear){
				monthYearField.selectedIndex = monthLoop;
			}
		}			
		// Now init the monthYear and day pair for the first run
		setNoOfDays(monthYearField, dayField);
		
		// Now set the previously selected day
		dayField.selectedIndex = parseInt(matchDay,10)-1;
		setCurrentMonth();
	}		
	var infoIconWidth = 10;
	var infoIconHeight = 11;
	var infoTxt = new Array;	
	tempTxt = new Array("mapsearch", "Map search&nbsp;combines the use of maps and Radisson SAS Hotel locations. If&nbsp;location is a critical to&nbsp;you, you&nbsp;should&nbsp;search using the Map search.<BR><BR>You navigate&nbsp;simply by clicking on the maps.&nbsp;At City&nbsp;level you&nbsp;find&nbsp;Radisson SAS logos. These illustrate the&nbsp;hotel location. Click on the icons, if you want&nbsp;a detailed hotel description.<BR><BR>");
	infoTxt['mapSearchTxt'] = tempTxt;	
	tempTxt = new Array("City/Country", "Enter city and/or country to find a hotel near your destination.");
	infoTxt['cityCountryTxt'] = tempTxt;	
	tempTxt = new Array("Ankomstdatum", "V&auml;lj ankomst- och avresedatum om du vill f&aring; aktuella prisuppgifter i anslutning till din s&ouml;kning.");
	infoTxt['arrivalDepartureTxt'] = tempTxt;	
	tempTxt = new Array("G&auml;ster i samma rum", "Ange antalet g&auml;ster i samma rum. Antalet g&auml;ster kan p&aring;verka pris och tillg&auml;nglighet.");
	infoTxt['noOfGuestsTxt'] = tempTxt;	
	tempTxt = new Array("Generel", "Enter city and/or country to find a hotel near your destination.");
	infoTxt['GenerelTxt'] = tempTxt;		
	function clearValue() {	
		if(document.hotelSearchForm.city.value==enterCityTranslation) {
			document.hotelSearchForm.city.select();
		}
	}		
	
	
	var arrivalStartMonthIndex;
	var departureStartMonthIndex;
	var staticPath = '/rsas_static_content'; 
	var arrivalDateText="Ankomstdatum";
	var departureDateText="Avresedatum";	
	
	var iframeX = 0;
	var iframeY = 0;
	function detectIFrame() {
		iframeX = xsPos("findandbookPosGif");
		iframeY = ysPos("findandbookPosGif");
	}
	
	
	
	function showContent(){
		//loadImage();
		/*find_book_boxY = ysPos("headlineImg")+75;
		find_book_boxX = xsPos("findBookLeft");
		if(navigator.platform.indexOf("Mac")!=-1) {
			if(document.all) {
				temp = document.body.clientWidth;
				newPos = temp-772;
				newPos = newPos/2;
				find_book_boxX -= newPos;
			}
		}
		if(ie4){	
			document.all.find_book_box.style.left = find_book_boxX;
			document.all.find_book_box.style.top = find_book_boxY;
			document.all.find_book_box.style.visibility = "visible";
		} else {
			document.getElementById("find_book_box").style.left = find_book_boxX;
			document.getElementById("find_book_box").style.top = find_book_boxY;
			document.getElementById("find_book_box").style.visibility="visible";
		}*/
	}

		function hideInfo(){
		if (ie4) {
			infoLayer = document.all.infoBox;
		}
		else {
			infoLayer = document.getElementById("infoBox");
		}
		infoLayer.style.visibility = "hidden";
	}
	
	function popUp(url,name,w,h,extra){
		str="height="+h+",width="+w+","+extra;
		str+=",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/3);
		win=window.open(url,name,str);
	}

	
	
//end script from test page
// Keep track of active infobutton

var activeInfo;
function toggleInfo(where, which, xOffset, yOffset){
	//alert(where+' '+which+' '+xOffset+' '+yOffset);
	//posGif = parent.document.images["findandbookPosGif"];
	
	xPos = xOffset+parent.iframeX;
	yPos = yOffset+parent.iframeY-180;
	
	if(navigator.platform.indexOf("Mac")!=-1) {
		if(document.all) {
			temp = document.body.clientWidth;
			newPos = temp-772;
			newPos = newPos/2;
			xPos -= newPos;
			
		}
	}
	if(dom){
		infoLayer = parent.document.getElementById("infoBox");
	} else if (ie4) {
		infoLayer = parent.document.all.infoBox;
	}
	infoLayer.style.left = xPos;
	infoLayer.style.top = yPos;
	if(infoLayer.style.visibility == "visible" && activeInfo==where){
		infoLayer.style.visibility = "hidden";
	} else {
		// *** infoBox layout start ***
		output ='';
		output+='<table border="0" cellpadding="0" cellspacing="0" width="180"><tr>';
		output+='<td><images src="'+staticPath+'/images/gx_findbook_corner_light_t_l.gif" width="5" height="5"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="7" height="1"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="156" height="1"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="7" height="1"></td>';
		output+='<td><images src="'+staticPath+'/images/gx_findbook_corner_light_t_r.gif" width="5" height="5"></td>';
		output+='</tr><tr bgcolor="#EAEAEA"><td colspan="5"><images src="'+staticPath+'/images/dot_trans.gif" width="180" height="1"></td></tr>';
		output+='<tr bgcolor="#EAEAEA"><td colspan="2">&nbsp;</td><td><table border="0" cellpadding="0" cellspacing="0" width="156">';
		output+='<tr valign="top"><td><images src="images/bn_info_icon.gif"></td></tr></table></td>';
		output+='<td colspan="2">&nbsp;</td></tr>';
		output+='<tr bgcolor="#EAEAEA"><td colspan="5"><images src="'+staticPath+'/images/dot_trans.gif" width="180" height="6"></td></tr>';
		output+='<tr bgcolor="#FFFFFF"><td colspan="5"><images src="'+staticPath+'/images/dot_trans.gif" width="180" height="6"></td></tr>';
		output+='<tr bgcolor="#FFFFFF"><td colspan="2">&nbsp;</td><td>';
		output+='<table border="0" cellpadding="0" cellspacing="0" width="156">';
		output+='<tr valign="top"><td><b>' + infoTxt[which][0] + '</b><br>';
		output+= infoTxt[which][1];
		output+='</td></tr></table></td><td colspan="2">&nbsp;</td></tr>';
		output+='<tr bgcolor="#FFFFFF"><td colspan="5"><images src="'+staticPath+'/images/dot_trans.gif" width="180" height="6"></td></tr>';
		output+='</table><table border="0" cellpadding="0" cellspacing="0" width="180">';
		output+='<tr><td colspan="5" bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="1" height="6"></td></tr>';
		output+='<tr bgcolor="#EAEAEA"><td colspan="2">&nbsp;</td><td align="right">';
		output+='<table border="0" cellpadding="0" cellspacing="0" width="44"><tr>';
		output+='<td height="16" class="tdOutStyle" onmouseover="tdOver(this)" onmouseout="tdOut(this)" onclick="parent.hideInfo()" align="center">Close<br>';
		output+='<images src="'+staticPath+'/images/dot_trans.gif" width="1" height="1"></td></tr></table></td><td colspan="2">&nbsp;</td></tr>';
		output+='<tr><td colspan="5" bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="1" height="5"></td></tr>';
		output+='<tr><td><images src="'+staticPath+'/images/gx_findbook_corner_light_b_l.gif" width="5" height="5"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="7" height="1"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="156" height="1"></td>';
		output+='<td bgcolor="#EAEAEA"><images src="'+staticPath+'/images/dot_trans.gif" width="7" height="1"></td>';
		output+='<td><images src="'+staticPath+'/images/gx_findbook_corner_light_b_r.gif" width="5" height="5"></td></tr></table>';
		// *** inforBox layout end ***
		infoLayer.innerHTML = output;
		infoLayer.style.visibility = "visible";
		activeInfo = where;		
	}
}

    