// JavaScript Document

$(document).ready(function() {
		initSearchForm();
		sfHover();
	 // open external links in new window
	 $("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");  
});


function sfHover() {
	// for IE6
	  $("#subnav li").mouseover(function(){
     $(this).addClass("sfhover");
    }).mouseout(function(){
      $(this).removeClass("sfhover");
    });
	
}


function initSearchForm() {
 $("#s").click(function () { if( $("#s").attr("value")=='Search site' ) { $("#s").attr("value", ""); }     }); 
}

var popUpWin=0;
function popMap() {
	
var URLStr='/find';
var left='100';
var top='100';
var width='800';
var height='600';
	
if(popUpWin) {  if(!popUpWin.closed) popUpWin.close();  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


mc=new Array()
mc[0]='32302323585034622357302424552350503032235950596031335730333444';

function mc2(e) {
op='';chars='st2-n74opr.uyqz9m:0vwk_5x16hjab3igcdel8@f'; m='39525560243040';
inp=m+mc[e];for(i=0; i<inp.length; i+=2) {id=parseInt(inp.substr(i,2));op+=chars.charAt(id-23);}
window.location.href= op;
}