<!--

function hover(arg)
{
  var obj = document.getElementById(arg);

  if(obj != null){
     var submenu = obj.getElementsByTagName('div');
     var submenu_style = submenu[0].style;
     if( (submenu_style.display=='none') || (submenu_style.display=='') )
        submenu_style.display = 'block';
     else
        submenu_style.display = 'none';

  }
}

var newWin = null;

function closeWin()
{
        if (newWin != null){
                if(!newWin.closed)
                        newWin.close();
        }
}

function showPopup(strURL,strType,strHeight,strWidth)
{
        closeWin();

        var strOptions="";
        if (strType=="console")
                strOptions="resizable,height="+strHeight+",width="+strWidth;
        if (strType=="fixed")
                strOptions="status,height="+strHeight+",width="+strWidth;
        if (strType=="elastic")
                strOptions="toolbar=no,menubar=no,scrollbars,location=no,resizable=no,titlebar=no,height="+strHeight+",width="+strWidth;

        newWin = window.open(strURL, 'newWin', strOptions);
        newWin.focus();
}

function getViewportWidth() {
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth
 }

// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth
 }

 // older versions of IE

 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth
 }
 return viewportwidth;
}

function getViewportHeight() {
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

 if (typeof window.innerWidth != 'undefined')
 {
      viewportheight = window.innerHeight
 }

// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportheight = document.documentElement.clientHeight
 }

 // older versions of IE

 else
 {
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 return viewportheight;
}

//-->

