var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)

var tempY = 0
var tempL = 0;
var tempLO = 0;
var disp_todo = 0;

function show_todo(x){
	if(x == 0) {
		$("mask").style.height = "28px"; MM_swapImgRestore();
		$("todo_b").style.visibility = "hidden";
		tempLO = 0;
	} else {
		$("mask").style.height = "92px";
		$("todo_b").style.visibility = "visible";
	}
}

function f_scrollTop() {
	var v1 = -1;
	var v2 = -1;
	var v3 = -1;
	var v4 = 0;
	if (document.documentElement) {v1 = document.documentElement.scrollTop;}
	if (window.pageYOffset) {v2 = window.pageYOffset;}
	if (document.body) {v3 = document.body.scrollTop;}
	if(v1 > v2){v4 = v1;}else{v4 = v2;}
	if(v3 > v4){v4 = v3;}
	return v4;
}

function getMouseXY(e) {
	if (IE) { // grab the x-y pos.s if browser is IE
		tempY = event.clientY;
		
	} else {  // grab the x-y pos.s if browser is NS
		tempY = e.clientY;
	}

	tempY +=f_scrollTop();
	if (tempY < 162) {tempL = 1;
	}else if (tempY < 185) {tempL = 2;
	}else if (tempY < 208) {tempL = 3;
	}else if (tempY < 231) {tempL = 4;
	}
	
	if (tempLO != tempL){
		tempLO = tempL;
		MM_swapImgRestore();
		switch(tempL) {
			case 1: MM_swapImage('todo','','/images/bt/todo_over.gif',1); disp_todo=1; break;
			case 2: MM_swapImage('dining','','/images/bt/dining_over.gif',1); disp_todo=2; break;
			case 3: MM_swapImage('tours','','/images/bt/tours_over.gif',1); disp_todo=3; break;
			case 4: MM_swapImage('shopping','','/images/bt/shopping_over.gif',1); disp_todo=4; break;
		}
	}
}

function click_todo(){
	switch(disp_todo) {
		case 2: window.location = "/dining.html"; break;
		case 3: window.location = "/tours.html"; break;
		case 4: window.location = "/shopping.html"; break;
	}
}