var os,brVer;
var brName=navigator.appName.charAt(0);

function checkBrowser1(){
	mybrVer=navigator.appVersion;
	myNum=mybrVer.indexOf('MSIE ');
	myStart=myNum+5;
	myEnd=myNum+6;

	if(mybrVer.indexOf('Win')>0){os='Win'}
	else if(mybrVer.indexOf('Mac')>0){os='Mac'}

	if(myNum>0){brVer=mybrVer.substring(myStart,myEnd)}
	else{brVer=mybrVer.charAt(0)}
}

checkBrowser1();

var preloadFlag = false;

function def_preloadImages(pos) {
img_data[80].src = pos+"images/bt_english_off.gif";
img_data[81].src = pos+"images/bt_english_on.gif";
}

function rov(num,name){
if (document.images && (preloadFlag == true)) {
document.images[name].src=img_data[num].src;
return true;
}
}

function f_sbm(f_name){
document.forms[f_name].submit();
}

function checkBrowser(){
with(navigator){
_os=platform;
_ver=appVersion;
_agent=userAgent;
}

_img=document.images ? true : false;
_lay=document.layers ? true : false;
_all=document.all ? true : false;
_get=document.getElementById ? true : false;

_bro=(window.opera ? 'OP' : (_all ? 'IE' : (_get ? 'NN6' : (_lay ? 'NN' : 'OT'))));
}

function writeCss(){
if(!(_lay && _ver.indexOf('4.0',0) > -1)){
document.write('<style type="text/css"><!--');
for (var i=0; i<writeCss.arguments.length; i++) {
document.write(eval(arguments[i]));
}
document.write('--></style>');
}
}

function setNN4BGBottom(){
if(_lay){
var _bottomY=document.layers['bottomcolor'].pageY;
var _winHeight=window.innerHeight;
var _bottomHeight=_winHeight-_bottomY;
if(_bottomHeight>0){
document.layers['bottomcolor'].clip.bottom=_bottomHeight;
}
}
return true;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
