
var Mac  =  (navigator.userAgent.indexOf("mac")!=-1)  || (navigator.userAgent.indexOf("Mac")!=-1);

var opera = (navigator.userAgent.indexOf('Opera')!=-1);
var msie  =  (navigator.userAgent.indexOf('MSIE')!=-1);
//Gecko takes care of latest netscape browsers
var moz  =  (navigator.userAgent.indexOf('Gecko')!=-1);
//nav4 we'll just object detect Nav4x
var Nav4  = (document.layers);  
//opera default install identifies as MSIE and Opera so lets just make sure :)
if (opera && msie || opera){var opera=1; msie=0;} 
//lets make sure that its IE by making sure its not opera spoofing as IE
if (msie && !opera){msie=1;}

//opera still has some quirks so we'll leave it out of dom for now
//its only very minor quirks but depending on your script you might want to fix the opera quirks by detecting opera separately (your choice :)
if(msie || moz){var dom =1;}





//scrollbar


function doscrolls(){ 
if (msie){
document.body.style.scrollbarFaceColor="#2D4067"; 
document.body.style.scrollbarArrowColor="#fffff5"; 
document.body.style.scrollbarShadowColor="silver"; 
} 
}


//form hightlight
function activatefield(what){
if (msie){
what.style.backgroundColor='#8F9BC2';
what.style.color='black';} 
}

function deactivatefield(what){
if (msie){
what.style.backgroundColor='';
what.style.color='';}
}
