<!--
var VAR_LOG_COUNTER = 1;var gblPopUpHeigth = 400; var gblPopUpWidth = 300;
function jsLOG(param_active, param_newwindow) {
	this.enabled = param_active;
	this.newWindow = param_newwindow;
	this.logWindow = null;
	function jsLOG_log(param_logline) {
		if ( this.enabled == true ) {
			if ( this.newWindow == true ) {
				if ( this.logWindow ) {
				} else {
					this.createWindow();
				}
				this.logWindow.document.writeln ('<xmp>' + param_logline + '</xmp>---<BR>');
			} else {
				window.alert ( param_logline );
			}
		}
	}
	this.log = jsLOG_log;
	function jsLOG_createWindow() {
		if ( (this.enabled == true) && (this.newWindow == true) ) {
			var name = 'LogNum' + VAR_LOG_COUNTER;
			VAR_LOG_COUNTER = VAR_LOG_COUNTER + 1;
			this.logWindow = window.open ('', name, 'dependent=yes,menubar=no,resizable=yes,toolbar=no,scrollbars=yes');
		}
	}
	this.createWindow = jsLOG_createWindow;
	function jsLOG_enable () {
		this.enabled = true;
	}
	this.enable = jsLOG_enable;
	function jsLOG_disable () {
		this.enabled = false;
		if ( this.logWindow ) {
			this.logWindow.close();
		}
	}
	this.disable = jsLOG_disable;
	function jsLOG_init() {
		if ( ( this.enabled == true ) && (this.newWindow == true) ) {
			this.createWindow();
		}
	}
	this.init = jsLOG_init;
	this.init();
}
function jsBasic (){
	this.logClass = null;
	this.popupw = null;
	function jsBasic_setLog(param_active, param_newwindow){
		this.logClass = new jsLOG(param_active, param_newwindow);
	}
	this.setLog = jsBasic_setLog;
    function Page_log( param_str ) {
      this.logClass.log ( param_str );
    }
    this.log = Page_log;
	function jsBasic_popup(param_href, param_width, param_height, param_hasScroll) {
		if(param_hasScroll) {
			this.log('[popup method - executing popup method with scrollbars' );
			this.popupw = window.open(param_href,"","toolbar=0,directories=0,status=0,menubar=0,location=0,scrollbars=1,resizable=0,width="+param_width+",height="+param_height);
		} else {
			this.popupw = window.open(param_href,"","toolbar=0,directories=0,status=0,menubar=0,location=0,scrollbars=0,resizable=0,width="+param_width+",height="+param_height);
		}
	}
	this.popup = jsBasic_popup;
	function jsBasic_popupfull(param_href, param_width, param_height) {
		this.popupw = window.open(param_href,"","toolbar=1,directories=1,status=1,menubar=1,location=1,scrollbars=1,resizable=1,width="+param_width+",height="+param_height);
	}
	this.popupfull = jsBasic_popupfull;
	function jsBasic_show(param_obj){
	    if (document.getElementById && document.getElementById(param_obj) != null) {
			this.log('[show method - executing show method for object id: ' +  param_obj);
         	document.getElementById(param_obj).style.visibility='visible';
         	document.getElementById(param_obj).style.display='block';	
	    }
	}
	this.show = jsBasic_show;
	function jsBasic_hide(param_obj){
	    if (document.getElementById && document.getElementById(param_obj) != null) {
			this.log('[hide method - executing hide method for object id: ' +  param_obj);		
	         document.getElementById(param_obj).style.visibility='hidden';
	         document.getElementById(param_obj).style.display='none';
	    }	
	}
	this.hide = jsBasic_hide;
	function jsBasic_setText(param_obj, param_text){
	    if (document.getElementById && document.getElementById(param_obj) != null) {
			this.log('[setText method - executing setText method for object id: ' +  param_obj);		
	         document.getElementById(param_obj).innerHTML = param_text;
	    }	
	}
	this.setText = jsBasic_setText;
	function jsBasic_setTrColor(param_selected_row_id, param_new_row_id, param_highlight_class, param_default_class){
	    if (document.getElementById && document.getElementById(param_new_row_id) != null) {
			this.log('[setTrColor method - executing setTrColor method for object id: ' +  param_new_row_id);		
		 	 if (document.getElementById(param_selected_row_id) != null)
			 document.getElementById(param_selected_row_id).className = param_default_class;
    		 
			 document.getElementById(param_new_row_id).className = param_highlight_class;
	    }	
	}
	this.setTrColor = jsBasic_setTrColor;
}
if (document.images) { my_cruises = new Image; my_cruises_ro = new Image; my_cruises.src = "/img/ico/nav_mycruises_ico_off_v1.gif"; my_cruises_ro.src = "/img/ico/nav_mycruises_ico_ovr_v1.gif"; site_search = new Image; site_search_ro = new Image; site_search.src = "/img/ico/nav_sitesearch_ico_off_v1.gif"; site_search_ro.src = "/img/ico/nav_sitesearch_ico_ovr_v1.gif"; specialist = new Image; specialist_ro = new Image; specialist.src = "/img/ico/nav_specialist_ico_off_v1.gif"; specialist_ro.src = "/img/ico/nav_specialist_ico_ovr_v1.gif"; loyalty = new Image; loyalty_ro = new Image; loyalty.src = "/img/ico/nav_loyaltyprogram_ico_off_v1.gif"; loyalty_ro.src = "/img/ico/nav_loyaltyprogram_ico_ovr_v1.gif"; full_summary = new Image; full_summary_ro = new Image; full_summary.src = "/img/ico/cor_summarydetails_ico_off.gif"; full_summary_ro.src = "/img/ico/cor_summarydetails_ico_ovr.gif"; res_help = new Image; res_help_ro = new Image; res_help.src = "/img/ico/cor_reservationhelp_ico_off.gif"; res_help_ro.src = "/img/ico/cor_reservationhelp_ico_ovr.gif"; pay_history = new Image; pay_history_ro = new Image; pay_history.src = "/img/ico/cor_paymenthistory_ico_off.gif"; pay_history_ro.src = "/img/ico/cor_paymenthistory_ico_ovr.gif"; }
function fixPage() {}
function fixPageOld() { var browser = navigator.userAgent.toLowerCase(); if (browser.indexOf("netscape") != -1 && browser.indexOf("6.2") != -1) { var loc = window.location.href; if (loc.indexOf("ns62=true") != -1) { } else { var appendChar = "?"; if (loc.indexOf("?") != -1) { appendChar = "&"; } loc = loc + appendChar + "ns62=true"; window.location.href = loc; } }} 
function ImgRoll(imgName,newImg) { if (document.images) { document[imgName].src= eval(newImg + ".src"); } } 
function MM_reloadPage(init) { if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}
MM_reloadPage(true);
function MM_findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x;}
function P7_autoLayers() { var g,b,k,f,args=P7_autoLayers.arguments; var a = parseInt(args[0]);if(isNaN(a))a=0; if(!document.p7setc) {p7c=new Array();document.p7setc=true; for (var u=0;u<10;u++) {p7c[u] = new Array();}} for(k=0; k<p7c[a].length; k++) { if((g=MM_findObj(p7c[a][k]))!=null) { b=(document.layers)?g:g.style;b.visibility="hidden";}} for(k=1; k<args.length; k++) { if((g=MM_findObj(args[k])) != null) { b=(document.layers)?g:g.style;b.visibility="visible";f=false; for(j=0;j<p7c[a].length;j++) { if(args[k]==p7c[a][j]) {f=true;}} if(!f) {p7c[a][p7c[a].length++]=args[k];}}}}
function show(object) { if (document.getElementById && document.getElementById(object)) { document.getElementById(object).style.visibility = 'visible'; document.getElementById(object).style.display = 'block';} else if (document.layers && document.layers[object]) { document.layers[object].visibility = 'visible'; document.getElementById(object).style.display = '';} else if (document.all && document.all[object]) { document.all[object].style.visibility = 'visible'; document.getElementById(object).style.display = '';}}
function hide(object) { if (document.getElementById && document.getElementById(object)) { document.getElementById(object).style.visibility = 'hidden'; document.getElementById(object).style.display = 'none';} else if (document.layers && document.layers[object]) { document.layers[object].visibility = 'hidden'; document.getElementById(object).style.display = 'none';} else if (document.all && document.all[object]) { document.all[object].style.visibility = 'hidden'; document.getElementById(object).style.display = 'none';}}
function getRowStyleClass(row, col) { if (row == current_row && col == current_col) return "OnCell"; else return "OffCell";}
function showbutton(id, parent_id, ffocus){ if (document.getElementById) { document.getElementById(id).style.top = document.getElementById(parent_id).style.top; document.getElementById(id).style.left = document.getElementById(parent_id).style.left; } else if (document.all) { document.all[id].style.top = document.all[parent_id].style.top; document.all[id].style.left = document.all[parent_id].style.left; } show(id); }
function hidebutton(id){ hide(id);} 
function contentlayer(id, strContent){ if (document.getElementById) {document.getElementById(id).innerHTML = strContent;} else if (document.all) {document.all[id].innerHTML = strContent;} else if (document.layers) {document.layers[id].innerHTML = strContent;}}
function emptylayer(id){ if (document.getElementById) {document.getElementById(id).innerHTML = "";} else if (document.all) {document.all[id].innerHTML = "";} else if (document.layers){document.layers[id].innerHTML = "";}} 
function askBeforeExit(gvspop) { 
	if (gvspop == 'confirm' || gvspop == 'confirmgvs') {
		if (!confirm("Are you sure you want to exit the reservation?")) return false ; 
	}
	if ((gvspop == 'confirmgvs') || (gvspop == 'gvs' && window.event.screenY < window.screenTop))  {
		jsBasic_popup(getSecureLink("/gvs.do?type=ResExit"), 430,490,1); 
		popMsg = "" ;
	}
	if (gvspop == 'cancel') {
		if (!confirm("Are you sure you want to cancel the reservation?")) return false ; 
	}
	return true; 
}
function confirmAction(message) { return confirm(message);}
function showLayer(layer) { if (document.getElementById(layer) != null) { document.getElementById(layer).style.visibility='visible'; document.getElementById(layer).style.display='block'; } }
function hideLayer(layer) { if (document.getElementById(layer) != null) { document.getElementById(layer).style.visibility='hidden'; document.getElementById(layer).style.display='none'; } }
function setText(layer, text) { document.getElementById(layer).innerHTML = text;}
function changeToRequired(layer) { document.getElementById(layer).innerHTML = "<b>* " + document.getElementById(layer).innerHTML + "</b>";}
function changeToNotRequired(layer) { currentText = document.getElementById(layer).innerHTML ; currentText = currentText.replace("<B>", "").replace("* ","").replace("</B>","") ; currentText = currentText.replace("<b>", "").replace("* ","").replace("</b>","") ; document.getElementById(layer).innerHTML = currentText;}
function jsBasic_popup(param_href, param_width, param_height, param_hasScroll) { if(param_hasScroll) { this.popupw = window.open(param_href,"same","toolbar=0,directories=0,status=0,menubar=0,location=0,scrollbars=1,resizable=0,width="+param_width+",height="+param_height); } else { this.popupw = window.open(param_href,"same","toolbar=0,directories=0,status=0,menubar=0,location=0,scrollbars=0,resizable=0,width="+param_width+",height="+param_height); }} 
function jsBasic_popup_resizable(param_href, param_width, param_height, param_hasScroll) { 
	var scrollbarStatus = param_hasScroll == true ? 1 : 0;
	var left, top;
	left = (screen.availWidth - param_width) / 2;
	top = (screen.availHeight - param_height) / 2;	
	left = left < 0 ? 0 : left;
	top = top < 0 ? 0 : top;	
	this.popupw = window.open(param_href,"same","toolbar=0,directories=0,status=0,menubar=0,location=0,scrollbars=" + scrollbarStatus + ",resizable=1,width="+param_width+",height="+param_height+",left="+left+",top="+top); 	
}//jsBasic_popup_resizable
function jsBasic_popupfull(param_href, param_width, param_height) { this.popupw = window.open(param_href,"","toolbar=1,directories=1,status=1,menubar=1,location=1,scrollbars=1,resizable=1,width="+param_width+",height="+param_height);}
function getRnd(){ var axel = Math.random()+""; return axel * 10000000000000;}
function confirmBookingChange() {return confirmAction("Do you want to save your changes?");}
function cnaPicPop(picPageUrl){newPicPopWndStats='toolbar=no,location=no,directories=no,status=no,resizable=yes';newPicPopWndStats+=',menubar=no,scrollbars=no,width=410,height=490';if (navigator.appName.indexOf("Microsoft")>=0) {newPicPopWndStats+=',left=1,top=1';}else{newPicPopWndStats+=',screenX=1,screenY=1'}newPicPopWin = window.open(picPageUrl,'newPicPopWin',newPicPopWndStats);newPicPopWin.focus();}
function ContactCASRepPop(url,w,h){
	popWndStats='toolbar=no,location=no,directories=no,status=no,resizable=yes';
	popWndStats+=',menubar=no,scrollbars=yes';
	popWndStats+=',width='+w;
	popWndStats+=',height='+h;
	
	if (navigator.appName.indexOf("Microsoft")>=0) {
		popWndStats+=',left=1,top=1';
	}
	else{
		popWndStats+=',screenX=1,screenY=1'
	}
	popWin = window.open(url,'popWin',popWndStats);
	popWin.focus();
}
//-->
function goToAnchor(param_name)
{
	location.hash = param_name;
	return false;
}
function printFromCurrentWindow() {
	window.print();
}

/**
* Hides iframes so they are not left behind on the page after the navbar hides
*/
function hideIframes(iframeIndex){
	for(var index = 1; index < 7; index++){
		if(iframeIndex != index){
			var iframe = document.getElementById("iframe"+index);
			if(iframe)
				iframe.style.visibility = 'hidden';
				
		}
	}
}