//pulldown menu

function pulldown_show(){
    var menu=document.getElementById('spot_pulldown');
    menu.style.display='block';
}

function pulldown_hide(){
    var menu=document.getElementById('spot_pulldown');
    menu.style.display='none';
}

//rollover
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
					
				}
			}
		}
	}
}

function loadMenuImage() { 
  document.imageArray = new Array(7);
  for(var i=0; i<7; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = 'image/menu'+i+'on.gif';
  }	
  
  document.searchbtn = new Image;
  document.searchbtn.src = 'image/search_btn_on.gif';
}


if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
	window.addEventListener("load", loadMenuImage, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
	window.attachEvent("onload", loadMenuImage);
}