//alert(document.links.length); // for development - 
for (LinkLoop = 0; LinkLoop < document.links.length; LinkLoop ++) {
	
	CurrentLink = document.links[LinkLoop].href + ""
	if (CurrentLink.indexOf(".pdf") != -1 ) {
		document.links[LinkLoop].target = "new_p"
			//alert(document.links[LinkLoop].href); // for development - 
	}
	
	if (CurrentLink.indexOf("http") != -1 ) {  
		if ((CurrentLink.indexOf("205.189.13.234") == -1 ) && (CurrentLink.indexOf("nygh.on.ca") == -1 ) && (CurrentLink.indexOf("workopolis") == -1 )) {
	    //alert(CurrentLink); // for development - 
		document.links[LinkLoop].target = "new_p"
			//alert(document.links[LinkLoop].href); // for development - 
		}
	}
	
}

if (SelectPresent != "true") {
// If we don't have a select box present to hide from the drop down,
// we write an empty one so the hide function doesn't break
// SelectPresent is set to blank on DropDownOutput.js, and then
// set to false on pages where a select box is present

document.write('<div id="VisibleSelect" name="VisibleSelect" align="center" style="visibility:visible"></div>');

}

document.write('<br><span class=FooterText>&copy; North York General Hospital, 2006</span><br><br>');
