<!--//
/*******************************************************************************
 * Copyright (c) 1999-2004 Holland America Line Inc.
 * All rights reserved.
 *
 * Use, disclosure, and reproduction controlled under license from Holland
 * America Line Inc.
 *
 * <B>Change Log:</B><br>
 * <ul>
 * <li>cxg 09/07/2004
 * <ul>
 * <li>Created initial JavaScript file</li>
 * </ul>
 * <ul>
 * <li>aup 05/18/2005
 * <ul>
 * <li>Update with new function openPopupShorex</li>
 * </ul>
 * </ul>
 *	<ul>
 *		<li> mwm_20071241 : updated the popupvideos link with the latest one</li>
 *	</ul>
 ******************************************************************************/

function popupSignatureOfExcellence()
{
    openPopup('/pdfs/tahq/SOE-Update.pdf','715','450');
}

function popupCenturionPresentation()
{
	openPopup('/pdfs/tahq/CenturionCruise.pdf','715','450');
}
function popupNewPassportRequirements()
{
	window.open( "http://www.hollandamerica.com/guests/category.do?category=documentation&topic=passportrequirements", "NewPassport", "toolbar=yes,width=715,height=450,resizable=yes,scrollbars=yes" );
}
function popUpAtHomeRegister()
{
    openPopup('/show/tahq/ahwhreg.do','715','450');
}

function popUpFaq()
{
    openPopup('/tahq/TAHQFaq.htm','430','450');
}

function popUpContactUs()
{
    openPopup('/tahq/TAHQContactUs.htm','430','450');
}

function popupShorex()
{
    openPopupShorex('/shorex/shorex.do','715','450');
}

function popupPromos()
{
    openPopup('http://www.HALPROMOS.com','715','450');
}

function popupCommission()
{
    openPopup('https://www.portnpc.com/','715','450');
}

function popupAcademy()
{
    openPopup('http://www.halacademy.com/','715','450');
}

var orderSalesQueryStr = "&IATA=&Agency=&Address_1=&Address_2=&City=&State=&Zip=&Country=&Phone=&Fax=&First_Name=&Last_Name=&Title=&Direct_Phone=&Email=&Web_Site=&Cell=&Admin_Level=USER&Order_Code=D&-DoScript.Post=AdvanceOrderID&-Add";

function popupOrderSales()
{
    location.href = "/show/tahq/ordersalesinfo.do?method=displayOrderForm";
    //openPopup('http://www.halsalesmaterials.com/action.lasso?-database=HollandAmerica_Users&-layout=Information&-response=setup.lasso' + orderSalesQueryStr,'715','450');
}

function popupHalHome()
{
    openPopup('http://www.hollandamerica.com','715','450');
}

var imgLibQueryStr = "&CustomerID=&LastName=&FirstName=&Organization=&Address=&City=&StateProvince=&PostalCode=&Country=&Email=&Phone=&Fax=&ShippingLastName=&ShippingFirstName=&ShippingOrganization=&ShippingAddress=&ShippingCity=&ShippingStateProvince=&ShippingPostalCode=&ShippingCountry=&-New";

function popupImageLibrary()
{	
	if (imgLibQueryStr != null && imgLibQueryStr != "")
	{
	    openPopup('http://fm2.agtseattle.com/FMPro?-db=HHOrders.fp5&-lay=CGI&-format=HH/HTML-Access/Consent.htm' + imgLibQueryStr,'715','450');

	}
	else
	{
		imgLibQueryStr = "&CustomerID=&LastName=&FirstName=&Organization=&Address=&City=&StateProvince=&PostalCode=&Country=&Email=&Phone=&Fax=&ShippingLastName=&ShippingFirstName=&ShippingOrganization=&ShippingAddress=&ShippingCity=&ShippingStateProvince=&ShippingPostalCode=&ShippingCountry=&-New";
		openPopup('http://fm2.agtseattle.com/FMPro?-db=HHOrders.fp5&-lay=CGI&-format=HH/HTML-Access/Consent.htm' + imgLibQueryStr,'715','450');
	}
}

function popupAgentOnlyPromos()
{
    openPopup('http://crm.hollandamerica.com/broadbaseema/HA3129/survey.jsp','715','450');
}

function popupTahqTerms()
{
     openPopup('/show/tahq/halterms.do','715','450');
}

function popupTahqCopyright()
{
     openPopup('/show/tahq/copyright.do','715','450');
}

function popupTahqPrivacy()
{
     openPopup('/show/tahq/privacy.do','715','450');
}

function popupTahqLegal()
{
     openPopup('/show/tahq/legal.do','715','450');
}

function popupRSS()
{
     openPopup('/show/tahq/rss.do','800','850');
}

function goHome()
{
    location.href = "/home.htm";
}

function goSiteIndex()
{
    location.href = "/siteindex/siteindex.htm";
}

function goPromos()
{
    location.href = "http://www.HALPROMOS.com";
}

function goCruiseSearch()
{
    location.href = "/servlet/CruiseSearchBuildServlet";
    //location.href = "/findcruise/cruiseSearch.do";
}

function goQuickFare()
{
    location.href = "/shopping?shopSelectedUrl=/quickBook&actionName=goQuickBook";
    //location.href = "/findcruise/quickBook.do";
}

function goTahqHome()
{
    location.href = "/show/tahq/home.do";
}

function goTahqLogon()
{
    location.href = "/show/tahq/logon.do";
}

function goTahqForms()
{
    location.href = "/show/tahq/forms.do";
}

function goAgentprogram()
{
    location.href = "/show/tahq/agentPrograms.do";
}
function goQuickreference()
{
    location.href = "/show/tahq/quickReference.do";
}

function goTahqFAQ()
{
    location.href = "/show/tahq/faq.do";
}

function goTahqTerms()
{
    location.href = "/show/tahq/terms.do";
}

function goTahqItins()
{
	popup('http://www.halearlyedition.com/');
}

function goTahqContactUs(requestParams)
{
    var url = "/show/tahq/contactus.do";

    if ("undefined" != typeof requestParams)
    {
        url = url + requestParams
    }

    location.href = url;
}

function goTahqContactList()
{
    location.href = "/show/tahq/contactlist.do";
}

function goTahqAgencyBookings()
{
//<kus> 04/04/05 start
//    location.href = "/servlet/ViewCruisePlanListBuildServlet?sortColumn=1&includeIdSignOn=true&cpListPast=false";
 //   location.href = "/viewbooking/viewBookingList.do?action=agencyBooking";
	
//<kus> 04/04/05 end
openPopup('/viewbooking/viewBookingList.do?action=agencyBooking&view=tahq','815','550');
}

function goTahqAgentBookings()
{
//<kus> 04/04/05 start
//  location.href = "/servlet/ViewCruisePlanListBuildServlet?sortColumn=1&cpListPast=false";
//    location.href = "/viewbooking/viewBookingList.do";
//<kus> 04/04/05 end
openPopup('/viewbooking/viewBookingList.do?view=tahq','815','550');
}

function goTahqLogOff()
{
    location.href = "/tahq/logoff.do";
}

function quickRefOverview()
{
	location.href = "/tahq/quickRefOverview.htm";
}

function goAtHomeWithHAL()
{
    location.href = "/show/tahq/ahwhreg.do";
}

function goTahqAcctMaint()
{
    location.href = "/show/tahq/maint.do";
}



function openPopupShorex(dest,width,height)
{
    if ( "undefined" == typeof width )
    {
        width = 495;
    }

    if ( "undefined" == typeof height )
    {
        height = 525;
    }

    thePopup = window.open(dest,'popupWindowShorex','scrollbars=yes,resizable=yes,toolbar=yes,width=' + width + ',height=' + height + ',left=50,top=10');

    if(thePopup.opener == null)
    {
        thePopup.opener = window;
    }
    thePopup.focus();
}

function popupTahqViewVerandahTerms()
{
     openPopup('/show/tahq/viewverandah/terms.do','800','550');
}

//This function swaps the state of a div (if it was hidden it show's it and vice versa). It also swaps the state of the +/- button if possible
function toggledisplay(cid)
{	
	if (document.all) 
	{		
		document.all(cid).style.display=(document.all(cid).style.display!="block")? "block" :"none";
	} 
	else if (document.getElementById)
	{		
		document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none";
	}
	//swap the +/- display
	plusMinusText = cid +"_plusminus";
	if (document.all) 
	{
		plusMinusTextObj = document.all(plusMinusText);
	} 
	else if (document.getElementById)
	{
		plusMinusTextObj = document.getElementById(plusMinusText);
	}
	if (plusMinusTextObj)
	{
		if (plusMinusTextObj.innerHTML == "+") 
		{
			plusMinusTextObj.innerHTML = "&ndash;";
		} 
		else 
		{
			plusMinusTextObj.innerHTML = "+";
		}
	}

}

function hidereveal(cid)
{	
	if (document.all) 
	{		
		document.all(cid).style.display=(document.all(cid).style.display!="block")? "block" :"none";
	} 
	else if (document.getElementById)
	{		
		document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none";
	}
}

function popupVideos()
{
    openPopup('http://www.orderport.net/hollandamerica','715','450');
}

function popupDvdVideos()
{
  
    thePopup = window.open('http://www.orderport.net/hollandamerica/showall.asp',
		'popupWindow','scrollbars=yes,resizable=yes,width=715,height=450,left=50,top=10');

    if(thePopup.opener == null)
    {
        thePopup.opener = window;
    }
	try
	{		
		thePopup.focus();
		
	}
	catch (e)
	{
		// nothing to do.
	}
}


//-->
