// JavaScript function for unload CSS when browsing with Netscape6

function disableStyleSheet( n ){
	if( document.styleSheets ){
		// disable style sheet
		document.styleSheets[n].disabled=true;
	}
}

function disableStyleSheetsNS6(){
	// mozilla browser
	if( "Netscape" ==  navigator.appName ){
		// Netscape6
		if( navigator.userAgent.lastIndexOf("Netscape6") != -1 ){
			// disable all styleSheets
			for(var i=0; i < document.styleSheets.length; i++ ){
				disableStyleSheet(i);
			}
		}
	}
}

// attach functions to onload event
if (window.attachEvent) {
	window.attachEvent('onload', disableStyleSheetsNS6 );
} else if (window.addEventListener){
	window.addEventListener('load', disableStyleSheetsNS6, true);
}

