var string_start = ( navigator.appVersion.indexOf( 'MSIE' ) + 5 );

	/* if the browser is Microsoft Internet Explorer,
	this checks the appVersion string for the start po
	sition of the version number */

var string_end = ( navigator.appVersion.indexOf( 'MSIE' ) + 6 );

	/* if the browser is Microsoft Internet Explorer,
	this checks the appVersion string for the end posi
	tion of the version number */

var version_from_string = parseInt( navigator.appVersion.substring( string_start , string_end ) );

	/* if the browser is Microsoft Internet Explorer,
	this gets the browser's version number from the ap
	pVersion string */

var ie5 = ( navigator.appVersion.indexOf( 'MSIE' ) > -1 && version_from_string < 6 );
var ie6 = ( navigator.appVersion.indexOf( 'MSIE' ) > -1 && version_from_string < 7 );
var nn6 = ( navigator.appName == 'Netscape' && parseInt( navigator.appVersion ) > 4 );
var macie = ( navigator.userAgent.indexOf('Mac') > -1 );
var safari = ( navigator.userAgent.indexOf('Safari') > -1 );

document.write( '<style media="screen" type="text/css">' );
document.write( '@import "css/tag.css";@import "css/class.css";@import "css/layout.css";' );
if ( ie5 )
{
	document.write( '@import "css/ie5.css";' );	
}
else if ( nn6 || window.opera )
{
	document.write( '@import "css/nn6.css";' );	
}
if ( macie )
{
	document.write( '@import "css/macie.css";' );	
}
if ( safari )
{
	document.write( '@import "css/safari.css";' );	
}
document.write( '</style>' );