
var bIsMac = "", bIsMac = "", bIsIE = "", bIsIE4 = "", bIsIE5 = "", bIsIE6 = "", bIsNav = "", bIsNav4 = "", bIsNav6 = "", bIE5and6 = "";

// get 'UserAgent' string
sAgent = navigator.userAgent;
 
// is it mac? (could be ie or netscape)
 bIsMac = sAgent.indexOf("Mac") > -1;
 
// is it IE?
 bIsIE = sAgent.indexOf("MSIE") > -1;

// which version of IE?
 bIsIE4 = sAgent.indexOf("IE 4") > -1;
 bIsIE5 = sAgent.indexOf("IE 5")  > -1;
 bIsIE6 = sAgent.indexOf("IE 6")  > -1;
 
// is it netscape?  (actually really only says its NOT IE, not that its definitely netscape)
 bIsNav = sAgent.indexOf("Mozilla") > -1 && !bIsIE;

// which version of netscape?
 bIsNav4 = sAgent.indexOf("Mozilla") > -1 && sAgent.indexOf("4.") > -1 && !bIsIE;
 bIsNav6 = sAgent.indexOf("Mozilla") > -1 && sAgent.indexOf("6.") > -1 && !bIsIE;
 
// use same stylesheet for IE 5 and 6 for now.
 bIsIE5and6 = (bIsIE5 || bIsIE6) 


if (bIsMac)
{
	if (bIsNav4)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/macNS4.css/_.html TYPE=\"text/css\">");
	}

	if (bIsNav6)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/macNS6.css/_.html TYPE=\"text/css\">");
	}
	if (bIsIE4)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/macIE4.css/_.html TYPE=\"text/css\">");
	}

	if (bIsIE5and6)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_inc/macIE5.css/_.html TYPE=\"text/css\">");
	}

	if ( !(bIsNav4 || bIsNav6 || bIsIE4 || bIsIE5and6) )
	{
		document.write("<LINK REL=STYLESHEET HREF=../_inc/macIE5.css/_.html TYPE=\"text/css\">");
	}
}
else
{
	if (bIsNav4)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/pcNS4.css/_.html TYPE=\"text/css\">");
	}

	if (bIsNav6)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/pcNS6.css/_.html TYPE=\"text/css\">");
	}

	if (bIsIE4)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/pcIE4.css/_.html TYPE=\"text/css\">");
	}

	if (bIsIE5and6)
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/pcIE5.css/_.html TYPE=\"text/css\">");
	}

	if ( !(bIsNav4 || bIsNav6 || bIsIE4 || bIsIE5and6) )
	{
		document.write("<LINK REL=STYLESHEET HREF=../_www.microsoft.com/australia/library/styles/pcIE5.css/_.html TYPE=\"text/css\">");
	}
}

//reloads the window if Nav4 resized

function MM_reloadPage(init) 
{  
if (init==true) with (navigator) 
	{
	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
	{
    		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
	}
}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

