function chkVer(imagename,objectsrc)
{
var n=navigator.appName
var v=parseInt(navigator.appVersion)
var browsok=((n=="Netscape")&&(v>=3))
var browsok2=((n=="Microsoft Internet Explorer")&&(v>=4))
if ((browsok)||(browsok2))
document.images[imagename].src=eval(objectsrc+".src")
}

function JavaMenuCSS(elemId) {
    if (document.getElementById(elemId)) {
      var navroot = document.getElementById(elemId);
      var lis=navroot.getElementsByTagName("LI");
      for (i=0; i<lis.length; i++) {
        for (j=0; j<lis[i].getElementsByTagName("UL").length; j++) {
          lis[i].onmouseover = function() {
            this.getElementsByTagName("UL")[j].style.visibility = 'visible';
          }
          lis[i].onmouseout = function() {
            this.getElementsByTagName("UL")[j].style.visibility = 'hidden';
          }
        }
      }
    }
  }

function OpenWindow(url,width,height)
{

  var mwin;
  var margins = 10;
  var xwidth = width + margins;
  var yheight = height + margins;

  var centerx = (screen.width/2)-(width/2);
  var centery = (screen.height/2)-(height/2);

    var wf = "";	

	wf = wf + "width=" + xwidth;

	wf = wf + ",height=" + yheight;

	wf = wf + ",resizable=no";

	wf = wf + ",scrollbars=no";

	wf = wf + ",menubar=no";

	wf = wf + ",toolbar=no";

	wf = wf + ",directories=no";

	wf = wf + ",location=no";

	wf = wf + ",status=yes";


  mwin = window.open("popup.php?pict="+url+"&x="+width+"&y="+height, "Detail", wf);
  mwin.resizeTo( xwidth+8, yheight+58)
  mwin.moveTo(centerx,centery);
  mwin.focus()

}