// JavaScript File

function DownloadWindow(url)
{
	 var popupWindow = window.open(url, "Download", "width=550,height=600,status=yes,scrollbars=yes,resizable=yes")
	 popupWindow.focus()
}

function MapWindow(url)
{
	 var popupWindow = window.open(url, "Map", "width=790,height=570,status=yes,scrollbars=yes,resizable=yes")
	 popupWindow.focus()
}

// Replaces target="_blank", required for XHTML compliance
// Taken from: http://www.sitepoint.com/article/standards-compliant-world/3
// Example: replace target="_blank" with rel="external"
function externalLinks() 
{ 
    if (!document.getElementsByTagName) return; 
    var anchors = document.getElementsByTagName("a"); 
    for (var i=0; i<anchors.length; i++) 
    { 
    var anchor = anchors[i]; 
    if (anchor.getAttribute("href") && 
        anchor.getAttribute("rel") == "external") 
        anchor.target = "_blank"; 
    } 
} 

// Makes the specified element visible
function startProgress(divname)
{
  var d = $get(divname);
  d.style.display = "inline";
}

// Run the externalLinks script when the page is finished loading
window.onload = externalLinks;