

/*  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();
}





/* -----------------------------------------------
   Know Your Rights: Quiz
   ----------------------------------------------- */
var numAnswers =2;
var $imLoc     ='';
  /* Init Mock-Radio Buttons */
if (document.images) {
 qbt0 =new Image(); qbt0.src ="/voy/images/bt_radio_0.gif";
 qbt1 =new Image(); qbt1.src ="/voy/images/bt_radio_1.gif";
}
function showNote(element,bt){
 for (i=1; i<=numAnswers; i++){
  hideElement("note"+i);
 }
 showElement(element);
 imageOn(bt);
}
function showElement(element){
 if (element){
  if (document.layers){
   document.eval(element).display='block';
  }else{
   document.getElementById(element).style.display='block';
  }
 }
}
function hideElement(element){
 if (element){
  if (document.layers){
   document.eval(element).display='none';
  }else{
   document.getElementById(element).style.display='none';
  }
 }
}
function imageOn(theimg){
 imageOff($imLoc);
 if (document.images){
  document.images[theimg].src =qbt1.src;
 }
 $imLoc =theimg;
}
function imageOff(theimg){
 if (document.images && $imLoc !=''){
  document.images[theimg].src =qbt0.src;
 }
}


