
var newWindow;

function newwin(location,name,w,h,resize,scroll) {


   //var newWindow;
   var scrW = (screen.width/2)-(w/2);
   var scrH = (screen.height/2)-(h/2);

   var atts = 'left=' + scrW + ',top=' + scrH +',width=' + w;
   atts = atts + ',height=' + h + 'channelmode=0,dependent=0,';
   atts = atts + 'directories=0,location=0,menubar=0,';
   atts = atts + 'resizable=' + resize + ',scrollbars=' + scroll;
   atts = atts + ',status=0,toolbar=0';

   window.resizeTo(800,600);
   window.moveTo((screen.width/2)-(800/2), (screen.height/2)-(600/2));


   newWindow = window.open(location, name, atts);
   
}



function videoPopUp(location,name,w,h,resize,scroll) {


   //var newWindow;
   var scrW = (screen.width/2)-(w/2);
   var scrH = (screen.height/2)-(h/2);

   var atts = 'left=' + scrW + ',top=' + scrH +',width=' + w;
   atts = atts + ',height=' + h + 'channelmode=0,dependent=0,';
   atts = atts + 'directories=0,location=0,menubar=0,';
   atts = atts + 'resizable=' + resize + ',scrollbars=' + scroll;
   atts = atts + ',status=0,toolbar=0';


   newWindow = window.open(location, name, atts);
   
}




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

