function clearField(field) {
// Check if field contains the default value
if (field.value == field.defaultValue) {
// It does, so clear the field
field.value = "";
}
}

function checkField(field) {
// Check if user has entered information in the field
if (field.value == "") {
// User has not entered anything
field.value = field.defaultValue;
}
}

/* Simple dropdown menu 
* By Michiel van Harten - Sites and Such Ltd - www.sitesandsuch.com - 20030331
* Based on a script used at www.hesketh.com
*/


var menu_visible      = false;  // may be set to name of visible menu
var menu_timer        = false;  // stores timer id for delay_hide_menu
var menu_delay        = 300;  // ms until menu is hidden after mouseout 


function button_over(b) {
  stop_everything();
  if(menu_visible) {
    hide_menu(menu_visible);
  }

  show_menu(b);
}

function button_out(b) {
  delay_hide_menu(b);
}

function menu_over(b) {
  stop_everything();
}

function menu_out(b) {
  delay_hide_menu(b);
}

function delay_hide_menu(m) {
  stop_everything();
  menu_timer = setTimeout("hide_menu(\""+m+"\");", menu_delay);
}

function stop_everything() {
  if(menu_timer > 0) {
    clearTimeout(menu_timer);
    menu_timer = 0;
  }
}

function show_menu(m) {
  // hide any other menus that are visible
  if(menu_visible > 0) {
    hide_menu(menu_visible);
  }
  show_layer(m+"menu");
  menu_visible = m;
}

function hide_menu(m) {
  hide_layer(m+"menu");
  menu_visible = false;
}

function show_layer(l) {
  var tmp = '';
  if(document.getElementById) {
    document.getElementById(l).style.visibility = "visible";
  } else if(document.all) {
    tmp = 'all.'+l+'.style';
    eval('document.'+tmp+'.visibility="visible";');
  } else {
    tmp = l;
    eval('document.'+tmp+'.visibility="visible";');
  }
}

function hide_layer(l) {
  var tmp = '';
  if(document.getElementById) {
      document.getElementById(l).style.visibility = "hidden";
  } else if(document.all) {
    tmp = 'all.'+l+'.style';
    eval('document.'+tmp+'.visibility="hidden";');
  } else {
    tmp = l;
    eval('document.'+tmp+'.visibility="hidden";');
  }
}


function PlaceFlash()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0"width="760" height="140" id="home" align="">\n');
    document.write('<param name="movie" value="home.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="bgcolor" value="#FFFFFF" />\n');
    document.write('<embed src="home.swf" quality="high" bgcolor="#FFFFFF"  width="760" height="140" name="home" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
    document.write('</object>\n');
}
