/**************************************************************
style.js revision 1.0 3-18-2002 JMM

this JavaScript file will be responsible for rendering the correct stylesheet based on browser type

creator(s) Kyle Campbell, Jason Myers 3-1-2002
**************************************************************/
//
// Function returns nothing or the /<junction name>
//
function getPDJunctionName()
{
	var hostname = window.location.hostname;
	var junction = "";
	
	if (hostname == "pddev"
                        || hostname == "pddev.troweprice.com"
			|| hostname == "pdqual" 
                        || hostname == "pdqual.troweprice.com"
                        || hostname == "205.128.228.121"
                        || hostname == "home2"
                        || hostname == "home2.troweprice.com"
                        || hostname == "pdqual.troweprice.com"
			|| hostname == "www2.troweprice.com" 
			|| hostname == "www3.troweprice.com")
	{
		var path = window.location.pathname;
		
		// The path will be /<junction>/<dir or file> so skip the first
		// slash
		var indexOfSecondSlash = path.indexOf("/", 1);
		var junction = path.substring(0, indexOfSecondSlash);
	}	
	return junction;
}

function includeStyle()
{
	if ( navigator.OS == "mac" )
	{
		if (navigator.family == "nn4")
		{
			document.write('<link rel="stylesheet" href="http://www.troweprice.com/css/styleMACns.css">')
		}
		else 
		{
			document.write('<link rel="stylesheet" href="http://www.troweprice.com/css/styleMAC.css">')
		}
	}
	else 
	{
		if (navigator.family == "nn4")
		{
			document.write('<link rel="stylesheet" href="http://www.troweprice.com/css/styleNS.css">')
		}
		else 
		{
			document.write('<link rel="stylesheet" href="http://www.troweprice.com/css/styleIE.css">')
		}
	}
}

includeStyle();


