//Created 11/20/01 Kenneth Fly http://hsc.usf.edu/~kfly
//The function is used to determine what browser the client is using
//and returns a number based on what type of browser is being used.
//returns 1 for IE, 2for N6,3 for N4 and others. The function does not
//require any variables to be passed to it.
function browserdetect(){
//returns 1 for IE, 2for N6,3 for N4 and others
if(navigator.appName=="Microsoft Internet Explorer"){return 1;}
else if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==5){return 2;}
else{return 3;}
}