/* メニューロールオーバー用スクリプト */
function showlist1() {
	document.getElementById("submenu1").style.visibility="visible";
}
function shutlist1() {
	document.getElementById("submenu1").style.visibility="hidden";
}
function showlist2() {
	document.getElementById("submenu2").style.visibility="visible";
}
function shutlist2() {
	document.getElementById("submenu2").style.visibility="hidden";
}
function showlist3() {
	document.getElementById("submenu3").style.visibility="visible";
}
function shutlist3() {
	document.getElementById("submenu3").style.visibility="hidden";
}
function showlist4() {
	document.getElementById("submenu4").style.visibility="visible";
}
function shutlist4() {
	document.getElementById("submenu4").style.visibility="hidden";
}
function showlist5() {
	document.getElementById("submenu5").style.visibility="visible";
}
function shutlist5() {
	document.getElementById("submenu5").style.visibility="hidden";
}
function showlist6() {
	document.getElementById("submenu6").style.visibility="visible";
}
function shutlist6() {
	document.getElementById("submenu6").style.visibility="hidden";
}
function showlist7() {
	document.getElementById("submenu7").style.visibility="visible";
}
function shutlist7() {
	document.getElementById("submenu7").style.visibility="hidden";
}

/* アクティブテーブル色変換スクリプト */
function tableon(element){
	element.style.backgroundColor="#E6FFCC"
}
function tableout(element){
	element.style.backgroundColor="#FFFFFF"
}
function divon(element){
	element.style.backgroundColor="#DEEAEE"
}
function divout(element){
	element.style.backgroundColor="#FFFFFF"
}

/* 画像ロールオーバー用スクリプト 		*/
/* rollover(this, '任意画像アドレス') 	*/
function rollover(obj, url){
	obj.src = url;
}

/* シンプルギャラリー用 */
var mygallery=new simpleGallery({
			wrapperid: "simplegallery1", //ID of main gallery container,
			dimensions: [860, 300], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
			imagearray: [
						/* [画像URL、リンク先URL、_new] */
						["img/main_img01.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/praise/index.html",""],
						["img/main_img02.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/healing/index.html",""],
						["img/main_img03.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/blessing/index.html",""],
						["img/main_img04.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/mission/index.html",""],
						["img/main_img05.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/women/index.html",""],
						["img/main_img06.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/orphanage/index.html",""],
						["img/main_img07.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/israel/index.html",""],
						["img/main_img08.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/media/index.html",""],
						["img/main_img09.jpg","http://tokyo.antioch.jp/astonetv/tokyoantioch/revival/",""]
			],
			autoplay: [true, 5000, 10], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
			persist: false, //remember last viewed slide and recall within same session?
			fadeduration: 500, //transition duration (milliseconds)
			oninit:function(){ //event that fires when gallery has initialized/ ready to run
				//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
			},
			onslide:function(curslide, i){ //event that fires after each slide is shown
				//Keyword "this": references current gallery instance
				//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
				//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
			}
		})
