<!--  Hide script from older browsers

<!-- Determine Screen size for Pop-Up Windows -->

	var screenW = 640, screenH = 480;
	if (parseInt(navigator.appVersion)>3)
	{
		screenW = screen.width;
		screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" 
		&& parseInt(navigator.appVersion)==3
		&& navigator.javaEnabled()) 
	{
		var jToolkit = java.awt.Toolkit.getDefaultToolkit();
		var jScreenSize = jToolkit.getScreenSize();
		screenW = jScreenSize.width;
		screenH = jScreenSize.height;
	}

<!-- Make Favorites Function -->
	
	function makeMeFav(urlAdd,pageName)
	{
		var urlAdd;
		var pageName;

		if (window.external)
	   	{
			window.external.AddFavorite(urlAdd,pageName);
		}
		else
		{
			alert("Sorry. Mozilla users must bookmark the pages manually by hitting <Ctrl-D>.");
		}
	}

<!-- Pop-Up Window Syntax:  popupWindow(URL, Window Name, Percentage of Screen, Outside Intranet?) -->

	function popupWindow(url, screenPctW, screenPctH, outside)
	{
		var newwindow;
		var pWindowW = screenW * (screenPctW / 100);
		var pWindowH = screenH * (screenPctH / 100);
		
		if (outside == 1) 
		{
			alert('This link is outside the DCYF website and a new window will be opened.');
		}
		
		newwindow=window.open(url,'popwindow','height='+pWindowH+',width='+pWindowW+',resizable=1,scrollbars=1');
		
		if (window.focus)
		{
			newwindow.focus();
		}
	}

<!-- target = "_blank" phased out. This function opens new window -->
   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"; 
    } 
   } 
   window.onload = externalLinks;
  
<!-- Date and Time Web Page Last Updated -->

  function PageLastUpdated()
  {
  	document.writeln("Last Change: "+document.lastModified);
  }

    
//Stop hiding script from old browsers -->
