<!--

/*******************************************************************************************************
	Opens a window with disclaimer
*******************************************************************************************************/
function PortPromo() {

	//day = new Date();
	//id = day.getTime();
	
	//eval("page" + id + " = window.location.href='" + URL + "'");

	//location change link
	//http://216.25.22.207/partners.php?partnerid=416441cd936e3&region=Alaska1106878454201
	
	//pop up window link
	//http://216.25.22.207/partners.php?partnerid=416441cd936e3&region=Alaska

	eval("page = window.open('http://www.alaskacruiseexperts.com/ACE_external.asp', 'externalWin', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=600,height=600,left = 262,top = 84');");
}


/*******************************************************************************************************
	Opens a window with Port Promotions
*******************************************************************************************************/
function openPortPromo(URL) {

	day = new Date();
	id = day.getTime();
	
	eval("page" + id + " = window.location.href='" + URL + "'");

	//location change link
	//http://216.25.22.207/partners.php?partnerid=416441cd936e3&region=Alaska1106878454201
	
	//pop up window link
	//http://216.25.22.207/partners.php?partnerid=416441cd936e3&region=Alaska

	//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=600,height=600,left = 262,top = 84');");
}


/*******************************************************************************************************
	Opens a window with BBBOnline
*******************************************************************************************************/
function openBBB() {
	
		var pageURL = "http://www.bbbonline.org/cks.asp?id=101081616503918680";	

		//open a new sized window with only scrollbars
		var bbbWindow=window.open(pageURL,"bbbWindow","width=500, height=400, scrollbars=yes, resizable=yes, location=no, toolbar=no, menubar=no");

		//bring window to top
		bbbWindow.focus();
}


/***********************************************************************
	Open window for deck plan images
************************************************************************/
function openDeck(shipID, deckRefID, deckName) {
		
		//set the url of the page
		var pageURL = "ship_deck.asp?shipID=" + shipID + "&deckID=" + deckRefID + "&deckName=" + deckName;		

		//open a new sized window with only scrollbars
		var deckWin=window.open(pageURL,"deckWin","width=300, height=600, scrollbars=yes, location=no, toolbar=no, menubar=no, resizable=yes");

		//bring window to top
		deckWin.focus();
	}


/***********************************************************************
	Open window for stateroom/public room images
************************************************************************/
function openRoom(shipID, roomID, roomType) {
		
		//set the url of the page
		var pageURL = "ship_room.asp?shipID=" + shipID + "&roomID=" + roomID + "&roomType=" + roomType;
		
		//open a new sized window with only scrollbars
		var roomWin=window.open(pageURL,"roomWin","width=300, height=425, scrollbars=yes, location=no, toolbar=no, menubar=no, resizable=no");

		//bring window to top
		roomWin.focus();
	}


/***********************************************************************
	Open window for printable version of Directions to Pier
************************************************************************/
function openPDprint(portID) {
		
		//set the url of the page
		var pageURL = "pierDirect_print.asp?id=" + portID;
		
		//open a new sized window with only scrollbars
		var PDprintWin=window.open(pageURL,"PDprintWin","width=750, height=550, scrollbars=yes, location=no, toolbar=no, menubar=yes, resizable=yes");

		//bring window to top
		PDprintWin.focus();
	}


/***********************************************************************
	Open window for Send to a Friend form
************************************************************************/
function openSendFriend(productID) {
		
		//set the url of the page
		var pageURL = "https://www.alaskacruiseexperts.com/ACE_sendProduct.asp?id=" + productID;
		
		//open a new sized window with only scrollbars
		var sendWin=window.open(pageURL,"sendWin","width=510, height=510, scrollbars=no, location=no, toolbar=no, menubar=no, resizable=no");

		//bring window to top
		sendWin.focus();
	}



/***********************************************************************
	Opens a window with no status, location, menu or toolbar
	of a specified width and height.
************************************************************************/
function openSizedWindow(width, height, url) {
		
		//set the url of the page
		var pageURL = url;		

		//open a new sized window with only scrollbars
		var genericWindow=window.open(pageURL,"genericWindow","width=" + width + ", height=" + height + ", scrollbars=yes, location=no, toolbar=no, menubar=no");

		//bring window to top
		genericWindow.focus();
	}


/*********************************************************************
	Writes contact information on the window status area
	(bottom of browser window).
**********************************************************************/
var stringStatus = "Call the Alaska Cruise Experts: 1-800-565-2784       Mon - Fri 7:00am - 6:00pm  |  Sat & Sun 9:00am - 4:00pm  (Pacific)";
window.status = stringStatus;

//-->