/**********************************************************
 * displayPopup(), displayPopup()
 *
 * Calls to functions within webmonkeyCookieCode.js
 *
 * Set of functions used to create a delayed popup window
 * for a new HTML page.
 *
 **********************************************************/

// Set variable parameters

var delayTime = 2; 					// Number of seconds to delay the new window opening. No quotes around value
var cookieName = "firstVisitHere"; 	// Name of the cookie
var cookieValue = "Yes"; 			// Value of the cookie
var expirationTime = 0; 			// Expiration of cookie in hours (0 = session only). No quotes around value
var popupURL = "pavonebanquet.html" ; 		// URL to call for popup window
var popupName = "popupWindow"; 		// Name of popup window
var popupFeatures = "scrollbars=yes,width=700,height=500"; // Comma seperated listing of window parameters

function performPopup() {
	setTimeout("displayPopup()",(delayTime*1000));
}

function displayPopup () {
	if (WM_readCookie(cookieName) != cookieValue) {
		WM_setCookie(cookieName, cookieValue , expirationTime);
		openWindow(popupURL,popupName,popupFeatures);
	}
}

function openWindow(URL,windowName,features) {
  	window.open(URL,windowName,features);
}