//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 ((CurrentLink.indexOf("www.nygh.on.ca") != -1) && ((HostID.indexOf("205.189.13.234") != -1))) {  
	
		document.links[LinkLoop].href = CurrentLink.replace("www.nygh.on.ca","205.189.13.234")
	
	}
	
}

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>');

}

if (PrintThisPage != "true") {


// Note we can access any html tag/attribute this way in most browsers
// Always double check compatability before getting too deep into code.
	document.write('<br><span class=FooterText>&copy; North York General Hospital, 2010<br><br>');
	if (NavType == "main") {
document.write('<a href="'+RootFolder+'about_us/privacy.html">Privacy</a></span><br><br>');
}
} else {


}


