<!------------------------------------------------------------------------------ initialize ----------->
	mmMax = 8
	if(navigator.appVersion.charAt(0)>=3){
		menuArrayOFF = new Array();
		menuArrayON = new Array();
		for(i=0; i<=mmMax; i++){
			menuArrayOFF[i] = new Image(); menuArrayOFF[i].src="img/mm" + (i<10?"0"+i:i) + "0.gif";
			menuArrayON[i] = new Image(); menuArrayON[i].src="img/mm" + (i<10?"0"+i:i) + "1.gif";
		};
	}
	

<!------------------------------------------------------------------------------ functions ----------->

function mmOver(nNum){
		cName = "mm" + (nNum<10?"0"+nNum:nNum);
		if(nNum >= 0){
			if(typeof(menuArrayON[nNum]) == "object"){
				document.getElementById(cName).src = menuArrayON[nNum].src
			}
		}
}

function mmOut(nNum){
		cName = "mm" + (nNum<10?"0"+nNum:nNum);
		if(nNum >= 0){
			if(typeof(menuArrayOFF[nNum]) == "object"){
				document.getElementById(cName).src = menuArrayOFF[nNum].src
			}
		}
}


function showBL(n, max){
	for (i=1; i<=max; i++){
		if(i == n){
			document.getElementById('block0'+i).style.display="block";
		}else{
			document.getElementById('block0'+i).style.display="none";
		}
	}
}

function loadMyMap() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.setCenter(new GLatLng(35.97732896394714, 139.52100276947021), 12);
		map.addControl(new GLargeMapControl());
		map.addOverlay(new GMarker(new GLatLng(35.97732896394714, 139.52100276947021)));
		map.addControl(new GMapTypeControl());
	}
}

function voi(){}

function windowOpen(url,w,h, xxx, yyy){
	puwin=window.open(url,'win','left='+xxx+', top='+yyy+', resizable=yes, scrollbars=yes, width='+w+', height='+h+',status=yes');
	puwin.focus();
}
function steplarge(url,w,h, xxx, yyy){
		stepWin=window.open(url, "win1", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",top="+yyy+",left="+xxx);
		stepWin.focus();
}
function openCalWin(){
	xxx = window.screen.width/2-400;
	yyy = window.screen.height/2-350;
	calwin=window.open('http://loveskydive.es.land.to/tsc/callender_t.php','win','left='+xxx+', top='+yyy+', resizable=yes, scrollbars=yes, width=800, height=700,status=yes');
	calwin.focus();
	pageTracker._trackPageview('/callender.html');
}


function inputtextTrickF(obj){
	if(obj.value==obj.defaultValue){
		obj.value="";
		obj.style.color="#000";
	}
}

function inputtextTrickB(obj){
	if(obj.value==""){
		obj.value=obj.defaultValue;
		obj.style.color="#999";
	}
}

function galimg(imgid){
		parent.largeimage.src="images/gimg/" + imgid;
}