// tableinfo.js
var windowCreated = 0; 

function fullscreen(theURL){
	//alert('tableinfo');
	w = screen.width;
	h = screen.height;
	ah = h - 25;
	nw = window.open(theURL, 'newMap','width=' + w + ',height=' + ah + ',resizable=yes,scrollbars=auto,toolbar=yes,location=yes,directories=yes,menubar=yes,status=yes');
	nw.moveto(0,0);
}

function addbookmark()
{
bookmarkurl="http://pslgis.cityofpsl.com"
bookmarktitle="City of Port St Lucie GIS Website"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function dcWindow(){
        newWindow3 = window.open ('disclaimer.html', 'ccWin', 'scrollbars=yes,width=370,height=200')
}

if (onHm == true) {
  var imagename = "images/home_on.gif";
} else {
  var imagename = "images/home_off.gif";
} 
 
if (onMa == true) {
  var imagename1 = "images/ma_on.gif";
} else {
  var imagename1 = "images/ma_off.gif";
} 

if (onData == true) {
  var imagename6 = "images/data_on.gif";
} else {
  var imagename6 = "images/data_off.gif";
} 

if (onCrime == true) {
  var imagename7 = "images/crime_on.gif";
} else {
  var imagename7 = "images/crime_off.gif";
} 


if (onSm == true) {
  var imagename2 = "images/sm_on.gif";
} else {
  var imagename2 = "images/sm_off.gif";
} 

if (onAd == true) {
  var imagename3 = "images/ad_on.gif";
} else {
  var imagename3 = "images/ad_off.gif";
} 

if (onSp == true) {
  var imagename4 = "images/sp_on.gif";
} else {
  var imagename4 = "images/sp_off.gif";
} 

if (onPsl == true) {
  var imagename5 = "images/psl_on.gif";
} else {
  var imagename5 = "images/psl_off.gif";
}

document.write ("<html><title><head>")
document.write ("</head></title><body>")
document.write ("<table bgcolor='#FFFFFF' width='982' cellpadding='0' cellspacing='0' border='0'>")
document.write ("<tr>")
document.write ("<td>")
document.write ("<img src='images/logo3.gif' width='760' alt='GIS/Data Management logo' border='0'>")
document.write ("</td>")
document.write ("</tr></table>")

document.write ("<table width='982' border='0' cellpadding='0' cellspacing='0'>")
document.write ("<tr>")
document.write ("	<td width='127' align='right'><a href='index.html'><img src='")
document.write (imagename)
document.write ("' name='tab1' border='0' width='127' height='48' alt='Home'></a></td>")
document.write ("	<td width='80' align='right'><img style='cursor:pointer;' src='")
document.write (imagename1)
document.write ("' name='tab2' border='0' width='80' height='48' onclick=fullscreen('http://pslgis.cityofpsl.com/website/cityofpsl/default.htm') alt='Interactive Mapping'></a></td>")
document.write ("	<td width='80' align='right'><a href='data.html'><img src='")
document.write (imagename6)
document.write ("' name='tab7' border='0' width='80' height='48' alt='Database Searches'></a></td>")
document.write ("	<td width='80' align='right'><img style='cursor:pointer;' src='")
document.write (imagename7)
document.write ("' name='tab8' border='0' width='80' height='48' onclick=fullscreen('http://pslpdgis.cityofpsl.com/') alt='PSL Police Deparment Crime Statistics/Maps'></a></td>")
document.write ("	<td width='80'><a href='sm.html'><img src='")
document.write (imagename2)
document.write ("' name='tab3' border='0' width='80' height='48' alt='Static maps of the city in PDF format'></a></td>")
document.write ("	<td width='80'><a href='addressing.htm'><img src='")
document.write (imagename3)
document.write ("' name='tab4' border='0' width='80' height='48' alt='City Addressing'></a></td>")
document.write ("	<td width='80'><a href='sp.html'><img src='")
document.write (imagename4)
document.write ("' name='tab5' border='0' width='80' height='48' alt='Special Projects including Annexations Listing'></a></td>")
document.write ("	<td width='95'><a href='mapstore.asp'><img src='")
document.write (imagename5)
document.write ("' name='tab6' border='0' width='95' height='48' alt='Order PSL Maps'></a></td>")
document.write ("	<td width='280'><img src='images/hmtop.gif' width='280' height='48' alt='Spacer'></td></tr>")
document.write ("</table>")

document.write ("<table width='982' cellpadding='0' cellspacing='0' border='0'>")
document.write ("<tr>")
document.write ("<td valign='top' width='70'><a href='contactusasp.asp'><img src='images/feedback1.gif' border='0' width='70' height='12' alt='Contact Us'></a></td>")
document.write ("<td valign='top' width='40'><a href='help/arcimstrain.pdf' target='_blank'><img src='images/help1.gif' border='0' width='40' height='12' alt='Site Help'></a></td>")
document.write ("<td valign='top' width='140'><a href='faq.htm'><img src='images/faq1.gif' border='0' width='140' height='12' alt='Frequently Asked Questions'></a></td>")
document.write ("<td valign='top' width='75'><a href='links.htm'><img src='images/related.gif' border='0' width='75' height='12' alt='Related Links'></a></td>")
document.write ("<td valign='top' width='70'><a href='javascript:dcWindow()'><img src='images/disclaimer1.gif' border='0' width='70' height='12' alt='Disclaimer'></a></td>")
document.write ("<td valign='top' width='130'><a href='http://home.cityofpsl.com/' target='_blank'><img src='images/intrgis1.gif' border='0' width='130' height='12' alt='Internal Use Only'></a></td>")
document.write ("<td valign=top><font size=1 face='arial' color=#000000>")
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year<2000) year= year + 1900;
document.write("<div align=right>" + lmonth + " ")
document.write(date + ", " + year + "</div>")
document.write ("</font></td></tr></table><br>")
document.write ("<table width='982' cellpadding='0' cellspacing='0' border='0'>")
document.write ("<tr><td align='right'>")
document.write ("<a href='javascript:addbookmark()'><img src='images/bksite.gif' width='127' height='14' alt='Add this website to the Browser Favorites' border='0'></a>")
document.write ("</td></tr></table>")
document.write ("</body></html>")