// Visitosity Drop Down Menu Panel Version 1.0
//
// Author: Matt Frazee
// File: DropDownMenus.js
// Date: 09/13/07

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function createDropDownMenu(){
  //starting tag
  document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="24" align="center" background="images/titlebar_sm_bg.jpg" class="TitleBarText">Quick Jump</td></tr><tr><td height="1" bgcolor="#000000"></td></tr><tr><td valign="middle" align="center" height="40" background="images/quicklinks_bg.jpg">');	
  //drop down menu
  document.write('<select name="menu1" id="menu1" class="QuickJumpMenuText" onChange="MM_jumpMenu(\'parent\',this,0)"><option value="#" selected>Select your destination</option><option value="#"></option><option value="#">-----------Main Menu--------------</option><option value="index.html">Home Page</option><option value="hardware.html">Kiosk Hardware</option><option value="contactus.html">Contact Us</option><option value="#"></option><option value="#">------Visitosity Information-------</option><option value="tourism.html">DMOs & Tourism</option><option value="parks.html">National & State Parks</option><option value="#"></option><option value="#">---------Merchant Tools-----------</option><option value="registration.html">Merchant Registration</option></select>&nbsp;<input type="button" value="Go" class="FormFields" onClick="MM_jumpMenu(\'parent\',menu1,1)" style="width:25px" /></td></tr></table>');
}

//pop up code
// Set the horizontal and vertical position for the popup
PositionX = 50;
PositionY = 50;
// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth  = 50;
defaultHeight = 50;
// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = false;
// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','test',optNN);}
if (isIE){imgWin=window.open('about:blank','test',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');
writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height)+20;'); //spacing at end of the document
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["my_image"].width;');
writeln('window.innerHeight=document.images["my_image"].height+20;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('function doPrint(){this.window.print();}');
writeln('</sc'+'ript>');
if (!AutoClose) writeln('<link href="css styles/visitosityStyles.css" rel="stylesheet" type="text/css" /></head><body scroll="no" onload="reSizeToImage();doTitle();self.focus()" style="background-color:#ffffff" class=\"BodyText\">')
else writeln('<link href="css styles/visitosityStyles.css" rel="stylesheet" type="text/css" /></head><body scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()" style="background-color:#ffffff" class=\"BodyText\">');
writeln('<a href="javascript:self.close();"><img name="my_image" src='+imageURL+' style="display:block" border="0" alt="Click here to close the window."></a><div align="center"><a href="javascript:window.print()">Print Image</a>&nbsp;|&nbsp;<a href="javascript:self.close()">Close Window</a></div></body></html>');
close();
}}