	//	OPEN GALLERY //////////////////////////////////////////////////////////////////////////////	var opg = new Array();		opg[0] = "http://gallery.godive-bali.com/";					//	トップページ	opg[1] = "http://gallery.godive-bali.com/amed.php";			//	アメッド	opg[2] = "http://gallery.godive-bali.com/gili.php";			//	ギリ	opg[3] = "http://gallery.godive-bali.com/menjangan.php";	//	ムンジャンガン	opg[4] = "http://gallery.godive-bali.com/nusa_dua.php";		//	ヌサドゥア	opg[5] = "http://gallery.godive-bali.com/nusa_penida.php";	//	ヌサペニダ	opg[6] = "http://gallery.godive-bali.com/tranben.php";		//	トランベン	function openGallery(w){ window.open(opg[w],'gallery',''); }	//	OPEN WINDOW ////////////////////////////////////////////////////////////////////////////////	var opWin = new Array();	opWin[0] = "http://godive-bali.com/form/";	opWin[1] = "http://bbs10.fc2.com/php/e.php/godive-bbs/";	//	NORMAL OPEN	function openWin(wNo){	window.open(opWin[wNo],'newW','width=650, height=650,toolbar=0, location=0, status=0, menubar=0, scrollbars=1');}	//	MOVE OPEN	function moveOpen(wNo){var nw = newWin(opWin[wNo],"neoWin",10,650,650,10);}	function newWin(url,name,l,w,h,x){		var _l = (screen.width-w)/2;		var t = (screen.height-h)/4;		var win = window.open(url, name, 'left='+l+' ,top='+t+' ,width='+w+' ,height='+h+' ,toolbar=0, location=0, status=0, menubar=0, scrollbars=1');		win.moveTo(l,t)		win.focus()		for(var i = 0;i<Math.floor(Math.abs((_l-l)/x));i++){				win.moveBy(x*(_l-l>0?1:-1),0)		}				win.moveBy((_l-l)%x,0)		win.location.href=url		return win	}	//	ここから先は、いじらないで！！	//	///////////////////////////////////////////////////////////////////////////	var doc = document;		var ChSize = new Array();			ChSize[0] = "12px"; //	fontsize small		ChSize[1] = "19px"; //	fontsize big	function reSizeFont(num){ doc.getElementById("contents").style.fontSize = ChSize[num];}	function $(id){		return doc.getElementById(id);	}		function STO(_24,_25){		return window.setTimeout(_24,_25);	}		function $toggle(id){		if(act_height(id) == 0){			$open(id);		}else{			$close(id);		}	}		function $close(id,clSPD){		if(!clSPD){			clSPD = 100;		}		acth = act_height(id);		maxh = max_height(id);				if(acth == maxh){			$(id).style.display = "block";			var _30; _30 = Math.ceil(clSPD/acth);						for(i = 0; i <= acth; i++){				newh = acth-i; STO("$('"+id+"').style.height = '"+newh+"px'", _30*i);			}		}	}		function $open(id,opSPD){		if(!opSPD){opSPD = 200;		}		acth = act_height(id);				if(acth == 0){			maxh = max_height(id);			$(id).style.display = "block";			$(id).style.height = "0px";			var _33;			_33 = Math.ceil(opSPD/maxh);						for(i = 1; i <= maxh; i++){				STO("$('"+id+"').style.height = '"+i+"px'",_33*i);			}		}	}		function act_height(id){		height = $(id).clientHeight;				if(height == 0){			height = $(id).offsetHeight;		}				return height;		}		/*	function act_width(id){		width=$(id).clientWidth;				if(width==0){			width=$(id).offsetWidth;		}				return width;	}	*/			function max_height(id){		var ids = $(id).style;		ids.overflow = "hidden";				if(act_height(id) != 0){			return act_height(id);				}else{			origdisp = ids.display;			origheight = ids.height;			origpos = ids.position;			origvis = ids.visibility;			ids.visibility = "hidden";			ids.height = "";			ids.display = "block";			ids.position = "absolute";			height = act_height(id);			ids.display = origdisp;			ids.height = origheight;			ids.position = origpos;			ids.visibility = origvis;						return height;		}	}	//	///////////////////////////////////////////////////////////////////////////////////			var scrj = 1;	function scrTop(X,Y){				if(doc.all) {			var scdist = doc.body.parentNode.scrollTop;				}else if(doc.layers || (navigator.userAgent.indexOf("Opera") != -1) || window.opera){			var scdist = window.pageYOffset;		}				else if(navigator.userAgent.indexOf("Gecko") != -1){			var scdist = window.scrollY;		}			   if(scrj < 100 && scdist) {		  scdist = (scdist>2) ? Math.ceil(scdist*.1) : 1;		  scrj++;		  scrollBy(0,-scdist);		  setTimeout("scrTop()", 10);	   } else {		  scrollTo(X,Y);		  scrj = 1;	   }	}
