if (navigator.appName == "Microsoft Internet Explorer")
{  msIE=true; }
else
{  msIE=false; }

function viewphoto(photosrc)
{
 photosrc="/day_off/show_photos.html?photourl="+photosrc;
 window.open(photosrc,"photowindow","toolbar=no,menubar=no,scrollbar=no,width=580,height=520");
}

function chbg(sender,state)
{
 if (msIE)
 {
  if (state)
  {
   sender.parentElement.style.backgroundImage="url('/images/system/button1.gif')";
   sender.parentElement.style.backgroundColor='White';
  }
 else
  {
   sender.parentElement.style.backgroundImage="url('/images/system/button.gif')";
   sender.parentElement.style.backgroundColor='#D3F5D0';
  }
 }
}

function rate(action)
{
 if (action == 'rate')
 {
  document.rateform.action.value='add';
 }
 else
 {
  document.rateform.action.value='';
 }
 document.rateform.submit();
}

var netscape;

if (navigator.appName == 'Netscape')
{
 netscape = 'yes';
}

function hide_menu()
{
 if (netscape == 'yes')
 {
  document.menu01.visibility = 'hide';
  document.menu02.visibility = 'hide';
  document.menu03.visibility = 'hide';
  document.menu04.visibility = 'hide';
  document.menu05.visibility = 'hide';
  document.menu06.visibility = 'hide';
  document.menu07.visibility = 'hide';
  document.menu08.visibility = 'hide';
  document.menu09.visibility = 'hide';
 }
 else
 {
  menu01.style.visibility = 'hidden';
  menu02.style.visibility = 'hidden';
  menu03.style.visibility = 'hidden';
  menu04.style.visibility = 'hidden';
  menu05.style.visibility = 'hidden';
  menu06.style.visibility = 'hidden';
  menu07.style.visibility = 'hidden'; 
  menu08.style.visibility = 'hidden'; 
  menu09.style.visibility = 'hidden'; 
 }
}

function show_menu(id)
{
 
 hide_menu();
 
 if (netscape == 'yes')
 {
  document.eval(id).visibility = 'show';
 }
 else
 {
  eval(id).style.visibility = 'visible';
 }
}