function showhide(var1, var2)
{
	document.getElementById(var1).style.visibility = 'visible';
	document.getElementById(var2).style.visibility = 'hidden';
}

function menu_msover(obj)
{
  var menu_name = "m_"+obj.id.substr(3);
  var menu_obj = document.getElementById(menu_name);
  if (!menu_obj)  return;
  menu_obj.style.visibility = "visible";
}

function menu_msout(obj)
{
  var menu_name = "m_"+obj.id.substr(3);
  var menu_obj = document.getElementById(menu_name);
  if (!menu_obj)  return;
  menu_obj.style.visibility = "hidden";
}

function fix_menus()
{
  if(document.body == null) return;
  menu_x = 0;
  var win_w = document.body.offsetWidth;
  menu_x = 125;

  for (var i = 0; i <= 11; i++)
  {
    var obj = document.getElementById("m_"+i);
    if (obj == null)  continue;
    obj.style.right = menu_x+"px";
    if (i == 11)
    {
      obj.style.top = "336px";
    }
  }
}

function openWindow3 (url, width, height, winName) {

    	var para = "toolbar=no,directories=no,menubar=no,width=" + width + ",height=" + height + ",location=no,scrollbars=yes,resizable=yes,status=yes";

        TWN=window.open(url, 'winName', para );
	TWN.focus();
}

function show_span(this_span)
{
var current_span = "spanX";

  if(current_span == this_span) return;
  document.getElementById(this_span).style.visibility = 'visible';
  document.getElementById(current_span).style.visibility = 'hidden';
  current_span = this_span;
}

function cycleAds()
{
    if (document.images)
    {
        if (document.adBanner.complete)
        {
            if (++thisAd == adImages.length)
                thisAd = 0;

            document.adBanner.src = adImages[thisAd];
        }
    }

    // change to next banner every 15 seconds
    setTimeout("cycleAds()", 4300);
}

// This function is used to direct the user to the website when
// the user clicks on a particular banner image.

function gotoAd()
{
    document.location.href = adURLs[thisAd];
}