sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function NewWindow(d,l,j,c,e,a,g,k) {
   if(typeof(g)=="undefined"){
      g=""
   }
   else{
      if(typeof(a)=="undefined"){
         a=""
      }
      else{
         if(typeof(k)=="undefined"){
            k=""
         }
      }
   }
   convertPage=XEQueryString(a,g,k);
   d=d+convertPage;
   var f=(screen.width-j)/2;
   var b=(screen.height-c)/2;
   winprops="height="+c+",width="+j+",top="+b+",left="+f+",scrollbars="+e+",resizable";
   win=window.open(d,l,winprops);
}

function XEQueryString(c,d,a){
   var b="";
   if(c==undefined){
      amount="";
      from="";
   }
   else{
      splitArray=c.split(" ");
      amount=splitArray[0];
      from=splitArray[1];
   }
   if(amount!=""&&from!=""&&d!=""&&a!=""){
      b="Amount="+amount+"&From="+from+"&To="+d+"&template="+a;
   }
   else{
      b="";
   }
   return b;
}


