/*
original script courtest of coothead  www.webxpertz.net

This document has been through so many tweaks & changes since the original which actually detected screen resolutions
it's hardly recognisable. 

However, the original idea was lifted from webxpertz ... so credit is still due to coothead!
*/


//<![CDATA[
		   

function sniffer() {
     
	/*
	In Firefox, navigator.appName=Netscape. The nonnetscape.css layout works better in this browser because the footer sits
	neatly at the bottom of the page. However the page is collapsed to less than 800px, the background image becomes skewed
	for this reason, it is better to appy netscape.css to the Firefox browser
	*/
	if (navigator.appName == "Netscape")  {
                  //alert (navigator.appName)
				  document.getElementById("wrapperheight").href="styles/netscape.css"
    } 
	
    /*
	layout collapses in Opera when faux columns are applied to the body>background-image of the web page
	so use the netscape css stylesheet which applies the background-image to the #wrapper div
	*/
	else if (navigator.appName == "Opera")  {
                  //alert (navigator.appName)
				  document.getElementById("wrapperheight").href="styles/netscape.css"
    } 
	
	/*
	after all is said and done, seems like this style is only applied to MSIE 6+ browsers
	*/
	else {
             document.getElementById("wrapperheight").href="styles/nonnetscape.css";
    }
   }
  
window.onload=sniffer;
//]]>

