﻿
/*  makes text in search text box disappear*/
var navname,navvers,newsnavc=0,sidebarcnt;
navname=navigator.appName;
navvers=parseInt(navigator.appVersion);
js_ok = ((navname == "Microsoft Internet Explorer") && (navvers >= 4 )) || ((navname == "Netscape") && (navvers >= 4 ));
function inputswap(me,def,setto) {
 if(js_ok) {
  if(me.value==def) {
   me.value=setto;
  }
 }
}
/* Pop-up definition*/
var newWin = null;
function popUp(strURL, strType, strWidth, strHeight) {  
 if (newWin != null && !newWin.closed)    
  newWin.close();  
 var strOptions="";  
 
 if (strType=="fixednooptions")    
  strOptions="height="+strHeight+",width="+strWidth;  
 if (strType=="resizablenooptions")    
  strOptions="resizable,height="+strHeight+",width="+strWidth;
  
 if (strType=="fixedmenuscroll")    
  strOptions="menubar,scrollbars,"+"height="+strHeight+",width="+strWidth;  
 if (strType=="resizablemenuscroll")    
  strOptions="menubar,scrollbars,"+"resizable,height="+strHeight+",width="+strWidth;
 
 if (strType=="fixedtoolsmenuscroll")    
  strOptions="toolbar,menubar,scrollbars,"+"height="+strHeight+",width="+strWidth;  
 if (strType=="resizabletoolsmenuscroll")    
  strOptions="toolbar,menubar,scrollbars,"+"resizable,height="+strHeight+",width="+strWidth;
  
 if (strType=="fixedtoolslocationmenuscroll")    
  strOptions="toolbar,menubar,scrollbars,"+"location,height="+strHeight+",width="+strWidth;  
 if (strType=="resizabletoolslocationmenuscroll")    
  strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;
  
 if (strType=="resizablelocationmenuscroll")    
  strOptions="menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;
 
 newWin = window.open(strURL, 'newWin', strOptions);  
 newWin.focus();
}
/* Browser detect definition*/
function browser_detect () {
var name = navigator.appName; 
var version = parseInt(navigator.appVersion); 
if (name=="Netscape" && version <= 4) 
 document.write ("You are seeing this message because you are using an older browser. A more recent browser will provide a better user experience.");
}



