/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return

	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_f2'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);

			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;

			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}

			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_f2'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
	initInputRollovers();
}

function initInputRollovers() {
	if (!document.getElementById) return

	var aPreLoad = new Array();
	var sTempSrc;
	var aInputs = document.getElementsByTagName('input');

	for (var i = 0; i < aInputs.length; i++) {
		if (aInputs[i].className == 'imgover') {
			var src = aInputs[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_f2'+ftype);

			aInputs[i].setAttribute('hsrc', hsrc);

			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;

			aInputs[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}

			aInputs[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_f2'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

<!--
  function showhide(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhide1(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "block";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhide2(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "none"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "none";
      }
    }
  }
  function showhidemap1(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "block"){
        document.getElementById(id).style.display = "block";
      }else{
        document.getElementById(id).style.display = "block";
      }
    }
  }
  function showhidemap2(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "none"){
        document.getElementById(id).style.display = "none";
      }else{
        document.getElementById(id).style.display = "none";
      }
    }
  }
//-->


function OpenWin(planCode){
    win=window.open("http://www.dbpowers.net/~shiretoko/reservation.php?pln="+planCode,"new","width=765,height=544,scrollbars=1,status=0,resizable=1,location=0,toolbar=0");
}

function OpenWinC(planCode){
    win=window.open("http://www.dbpowers.net/~shiretoko/reservationCar.php?pln="+planCode,"new","width=765,height=544,scrollbars=1,status=0,resizable=1,location=0,toolbar=0");
}