function showSubmenu(el)
{
submenuTimeout();
var submid = 'sub'+el.id;
var sm = document.getElementById(submid);
if(sm) 
  {
  sm.style.display = 'block';
  top.activeSubmenu = sm.id;
  }
}

function submenuTimeout()
{
if(top.activeSubmenu)
{
var submid = top.activeSubmenu;
}
else 
{
return;
}
var sm = document.getElementById(submid);
if(sm) 
  {
  sm.style.display = 'none';
  top.activeSubmenu = null;
  }
}

function hideSubmenu(el)
{
  if(top.menuTimer) clearTimeout(top.menuTimer);
  top.menuTimer = setTimeout('submenuTimeout()', 5000); 
}

function gallerySetCurrent(ElementID, ImageID, Source)
{
 if(top.activeGalleryButtonId == ElementID) return;
 var Element = document.getElementById(ElementID);
 var imgcnt = document.getElementById(ImageID);

 if(imgcnt) 
  {
  if(top.activeGalleryButtonId)
   {
   var oldel = document.getElementById('active');
   if(oldel) oldel.id = top.activeGalleryButtonId;
   }
  top.activeGalleryButtonId = Element.id;
  Element.id = 'active';
  var nimg = new Image();
  nimg.src = Source;
  imgcnt.src = nimg.src;
  if(Source == '') 
     { 
     imgcnt.style.display='none'; 
     } 
  else { imgcnt.style.display='inline'; }
  }
}


function pageOpen(pageName) {
var winWidth=990;
var winHeight=600;
newUrl=new Array(pageName);
newParam=new Array('width='+winWidth+',height='+winHeight+',scrollbars=no,resizable=no');
newwin=window.open(newUrl,'newwin',newParam);
newwin.self.resizeTo(winWidth,winHeight);
newwin.self.focus();
}



function wOp(imgName) {
var winWidth=560;
var winHeight=380;
newUrl=new Array('/image.shtml?'+imgName)
newParam=new Array('width='+winWidth+',height='+winHeight+',scrollbars=no,resizable=no');
newwin=window.open(newUrl,'newwin',newParam);
newwin.self.resizeTo(winWidth,winHeight);
newwin.self.focus();
}

function wOp2(pageName) {
var winWidth=720;
var winHeight=442;
newUrl=new Array(pageName)
newParam=new Array('width='+winWidth+',height='+winHeight+',scrollbars=no,resizable=no');
newwin=window.open(newUrl,'newwin',newParam);
newwin.self.resizeTo(winWidth,winHeight);
newwin.self.focus();
}






if (navigator.appName == "Netscape")  document.writeln('<style>.mainMenu .menuItem a div{float:none}</style>');
else if  (navigator.appName == "Microsoft Internet Explorer") document.writeln('');
else document.writeln("");











