// JavaScript Document
function blurAnchors(){
  if(document.getElementsByTagName){
    var a = document.getElementsByTagName("a");
    for(var i = 0; i < a.length; i++){
      a[i].onfocus = function(){this.blur()};
    }
  }
}
window.onload = blurAnchors;


// Toggle code
function togggle( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
  			if (target.style.display == "none"){
  				target.style.display = "";
  			} else {
  				target.style.display = "none";
  			}
  	}
}

function togggleHide( targetId ){
  if (document.getElementById){
  		target = document.getElementById( targetId );
		target.style.display = "none";
  }
}


// pop up
function openWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}



// Jump Menu
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->



//lightwindow code

function _ttt_popup(url,winname,w,h,feat)
	{
	 if (!(isNaN(w) || isNaN(h)))
	 {
	  var adjust = 20;
	  var x=parseInt((screen.width-w)/2);
	  var y=parseInt(((screen.height-h)/2-adjust));
	  if (x<0) x=0;
	  if (y<0) y=0;
	  
	  if (feat!=null && feat!="")
	  {
	   feat=","+feat;
	  }
	  else
	  {
	   feat="";
	  }
	  feat="left="+x+",top="+y+",width="+w+",height="+h+feat;
	 }
	 var this_win = window.open(url,winname,feat);
	 this_win.focus();
	}
	
	


