<!-- hide JavaScript from non-enabled browsers
// set global variables
var pic, desc, pictitle, picdir
pictitle = "Portofino - Marina Vallarta" //title of popup window
picdir="" //picture directory

// define the custom parameters for the new windows can add as many as wanted
// define array(pagename, width, height, caption height)
function newwin1() {
	pic = new Array("images/home/portofino_vallarta_map2.gif", "700", "386","2")
	desc = ""}

	
// this page can only create one popup window.  Each page will be generated in
// same window.
// since this function is used over and over again - if you have several pages with
// thumbnailed pictures, its best to put this part in an external js page and link to it
function popupwin() { //name of function
	x = Number(pic[1]) // forces width parameter to be recognized as a number wont add without it
	y = Number(pic[2]) // height parameter
	z = Number(pic[3]) // additional space required by caption
	width = x + 40  // width + buffer space
	height = y + z + 110 // height + caption + buffer
	// window parameters
	var winsize = "'menubar=0,status=0,toolbar=0,scrollbars=0,resizeable=0,screenX=40,screenY=40,left=0,top=0"
	winsize += ",width=" + width + ",height=" + height +"'";
	// html for popup window
	var winpop = "<html>\n<head>\n";
	winpop += "<title>Portofino - Marina Vallarta</title>";
	// style sheet elements can be used.  external sheets can be linked here
	winpop += "</head>\n<body bgcolor='55,55,55'><font color='FFFFFF'><font face='verdana'><body link='FFFFFF' vlink='FF0000'>\n";
	winpop += "<p align=center>" + pictitle + "<br>\n"
	winpop += "<br><img src=" + picdir + pic[0] + "><br>"
	winpop +=   desc + "\n<br>"
	winpop += "<a href='javascript: window.close();'>" // creates a close link on popup
	winpop += "close window<br></a>"
	winpop += "<div align='right'><font size='1'></a>"

	winpop += "</body>\n</html>\n"
	winpopup = window.open ('','popup',winsize) // opens popup window
	winpopup.document.open() // start of popup window
	winpopup.document.write (winpop) // writes html in the page
	winpopup.document.close() // ends of popup window
	winpopup.focus() //brings popup window to the top.
	}
// end hide -->