function change(theObj){
	if(document.all){
	theObj.style.backgroundColor = "#3366CC";
	}
}
function revert(theObj){
	if(document.all){
	theObj.style.backgroundColor = "#ccccff";
	}
}
function JumpTo()
{	if (form1.country.value != "")
	{	location.href=form1.country.value;
	}
}
function OpenWinNews(thePage)
{
var theWidth = parseInt(screen.width / 2 - 225)
var theParams = "width=420, height=500, scrollbars=yes, toolbar=no, menubar=yes, top=120, resizable=yes, left=" + theWidth
if (navigator.appName == "Microsoft Internet Explorer")
window.open(thePage,'News', theParams);
else
window.open(thePage,'News');
}
function OpenWin()
{
	window.open('choose_boat_type.asp','Boat','width=200,height=157');
}

// Show and hide layer
var activeLayer = null;

function toggleLayer(menuName)
{
	if(activeLayer)
		activeLayer.visibility = "hidden";

	if(menuName)
	{
		if(document.layers)
			var obj= eval('document.' + menuName);
		else if(document.all)
			var obj = eval(menuName + '.style');
		else if(document.getElementById)
			var obj = document.getElementById(menuName).style;
		obj.visibility = "visible";
		activeLayer = obj;
	}
		
	return false;
}

if(document.layers)
{
	window.captureEvents(Event.MOUSEUP);
	window.onmouseup = mouseclick;
}
else if(document.all || document.getElementById)
	document.onmouseup = mouseclick;

function mouseclick()
{
	toggleLayer();
}

function MM_showHideLayers() 
{ //v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) 
    { theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } 
    else if (document.all != null) 
    { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
	} 
  }
}

