function BlurLinks(){
  lnks=document.getElementsByTagName('a');
  for(i=0;i<lnks.length;i++) {
    lnks[i].onfocus=new Function("if(this.blur)this.blur()");
  }
}

onload = BlurLinks;

function on(id) {
  document.getElementById("nav"+id).style.color = "#000000";
}

function off(id) {
  document.getElementById("nav"+id).style.color = "#e6e6e6";
}

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);

var win=null;

function voteWindow()
{
	NewWindow('about:blank', 'vote', '640', '400', 'center', 'front');
}

function NewWindow(mypage,myname,w,h,pos,infocus){
  if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
  if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
  else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
  settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
  win.focus();
}

function marksite(site) {
//alert(typeof(document.getElementById(site).color));
  if (document.getElementById(site)) {
    document.getElementById(site).style.fontWeight = "bold";
    document.getElementById(site).style.backgroundColor = "#EFEFEF";
    document.getElementById(site).style.paddingLeft = "14px";
  }
}
