/*JavaScript: eirakuya.jslast updated on 2009.11.11(c) 2009 YOSUKE INUI Design Office (http://www.inuiyosuke.jp/)*/// ------------------------------- Over Write CSS -------------------------------document.open();document.write('<style type="text/css">div.JSS { height:210px; } div.TEXT { position:absolute; visibility:hidden; } div.IMAGES { height:460px; }</style>');document.close();// -- JSS --wheel.Set("script_JSS.wheel();"); mouse.Set("script_JSS.drag();"); msup.Set("script_JSS.off();");load.Set('new JSS("JSS", 260, 210, 235, 0, 0, 0, 0);');// ------------------------------- Over Write NEXT.go() -------------------------------NEXT.go	= function () { 	if (slideIMG.txts[slideIMG.key].A >= 80) { // スライド中判定		if (slideIMG.key < (slideIMG.objs.length - 1) )	{ AUDIO.play(); slideIMG.slideshow(); }	// スライド最終判定		else					{ if (NEXT.obj.flag) { AUDIO.play(); location.href = NEXT.url; }}	// NEXT PAGE	} else	{ slideIMG.txts[slideIMG.key].setA(100); }}// -- over_IMAGE() for slideIMG() --var over_IMAGE = { timer:undefined, key:true,on:function ()	{ clearTimeout(over_IMAGE.timer);	over_IMAGE.timer = setTimeout('over_IMAGE.key = true;',16); setTimeout('over_IMAGE.sweep();',32); },out:function ()	{ clearTimeout(over_IMAGE.timer);	over_IMAGE.key = false; over_IMAGE.timer = setTimeout('over_IMAGE.key = false;',16); setTimeout('over_IMAGE.sweep();',32); },sweep:function ()	{ if (over_IMAGE.key) { sweep.Set(slideIMG.next,0,90,21,0); } else { sweep.Set(slideIMG.next,0,0,21,0); }}}// -- setsu.php img & txt slideshow --load.Set('slideIMG.set();');var slideIMG = { timer:undefined, delay:undefined, obj:new Object(), objs:new Array(), txts:new Array(), flag:false, key:9999,set:function () {slideIMG.objs = new CLASS('IMAGE');slideIMG.txts = new CLASS('TEXT');if (slideIMG.objs.length > 0) { 	// -- NEXT --	slideIMG.obj			= new CLASS('IMAGES');	slideIMG.obj[0].path.onmouseover	= function () { over_IMAGE.on(); }	slideIMG.obj[0].path.onmouseout	= function () { over_IMAGE.out(); }	slideIMG.next	= new OBJ(document.createElement('div'));	slideIMG.next.path.className = 'NEXTSLIDE';	slideIMG.next.setZ(101).setY(220).setW(90).setD(1).setC(0,0,21,0);	slideIMG.obj[0].path.appendChild(slideIMG.next.path);	slideIMG.next = new OBJ(slideIMG.next);	slideIMG.next.path.onclick		= function () { NEXT.go(); }	for (i = 0; i < slideIMG.objs.length; i ++) { 		slideIMG.objs[i].jss.cursor = 'pointer';		slideIMG.objs[i].path.onclick = function () { click_IMAGE.on(); }		slideIMG.objs[i].path.onclick = function () { NEXT.go(); }		slideIMG.objs[i].path.onmousemove = function () { if (slideIMG.timer) { clearTimeout(slideIMG.timer); }}	// slideIMG.timer = setTimeout('slideIMG.slideshow();', 8000); }	}// -- HASH_HISTORY: get initial slideIMG.key --	var tmp = 0;	if (window.location.hash.match(/\#A([\d]+)/))	{ tmp = RegExp.$1; }	tmp = parseFloat(tmp);	slideIMG.slideshow(tmp);}},slideshow:function () {	slideIMG.on(arguments[0]);	if (slideIMG.timer) clearTimeout(slideIMG.timer);//	if (slideIMG.objs.length > 1 ) { slideIMG.timer = setTimeout('slideIMG.slideshow();', 3500); }},on:function () {	if (slideIMG.timer) clearTimeout(slideIMG.timer);	if (slideIMG.objs.length <= 0 ) { return; } else if ( !slideIMG.key && slideIMG.objs.length <= 1 ) { return; }	if (slideIMG.key == arguments[0]) { return; }	slideIMG.key = (arguments[0] != undefined) ? arguments[0] : slideIMG.key + 1;	if (slideIMG.key >= slideIMG.objs.length) { slideIMG.key = 0; }// -- HASH_HISTORY: modify URL & WINDOW TITLE --	window.location.hash = '#A' + slideIMG.key;	if (HASH_HISTORY.title) { doc.title = (slideIMG.key != 9999 && slideIMG.key != 0 && slideIMG.txts[slideIMG.key]) ? slideIMG.txts[slideIMG.key].path.childNodes[0].textContent + ' : ' + HASH_HISTORY.title : HASH_HISTORY.title; }	if (macFF || winFF) { slideIMG.objs[slideIMG.key].setA(0); slideIMG.txts[slideIMG.key].setA(0); }	else		{ slideIMG.objs[slideIMG.key].setA(0); slideIMG.txts[slideIMG.key].setA(0); }//	slideIMG.objs[slideIMG.key].setC(0,690,460,0);	slideIMG.objs[slideIMG.key].setD(1);//	slideIMG.txts[slideIMG.key].setC(0,240,460,0);	slideIMG.txts[slideIMG.key].setD(1).setV(1);	for (i = 0; i < slideIMG.objs.length; i ++) { 		if (slideIMG.objs[i].Z == 100) { trans.Set(slideIMG.txts[i],0,1); trans.Set(slideIMG.objs[i],0,3); }		if (i == slideIMG.key) { slideIMG.objs[i].setZ(100); slideIMG.txts[i].setZ(100); }		else { slideIMG.objs[i].setZ((slideIMG.objs[i].Z -1)); slideIMG.txts[i].setZ((slideIMG.txts[i].Z -1)); }		if (slideIMG.objs[i].Z < 98) { slideIMG.objs[i].setD(0); slideIMG.txts[i].setD(0); }	}	trans.Set(slideIMG.objs[slideIMG.key],100,15);//	sweep.Set(slideIMG.objs[slideIMG.key],0, 690, 460,0);	clearTimeout(slideIMG.delay); slideIMG.delay	= setTimeout("trans.Set(slideIMG.txts[slideIMG.key],100,15);",1000);//	trans.Set(slideIMG.txts[slideIMG.key],100,10);//	sweep.Set(slideIMG.txts[slideIMG.key],0, 240, 460,0);//	slideIMG.timer = setTimeout('slideIMG.slideshow();', 8000);}}// ------------------------------- HASH_HISTORY -------------------------------load.Set('HASH_HISTORY.set();');var HASH_HISTORY = { timer:undefined, obj:new Object(), key:undefined, now:undefined, title:undefined,set:function () {// -- HASH_HISTORY.set() --	HASH_HISTORY.title	= doc.title;	HASH_HISTORY.now	= window.location.hash.replace(/^#/, '');	HASH_HISTORY.key	= HASH_HISTORY.now;	if (winIE && UAver < 8) { // Add <iframe> for IE		HASH_HISTORY.obj = new OBJ(document.createElement('iframe'));		HASH_HISTORY.obj.setD(0);		HASH_HISTORY.obj.setY(-1000);		document.getElementsByTagName('body').item(0).appendChild(HASH_HISTORY.obj.path);		HASH_HISTORY.obj.path.contentWindow.document.open();		HASH_HISTORY.obj.path.contentWindow.document.close();		HASH_HISTORY.obj.path.contentWindow.location.hash = '#' + HASH_HISTORY.key;	}	HASH_HISTORY.timer	= setInterval('HASH_HISTORY.interval();', 256);	window.onfocus	= function () { HASH_HISTORY.timer	= setInterval('HASH_HISTORY.interval();', 256); }},interval:function () {// -- HASH_HISTORY.interval() --	HASH_HISTORY.now	= window.location.hash.replace(/^#/, '');	if (winIE && UAver < 8 && HASH_HISTORY.now != HASH_HISTORY.key) { // Add <iframe> for IE		HASH_HISTORY.obj.path.contentWindow.document.open();		HASH_HISTORY.obj.path.contentWindow.document.close();		HASH_HISTORY.obj.path.contentWindow.location.hash = '#' + HASH_HISTORY.now;	}	if (winIE && UAver < 8) { HASH_HISTORY.now	= HASH_HISTORY.obj.path.contentWindow.location.hash.replace(/^#/, ''); }	if (HASH_HISTORY.now != HASH_HISTORY.key) { 		HASH_HISTORY.key = HASH_HISTORY.now;		window.location.hash = '#' + HASH_HISTORY.key;		HASH_HISTORY.action(HASH_HISTORY.key);	}},action: function () {// ------------ HASH_HISTORY.action() ----------	if	(arguments[0] == '' || arguments[0] == 'A0')	{ slideIMG.slideshow(0); }	else if	(arguments[0] != slideIMG.key)		{ var tmp = arguments[0].replace('A', ''); tmp = parseFloat(tmp); slideIMG.slideshow(tmp); }}}
