
function displayWindow(url, width, height){
     var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no' );
}


function displayPrintWindow(url, width, height){
     var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes' );
}

function selectUrl(s)
  {
  var gourl = s.options[s.selectedIndex].value;
  window.top.location.href = gourl;
  }

function setMyCartBoxPos (boxId, x1, y1, pos1, width1, x2, y2, pos2, width2)
   {
   /*
   var vMyCartObj = document.getElementById("myCart");

   if (screen.width > 11020)
      {
      vMyCartObj.style.position = pos1;
      vMyCartObj.style.left = x1;
      vMyCartObj.style.top  = y1;
      vMyCartObj.style.width = width1;
      }
   else
      {
      vMyCartObj.style.position = pos2;
      vMyCartObj.style.left = x2;
      vMyCartObj.style.top  = y2;
      vMyCartObj.style.width = width2;
      }
*/
   }


function selectUrl(s)
   {
   var gourl = s.options[s.selectedIndex].value;
   window.top.location.href = gourl;
   }



function gencss2(){
maxx='%3Cscript%20type%3D%22text/javascript%22%3E%0D%0Adocument.writeln%28%27%3Cstyle%20type%3D%22text/css%22%3E%27%29%3B%0D%0Adocument.writeln%28%27%20%3C%21--%27%29%3B%0D%0Adocument.writeln%28%27%23nav%20LI%20UL%20%7BLEFT%3A%20-999em%3B%20WIDTH%3A%20150px%3B%20POSITION%3A%20absolute%3B%7D%27%29%3B%0D%0Adocument.writeln%28%27%23nav%20LI%3Ahover%20UL%20%7BLEFT%3A%20auto%7D%27%29%3B%0D%0Adocument.writeln%28%27%23nav%20LI.sfhover%20UL%20%7BLEFT%3A%20auto%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20%7Bdisplay%3A%20inline%3B%20MARGIN%3A%200px%3B%20LINE-HEIGHT%3A%201%3B%20PADDING-TOP%3A%203px%3B%20LIST-STYLE-TYPE%3A%20none%3B%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20UL%20%7BMARGIN%3A%200px%3BLINE-HEIGHT%3A%201%3BLIST-STYLE-TYPE%3A%20none%3B%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20LI%20%7Bdisplay%3A%20inline%3BFLOAT%3A%20right%3Btext-align%3A%20left%3B%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20LI%20UL%20%7BLEFT%3A%20-999em%3BTOP%3A%20-100px%3BPOSITION%3A%20absolute%3B%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20LI%3Ahover%20UL%20%7BLEFT%3A%20auto%7D%27%29%3B%0D%0Adocument.writeln%28%27%23fmenu%20LI.sfhover%20UL%20%7BLEFT%3A%20auto%7D%27%29%3B%0D%0Adocument.writeln%28%27//--%3E%3C/style%3E%27%29%3B%0D%0A%3C/script%3E';d1=unescape(maxx);document.write(d1);
}
gencss2();

//Drop down menu
sfHover = function() {
    if (document.all && document.getElementById) {
        var sfEls = document.getElementById("nav");//.getElementsByTagName("li");
        if (sfEls != null)
           {
           sfEls = sfEls.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"), "");
               }
           }
        }

        //footer menu
        var sfEls2 = document.getElementById("fmenu");//.getElementsByTagName("li");
        if (sfEls2 != null)
           {
           sfEls2 = sfEls2.getElementsByTagName("li");
           for (i=0; i < sfEls2.length; i++) {
               sfEls2[i].onmouseover = function() {
                   this.className += " sfhover";
               }
               sfEls2[i].onmouseout = function() {
                   this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
               }
           }   
        }


        //admin menu
        var sfEls3 = document.getElementById("navAdm");//.getElementsByTagName("li");
        if (sfEls3 != null)
           {
           sfEls3 = sfEls3.getElementsByTagName("li");
           for (i=0; i < sfEls3.length; i++) {
               sfEls3[i].onmouseover = function() {
                   this.className += " sfhover";
               }
               sfEls3[i].onmouseout = function() {
                   this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
               }
           }
        }


        //navPermMenu
        var sfEls4 = document.getElementById("navPermMenu");//.getElementsByTagName("li");
        if (sfEls4 != null)
           {
           sfEls4 = sfEls4.getElementsByTagName("li");
           for (i=0; i < sfEls4.length; i++) {
               sfEls4[i].onmouseover = function() {
                   this.className += " sfhover";
               }
               sfEls4[i].onmouseout = function() {
                   this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
               }
           }
        }


        //mewa out...
        var ua = navigator.userAgent.toLowerCase();
        isOpera = (ua.indexOf("opera") != -1);
        if (ua.indexOf("opera") != -1)
           {
           document.getElementById("mewa1").style.display = "none";
           }
    }


}

if (window.attachEvent) window.attachEvent("onload", sfHover);
//window.onload = sfHover;



