/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  Permission granted to use this code 
  as long as this entire notice is included.
*************************************************************************/

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var page_loaded; // set true onload (avoid errors onmouseover/out before page loaded)
function initInfoLyr() {
  page_loaded = true; 
  writeToLayer('aboutCNY', origMsg); // write first message onload
}

function writeToLayer(id, sHTML) {
  if (!page_loaded) return;
  var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
  if (!el) return;
  var cntnt = '<div class="info">' + sHTML + '</div>';
  if (typeof el.innerHTML!="undefined") {
      el.innerHTML = cntnt;
  } else if (document.layers) {
			el.document.write(cntnt);
			el.document.close();
  }
}

// Variables for layer content
var origMsg =      '<div id="aboutCNY" style="position:absolute; width:357px; height:100px; z-index:1; left: 188px; top: 490px"><table width="435" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3"><img src="images/home/cnymodule_cny.gif" alt="About Syracuse Metro"></td></tr><tr><td rowspan="2" width="32"><img src="images/spacer.gif" width="32" height="10"></td><td width="361" height="62"><table width="356" border="0" cellpadding="0" cellspacing="5"><tr><td valign="top" align="center"><img src="images/home/syracusemetro_sm.gif" width="130" height="106" alt="Syracuse Metro" vspace="0" hspace="0" class="imgover"></td><td valign="top"><b>Syracuse Metro</b><br>The Syracuse metro area provides a growing and diverse economic base, top-ranked medical and academic institutions, easy commutes, affordable housing, excellent schools, and numerous cultural and outdoor activities.<br><br><a href="#"><img src="images/home/about_cny_more.gif" width="147" height="11" alt="More" border="0" align="right"></a></td></tr></table></td><td rowspan="2" width="45"><img src="images/spacer.gif" width="32" height="10"></td></tr></table></div>';
var fingerlakes = '<div id="aboutCNY" style="position:absolute; width:357px; height:100px; z-index:1; left: 188px; top: 490px"><table width="435" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3"><img src="images/home/cnymodule_fingerlakes.gif" alt="About Finger Lakes"></td></tr><tr><td rowspan="2" width="32"><img src="images/spacer.gif" width="32" height="10"></td><td width="361" height="62"><table width="356" border="0" cellpadding="0" cellspacing="5"><tr><td valign="top" align="center"><img src="images/home/fingerlakes_sm.gif" width="130" height="106" alt="Finger Lakes" vspace="0" hspace="0" class="imgover"></td><td valign="top"><b>Finger Lakes</b><br>The Finger Lakes region, rich in rich history and natural beauty, is a center for high tech innovation. Cornell University anchors the regions software, biotech, electronics, and telecommunications research and commercial development activities.<br><br><a href="#"><img src="images/home/about_cny_more.gif" width="147" height="11" alt="More" border="0" align="right"></a></td></tr></table></td><td rowspan="2" width="45"><img src="images/spacer.gif" width="32" height="10"></td></tr></table></div>';
var northcountry =  '<div id="aboutCNY" style="position:absolute; width:357px; height:100px; z-index:1; left: 188px; top: 490px"><table width="435" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3"><img src="images/home/cnymodule_northcnty.gif" alt="About North Country"></td></tr><tr><td rowspan="2" width="32"><img src="images/spacer.gif" width="32" height="10"></td><td width="361" height="62"><table width="356" border="0" cellpadding="0" cellspacing="5"><tr><td valign="top" align="center"><img src="images/home/northcountry_sm.gif" width="130" height="106" alt="North Country" vspace="0" hspace="0"class="imgover"></td><td valign="top"><b>North Country</b><br>The North Country features water and mountains: Lake Ontario, the Saint Lawrence River, and the Adirondack Mountains combine beaches, world class snowmobiling, fishing, hunting, and hiking, with rural colleges and easy access to Syracuse.<br><br><a href="#"><img src="images/home/about_cny_more.gif" width="147" height="11" alt="More" border="0" align="right"></a></td></tr></table></td><td rowspan="2" width="45"><img src="images/spacer.gif" width="32" height="10"></td></tr></table></div>';
var mohawkvalley = '<div id="aboutCNY" style="position:absolute; width:357px; height:100px; z-index:1; left: 188px; top: 490px"><table width="435" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3"><img src="images/home/cnymodule_mohawk.gif" alt="About Mohawk Valley"></td></tr><tr><td rowspan="2" width="32"><img src="images/spacer.gif" width="32" height="10"></td><td width="361" height="62"><table width="356" border="0" cellpadding="0" cellspacing="5"><tr><td valign="top" align="center"><img src="images/home/mohawkvalley_sm.gif" width="130" height="106" alt="Mohawk Valley" vspace="0" hspace="0" class="imgover"></td><td valign="top"><b>Mohawk Valley</b><br>The Mohawk Valley is a high tech corridor featuring the world-renowned Griffiss Technology R&D Park. The region also features top-ranked institutions such as Hamilton College and Colgate University, and the growing Turning Stone Casino Resort.<br><br><a href="#"><img src="images/home/about_cny_more.gif" width="147" height="11" alt="More" border="0" align="right"></a></td></tr></table></td><td rowspan="2" width="45"><img src="images/spacer.gif" width="32" height="10"></td></tr></table></div>';
