//------------------------------------------------------------------------
// Last updated: 16-December, 2003
// Update by Edwin van den Oosterkamp, The Web Site Hosting Company
//------------------------------------------------------------------------

var win;

// Piece of script for the hovering effect

// Reserve memory for the images.
MenuItemHvr0 = new Image();
MenuItemHvr1 = new Image();
MenuItemHvr2 = new Image();
MenuItemHvr3 = new Image();
MenuItemHvr4 = new Image();
MenuItemOff0 = new Image();
MenuItemOff1 = new Image();
MenuItemOff2 = new Image();
MenuItemOff3 = new Image();
MenuItemOff4 = new Image();

// Preload the images.
ImageLocation	 = "http://www.websitehost.co.uk/images/buttons/"
MenuItemOff0.src = ImageLocation + "hosting.gif";
MenuItemHvr0.src = ImageLocation + "hosting_hvr.gif";
MenuItemOff1.src = ImageLocation + "ordering.gif";
MenuItemHvr1.src = ImageLocation + "ordering_hvr.gif";
MenuItemOff2.src = ImageLocation + "support.gif";
MenuItemHvr2.src = ImageLocation + "support_hvr.gif";
MenuItemOff3.src = ImageLocation + "design.gif";
MenuItemHvr3.src = ImageLocation + "design_hvr.gif";
MenuItemOff4.src = ImageLocation + "contact.gif";
MenuItemHvr4.src = ImageLocation + "contact_hvr.gif";

function MouseOver( ItemNr )
{
	eval( "document.images[" + (ItemNr+1) + "].src = MenuItemHvr" + ItemNr + ".src" );
}

function MouseOut( ItemNr )
{
	eval( "document.images[" + (ItemNr+1) + "].src = MenuItemOff" + ItemNr + ".src" );
}

function OpenCertDetails()
{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=GBMDOR2-3', 'anew', config='height=530,width=530,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}

function s_open( theURL, winName, features )
{
	var win_x = screen.width  / 2 - 150;
	var win_y = screen.height / 2 - 75;

	win = window.open( theURL, winName, features + ',screenX=' + win_x + ',screenY=' + win_y + ',left=' + win_x + ',top=' + win_y );
}

function s_close()
{
   if ( win )
   {
      win.close();
   }
}

function MM_openBrWindow( theURL, winName, features )
{
  window.open( theURL, winName, features );
}
