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"), "");
		}
	}
}


function custom_print() {
        self.print();
}

function AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

if (window.name=='booker_'){
	var pre_fix = document.images? '<BR>':'';
	document.write(pre_fix + '<P align="center">'
	+ 'Use the menu or ctrl/cmd-D now <BR>to bookmark the page then <BR>'
	+ '<A href="javascript:window.close();">close this window</A></p>'
	+ '<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>');
	}
	
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;
}


	

