/* ********************************************************** */
// a bunch of javascript for browser detection for use in writing css

// run browser detection, write css line
// these values (MSIE6,Netscape5,Netscape4,Mozilla,Opera6) are the css URLs
function br_det(cssI6,cssN5,cssN4,cssMO,cssO7){
////	alert('here we go');
	if (det_I6(cssI6)) return null;
	if (det_N5(cssN5)) return null;
	if (det_N4(cssN4)) return null;
//	if (det_MO(cssMO)) return null;
	if (det_O7(cssO7)) return null;
//	alert('All done.  Was it good for you?');
}

//detect OPERA 7
function det_O7(cssO7){
	if ((navigator.userAgent.indexOf("Opera/7")!=-1)){
		document.writeln('<link rel="stylesheet" href="'+cssO7+'" type="text/css">');
	return true;
	}
}
//detect MSIE 6
function det_I6(cssI6){
	if ( (navigator.appVersion.indexOf("MSIE")!=-1) && (navigator.userAgent.indexOf("Opera 7")==-1) ){
		document.writeln('<link rel="stylesheet" href="'+cssI6+'" type="text/css" />');
		return true;
	}
}

//detect Netscape 5+
function det_N5(cssN5){
	if ( navigator.appName=="Netscape" && parseFloat(navigator.appVersion)>=5.0 ) {
		document.writeln('<link rel="stylesheet" href="'+cssN5+'" type="text/css" />');
		return true;
	}
}

//detect Nescape 4+
function det_N4(cssN4){
	if ( navigator.appName=="Netscape" && ( 4 <= parseFloat(navigator.appVersion)<=5.0 ) ) {
		document.writeln('<link rel="stylesheet" href="'+cssN4+'" type="text/css" />');
		return true;
	}
}