		<!--
		
		// function that roughly detects browser version/type
		function funBrowserDetect()
		{
			if ( navigator.appName == "Netscape" )
			{
				if ( parseInt(navigator.appVersion) >= 3 )
				{
					strBrowser = "nn3+";
				}
				else
				{
					strBrowser = "nn3-";
				}
			}
			if ((navigator.appName == "Microsoft Internet Explorer") || (navigator.appVersion.indexOf('MSIE')>0) )
			{
				if ( parseInt(navigator.appVersion) >= 5 )
				{
					strBrowser = "ie5+";
				}
				else if ( parseInt(navigator.appVersion) >= 4 )
				{
					strBrowser = "ie4+";
				}
				else
				{
					strBrowser = "ie4-";
				}
			}
			return strBrowser;
		}
		
		// function to add current page to favourites (ie4+ only)
		function funAddFavourite(strPage)
		{
			strChkBrowser = funBrowserDetect();
			
			if ( strChkBrowser == "ie4+" )
			{
				window.external.AddFavorite(top.location.href, strPage);
				return;
			}
			else if ( strChkBrowser == "ie4-" )
			{
				strAlert = "Your version of Internet Explorer does not\n";
				strAlert += "support 'Adding to Favourites'.\n";
				strAlert += "To do it manually, press Ctrl + D, or\n";
				strAlert += "go to Favourites, Add to Favourites.";
			}
			else if ( (strChkBrowser == "nn3+") || (strChkBrowser == "nn3-") )
			{
				strAlert = "Drag this link onto your tool bar to bookmark this page.";
			}
			else
			{
				strAlert = "Sorry, this functionality is not supported by your\n";
				strAlert += "browser.  Please change this setting manually.\n";
			}
			alert(strAlert);
		}

		// Function to print this page
		function funPrintPage(intPage,strTitle)
		{
			strPrintPage = "/includes/site/popup_printpage.php?print=page&pid=" + intPage + "&tit=" + strTitle;
			strWinOptions = "dependent=yes,directories=no,location=no,menubar=no,";
			strWinOptions += "personalbar=no,resizable=yes,scrollbars=yes,status=no,";
			strWinOptions += "titlebar=yes,toolbar=no";
			
			window.open(strPrintPage, "PrintPage", strWinOptions);
		}


		// Function to email this page to a friend
		function funEmailPage(intPage,strTitle)
		{
			strEmailPage = "/index.php?pid=" + intPage + "&ct=4&pg=1";
			
			window.location = strEmailPage;
		}


		// function to set home page (nn (with confirm) & ie5+ only)
		function funSetHome(objWindow,strURL)
		{

			if (document.all){

				objWindow.style.behavior="url(#default#homepage)";
				objWindow.setHomePage(strURL);

			} else if (document.getElementById){

				alert("Drag this link onto your Home button to make this your Home Page.");

			} else if (document.layers){

				alert("Make this site your home page:\n\n- Go to Preferences in the Edit Menu.\n- Choose Navigator from the list on the left.\n- Click on the Use Current Page button.");

			} else {

				alert("Make this site your home page:\n\n- Go to Preferences in the Edit Menu.\n- Choose Navigator from the list on the left.\n- Click on the Use Current Page button.");
			}

		}

		//-->
