
function set_gmap(){

	 var xx = 35.170096;
	 var yy = 136.917546;
	
	var map = new GMap2(document.getElementById("map"));
	
	var access = map.setCenter(new GLatLng(xx,yy));	
	
	map.setCenter(access, 17);
	map.addControl(new GLargeMapControl());
	var point = new GLatLng(xx,yy);
	var marker = new GMarker(point);
	map.addOverlay(marker);
}

/*lavaLampセット
-------------------------------------------------------------------------------------*/
function set_facebox(){
	$(document).ready(function($) {
	  $('a[rel*=facebox]').facebox();
	});
}

/*lavaLampセット
-------------------------------------------------------------------------------------*/
function set_lavaLamp(){
	$(function() {
		$("#1, #2, #3").lavaLamp({
			fx: "backout",
			speed: 700,
			
			click: function(event, menuItem) {
				//return false;
			}
			
		});
	});
}

/*set_pictures_shuffleセット
-------------------------------------------------------------------------------------*/
function set_pictures_shuffle(){
	$(function() {$('.pictures').cycle({ 
		fx:'shuffle', 
		delay: -5000 
	});});
}

/*set_btnセット
-------------------------------------------------------------------------------------*/
function set_btn(){
	
	$(function(){
		
		//戻る
		$("img#page_img").hover(
			function(){
				this.src = "/aoi/common/image/btn_back_r.gif";
			},
			function(){
				this.src = "/aoi/common/image/btn_back.gif";
			}
		);
		
		//TOP
		$("img#page_top").hover(
			function(){
				this.src = "/aoi/common/image/btn_top_r.gif";
			},
			function(){
				this.src = "/aoi/common/image/btn_top.gif";
			}
		);
		
		//購入
		$("#btn_bay").hover(
			function(){
				this.src = "/aoi/common/image/btn_bay_r.gif";
			},
			function(){
				this.src = "/aoi/common/image/btn_bay.gif";
			}
		);
		
		//確認
		$("#btn_chk").hover(
			function(){
				this.src = "/aoi/common/image/btn_chk_r.gif";
			},
			function(){
				this.src = "/aoi/common/image/btn_chk.gif";
			}
		);
		
		//送信
		$("#btn_mail").hover(
			function(){
				this.src = "/aoi/common/image/btn_mail_r.gif";
			},
			function(){
				this.src = "/aoi/common/image/btn_mail.gif";
			}
		);
		
	});
}

/*SWFセット
-------------------------------------------------------------------------------------*/
function SwfSetting(){
	if (AC_FL_RunContent == 0) {
		alert("このページでは \"AC_RunActiveContent.js\" が必要です。");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
			'width', '850',
			'height', '300',
			'src', 'index',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'index',
			'bgcolor', '#465450',
			'name', 'index',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'index',
			'salign', ''
			); //end AC code
	}

}

/*TOPに戻る
-------------------------------------------------------------------------------------*/
function backToTop() {
	var x1 = x2 = x3 = 0;
	var y1 = y2 = y3 = 0;
	
	if (document.documentElement) {
		x1 = document.documentElement.scrollLeft || 0;
		y1 = document.documentElement.scrollTop || 0;
	}
	
	if (document.body) {
		x2 = document.body.scrollLeft || 0;
		y2 = document.body.scrollTop || 0;
	}
	
	x3 = window.scrollX || 0;
	y3 = window.scrollY || 0;
	var x = Math.max(x1, Math.max(x2, x3));
	var y = Math.max(y1, Math.max(y2, y3));
	
	window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
	
	if (x > 0 || y > 0) {
		window.setTimeout("backToTop()", 25);
	}
}

