
// Internet Explorer
// document.all.div_id.style.JS_property_reference = "new_CSS_property_value";

// Older Netscape's (4.7 and earlier)
// document.div_id.JS_property_reference = "new_CSS_property_value";

// Netscape 6.0+ and Opera (and other Mozilla)
// document.getElementById(div_id).style.JS_property_reference = "new_CSS_property_value";

function css() {

	if ( document.getElementById || document.all ) {

		
		var myurl = location.href;

		var startName = myurl.lastIndexOf('/');

		var urlDot = startName - '4';

		var urlDotChar = myurl.charAt( urlDot );
		
		

		startName++;
		
		var endName = myurl.lastIndexOf('.');

		var fileSubname = myurl.substring( startName , endName );
		
//		document.write ( endName + ',  ' + urlDot + ', ' + urlDotChar  + ', ' + urlDotChar );

if ( endName < startName && urlDotChar == "." ) {

		location.href = "index.html";

}
		
		if ( document.getElementById( fileSubname ) ) {
		
			var linkID = document.getElementById( fileSubname );
						
			linkID.style.backgroundColor = "#eeeeee";
			
//			document.write ( 'yes, ' + ' ' + fileSubname );
		
		} 
	
		if ( document.all.fileSubname ) {
		
//			var linkID = document.all.fileSubname;
			
			linkID.style.backgroundColor = "#eeeeee";
			
			document.write ( 'yes, IE, ' + ' ' + fileSubname );
		
		} 
		
		else {

			document.write ( 'no' );

		}

	}
	
}