/*
<b>RedirectOldBrowsers()</b>
written by Matt Pressnall 12/09/2004

<b>What does it do?</b>
This function uses two js files called GetBrowserOSVersion and CanSetCookies to check whether the browser is netscape or ie, whether it is under version 5, whether we have not done a redirect this session.  If all of that is true, it then does a redirect to the upgrade page.

<b>How do I use it?</b>
(place the JS files somewhere on the page and put the function call RedirectOldBrowsers anywhere underneath the JS file call)

&lt;script src="/js/standardFunctionality/GetBrowserOSVersion.js"&gt;&lt;/script&gt;
&lt;script src="/js/standardFunctionality/CanSetCookies.js"&gt;&lt;/script&gt;
&lt;script src="/js/standardFunctionality/STSpecific/RedirectOldBrowsers.js"&gt;&lt;/script&gt; 
&lt;script&gt;RedirectOldBrowsers();&lt;/script&gt; 
*/


function RedirectOldBrowsers(){
	GetBrowserOSVersion();
	
	//it's IE or Netscape
	if((browser = "Netscape") || (browser = "Microsoft Internet Explorer")){
		// and the browser is less than version 5
		if(version < 5){

			var haveAlreadyRedirected = Get_Cookie("HaveAlreadyRedirected");
			// haven't done a redirect during this session
			if(! haveAlreadyRedirected){
				Set_Cookie("HaveAlreadyRedirected","true");
				location.href = 'http://seattletimes.nwsource.com/services/browsers.html';
			} 
		}
	}
}

RedirectOldBrowsers();