<!--hide Script

// -----------------------------------------
// (c) Stephan Sigloch (sts@sigloch.com)
// -----------------------------------------

// Auto-Abfrage ob im Frameset geladen
//if (top.frames.length > 1) { top.location.href="http://www.motoryachtschule.de"; }

function setPointer(theRow, thePointerColor)
{   
	if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined')
	{
		return false;
	}
	var row_cells_cnt = theRow.cells.length;
	for (var c = 0; c < row_cells_cnt; c++)
	{
		theRow.cells[c].bgColor = thePointerColor;
	}
	return true;
}

// onMouseOver Bilder
function getAppVersion() {
 appname= navigator.appName;
 appversion = navigator.appVersion;
 majorver = appversion.substring(0, 1);
 if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;
 if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
  return 0;
}

function swtch(num, imgname) {
  if (getAppVersion()) {
 	document[imgname].src = img[num].src;
  	}
}
imgsrc = new Array();
imgsrc[0] = "graphics/g0.gif";
imgsrc[1] = "graphics/anker.gif";


if (getAppVersion()) {
  img = new Array();
  for (i = 0; i < imgsrc.length; i++) {
 img[i] = new Image();
 img[i].src = imgsrc[i];
  }
}

//new window
var newwin;
function popup(url,name,eigenschaften)
{
newwin = window.open(url,name,eigenschaften);
setTimeout('newwin.focus();',200);
}

// Statustext der Seite --->
window.defaultStatus='cheapairportparking.co.uk';
function stext(text) { window.status=text; }


function initMaps() {
	if (document.getElementById) {
    var mapIds = initMaps.arguments;    // pass string IDs of containing map elements
    var i, j, area, areas;
    for (i = 0; i < mapIds.length; i++) {
      areas = document.getElementById(mapIds[i]).getElementsByTagName("area");

      for (j = 0; j < areas.length; j++) {  // loop thru area elements
         area = areas[j];
         //area.onmousedown = imgSwap;    // set event handlers
         area.onmouseout = imgSwap;
         area.onmouseover = imgSwap;
         area.onmouseup = imgSwap;
      }
    }
	}
}

function imgSwap(evt) {
	evt = (evt) ? evt : event;                   // equalize event models
	var elem = (evt.target) ? evt.target : evt.srcElement;
	var imgClass = elem.parentNode.name;         // get map element name
	var coords = elem.coords.split(",");         // convert coords to clip
	var clipVal = "rect(" + coords[1] + "px " +
	                       coords[2] + "px " +
	                       coords[3] + "px " +
	                       coords[0] + "px)";
	var imgStyle;
	
	switch (evt.type) {
	  case "mousedown" :
	     //imgStyle = document.getElementById(imgClass + "Down").style;
	     imgStyle.clip = clipVal;
	     imgStyle.visibility = "visible";
	     break;
	  case "mouseout" :
	     document.getElementById(imgClass + "Over").style.visibility = "hidden";
	     //document.getElementById(imgClass + "Down").style.visibility = "hidden";
	     break;
	  case "mouseover" :
	     imgStyle = document.getElementById(imgClass + "Over").style;
	     imgStyle.clip = clipVal;
	     imgStyle.visibility = "visible";
	     break
	  case "mouseup" :
	     //Document.getElementById(imgClass + "Down").style.visibility = "hidden";
	     // guarantee click in IE
	     if (elem.click) {
	         elem.click();
	     }
	     break;
	}
	evt.cancelBubble = true;
	return false;
}

			function changeImgSrc (oObj, sSource)
			{
				oObj.src = sSource;
			}
//end hide --->
