/*-------------BEGIN VERSION CONTROL INFO-------------
	attach_browser_style_sheet.js
	attaches a style sheet customized for IE or NC browsers
	ver 1.0 4-12-04
	
	NOTE: must be used in conjunction with "browserdetect.js", 
	which loads the browser and OS information into bolean 
	variables named: "ie", "nc", "mac", ans "win".
	
	written by Brian Sarfatty, brian.sarfatty@sbcglobal.net
	
	see notes re each style sheet assignments 
  --------------END VERSION CONTROL INFO---------------*/
  attachBrowserStyleSheet();
  
function attachBrowserStyleSheet() {
	//if IE for Mac, attach a style sheet that uses original names for embeded font
	//references and does NOT provide any font family alternates for the embeded fonts 
	//(see WEFT III release notes, "known issues" section)
	if ( (ie) && (mac) ) {
		attachStyleSheet("resources/stylesIEMac.css");
	
	// for netscape 4.x, use special style sheet with absolute font sizes
	} else if ( (nc) && (ver < 5) ) {
		attachStyleSheet("resources/stylesNC4x.css");
		
	//otherwise, use IE PC and Netscape 6+ style sheet that provies alternate fonts and 
	//renames referecnes to font name (for testing purposes, 
	//see http://www.microsoft.com/typography/web/embedding/weft3/weft05.htm) 
	} else {
		attachStyleSheet("resources/styles.css");
	}
}

function attachStyleSheet (filename) {
//	alert('<link href="'+filename+'" rel="stylesheet" type="text/css">');
	document.write('<link href="'+filename+'" rel="stylesheet" type="text/css">');
}
