/*JavaScript: com.jslast updated on 2009.12.16(c) 2009 YOSUKE INUI Design Office (http://www.inuiyosuke.jp/)*/ // ------------------------------- Over Write CSS -------------------------------document.open();document.write('<style type="text/css">div.SHEET div.IMAGES { height:360px; } div.SHEET div.IMAGES div.IMAGE { position:absolute; display:none; } div.SHEET div.THUMBNAILS { display:inline; }</style>');document.close();// ------------------------------- SHORT-CUT KEYS -------------------------------document.onkeydown = function () {	if (macFF || winFF) { event = arguments[0]; }	if (event.altKey || event.ctrlKey || event.shiftKey) { return true; }	if	(event.keyCode == 27)	{ }	// ESC	else if	(event.keyCode == 39)	{ if (NEXT.flag) { NEXT.go(); }}			// 	else if	(event.keyCode == 37)	{ if (NEXT.flag) { history.go(-1); }}			// 	else if	(event.keyCode == 38)	{ if (JSS.flag) { script_JSS.slide ((script_JSS.dgree - 1) / script_JSS.dgree); }}	// 	else if	(event.keyCode == 40)	{ if (JSS.flag) { script_JSS.slide ((script_JSS.dgree - 1) / script_JSS.dgree * -1); }}	// 	else if	(event.keyCode == 33)	{  }	// PAGE UP	else if	(event.keyCode == 34)	{  }	// PAGE DOWN	else if	(event.keyCode == 35)	{  }	// END	else if	(event.keyCode == 36)	{  }	// HOME	else if	(event.keyCode == 32)	{ if (NEXT.flag) {  }}	// Space Bar	else if	(event.keyCode == 13)	{ if (slideIMG.objs.length > 0) { slideIMG.on(); }}		// Return//	else	{ alert(event.keyCode); }}function Email () {var Email_Addr	= 'post' + '\@' + 'inui' + 'yosuke' + '.jp';if (arguments[0] && arguments[1]) { Email_Addr = arguments[0] + '\@' + arguments[1]; }var string	= '<a href="' + 'mail' + 'to:' + Email_Addr + '">' + Email_Addr + '</a>';document.open();document.write(string);document.close();}// -- NEXT --load.Set('NEXT.set();');window.onscroll = function () { if (NEXT.obj.flag) { clearTimeout(NEXT.timer); NEXT.timer = setTimeout('NEXT.move();',64); }}var NEXT = { timer:undefined, flag:false, obj:new Object(), url:undefined,	set:function () { if (!NEXT.obj.flag) { NEXT.obj = new OBJ('NEXT'); } if (NEXT.obj.flag) { 		NEXT.url = NEXT.obj.path.href;		NEXT.obj.setA(100).setC(0,100,21,70);		NEXT.obj.path.onmouseover	= function () { AUDIO.play(); NEXT.on; }		NEXT.obj.path.onmousemove	= NEXT.on;		NEXT.obj.path.onmouseout	= NEXT.out;		NEXT.obj.path.onclick	= function () { NEXT.go(); return false; }//		NEXT.obj.setY(296).setX(879);		NEXT.flag = true;		NEXT.move();	}},	on:	function () { NEXT.obj.setZ(3); sweep.Set(NEXT.obj, 0,100,21,0); },	out:	function () { NEXT.obj.setZ(2); sweep.Set(NEXT.obj, 0,100,21,70); },	go:	function () { if (NEXT.obj.flag && NEXT.url) { AUDIO.play(); location.href = NEXT.url; }},move:function () { if (!scroll.flag) { 	ENV.Set();	move.Set(NEXT.obj, (ENV.Y + 160), 770, 5, 128);}}}// -- slideIMG --load.Set('slideIMG.set();');var slideIMG = { timer:undefined, delay:undefined, obj:new Object(), objs:new Array(), thumbnails:new Array(), thumb:new Object(), bar:new Object(), thumbW:60, flag:false, key:-1, next:new Object(),set:function () {slideIMG.objs	= new CLASS('IMAGE');if (slideIMG.objs.length > 0) { 	// -- NEXT --	if (slideIMG.objs.length > 1) { 		slideIMG.obj	= new CLASS('IMAGES');		slideIMG.next	= new OBJ(document.createElement('div'));	slideIMG.next.path.className = 'NEXTSLIDE';	slideIMG.next.setZ(11).setY(170).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 () { slideIMG.on(-2); }		slideIMG.obj[0].path.onmouseover	= function () { over_IMAGE.on(); }		slideIMG.obj[0].path.onmouseout	= function () { over_IMAGE.out(); }	}	for (i = 0; i < slideIMG.objs.length; i ++) {		slideIMG.objs[i].jss.cursor = 'pointer';		slideIMG.objs[i].path.onclick = function () { click_IMAGE.on(); }//		if (slideIMG.objs[i].path.firstChild) { slideIMG.objs[i].path.firstChild.onclick = function () { click_IMAGE.off(); }}		// -- NEXT --//		if (slideIMG.next.flag) { //			if (slideIMG.objs[i].path.firstChild) { slideIMG.objs[i].path.firstChild.onmouseover = function () { over_IMAGE.out(); }; slideIMG.objs[i].path.firstChild.onmousemove = function () { over_IMAGE.out(); }}//		}	}	slideIMG.timer = setTimeout('slideIMG.slideshow();', 512);}},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]) { slideIMG.timer = setTimeout('slideIMG.slideshow();', 4000); return; }	if (false)	{ slideIMG.key = (slideIMG.key >= 2) ? slideIMG.key + 1 : 2; if (slideIMG.key >= slideIMG.objs.length) { slideIMG.key = 2; }}	else		{ slideIMG.key = (arguments[0] >= 0) ? arguments[0] : slideIMG.key + 1; if (slideIMG.key >= slideIMG.objs.length) { slideIMG.key = 0; }}	if (macFF || winFF) { slideIMG.objs[slideIMG.key].setA(0); }	else		{ slideIMG.objs[slideIMG.key].setA(0); }	slideIMG.objs[slideIMG.key].setC(0,0,460,0);	slideIMG.objs[slideIMG.key].setD(1);	for (i = 0; i < slideIMG.objs.length; i ++) { 		if	(i == slideIMG.key)		{ slideIMG.objs[i].setZ(10); }		else				{ slideIMG.objs[i].setZ((slideIMG.objs[i].Z -1)); }		if	(slideIMG.objs[i].Z < 9)	{ slideIMG.objs[i].setD(0); }	}	trans.Set(slideIMG.objs[slideIMG.key],100,10);	sweep.Set(slideIMG.objs[slideIMG.key],0,630,360,0);	slideIMG.timer = setTimeout('slideIMG.slideshow();', 8000);}}// -- moveBG --load.Set('moveBG.set();');var moveBG = { timer:undefined, obj:new Object(), objs:new Array(), flag:false,set:function () {moveBG.objs = new CLASS('MOVE_BG');for (i = 0; i < moveBG.objs.length; i ++) {	moveBG.objs[i].path.firstChild.style.backgroundPosition = '0px -60px';	eval('moveBG.objs[' + i + '].path.onmouseover	= function () { moveBG.on(' + i + '); AUDIO.play(); }');	eval('moveBG.objs[' + i + '].path.onmouseout	= function () { moveBG.off(' + i + '); }');}// if (moveBG.objs.length >= 1 ) { moveBG.on(0); }},on:function () { clearTimeout(moveBG.timer);moveBG.obj = (arguments[0] >= 0) ? (moveBG.objs[(arguments[0])].path.firstChild) : (moveBG.obj); if (moveBG.obj.style.backgroundPosition) { 	moveBG.obj.style.backgroundPosition = '0px ' + (parseInt(moveBG.obj.style.backgroundPosition.split(' ')[1]) - 1) + 'px';	moveBG.timer = setTimeout('moveBG.on();', 32);}},off:function () { if (moveBG.objs.length > 1 ) { moveBG.obj = false; clearTimeout(moveBG.timer); }}}// -- AUDIO: TEST Script...working on Safari & Opera --load.Set('AUDIO.set();');var AUDIO = { timers:new Array, obj:new Object(), flag:false, keys:new Array(), play:function () { if (AUDIO.flag) { AUDIO.obj.play(); }},set:function () {	AUDIO.obj = new Audio('/com/aiff/sbar.aiff'); // wclp.aiff	AUDIO.flag = true;	for(i = 0; i < doc.links.length; i++) { 		AUDIO.keys[i] = false;		if (!doc.links[i].onmouseover) { 			eval ('doc.links[' + (i) + '].onmouseover	= function () { if (!AUDIO.keys[' + (i) + ']) { AUDIO.play(); } clearTimeout( AUDIO.timers[' + (i) + ']); AUDIO.keys[' + (i) + '] = true; }');			eval ('doc.links[' + (i) + '].onmousemove	= function () { clearTimeout( AUDIO.timers[' + (i) + ']); AUDIO.keys[' + (i) + '] = true; }');			eval ('doc.links[' + (i) + '].onmouseout	= function () { clearTimeout( AUDIO.timers[' + (i) + ']); AUDIO.timers[' + (i) + '] = setTimeout("AUDIO.keys[' + (i) + '] = false;",144); }');		}	}}}// -- BALLOON --// load.Set('BALLOON.set();');var BALLOON = { timer:new Array(), flag:false, key:false, obj:new Object(), objs:new Array(), txts:new Object(),set:function () {	if(!BALLOON.obj.flag) {		BALLOON.obj = new OBJ(document.createElement('div'));		BALLOON.obj.path.setAttribute('id','BALLOON');		BALLOON.obj.setD(0);		document.getElementsByTagName('body').item(0).appendChild(BALLOON.obj.path);	}	BALLOON.objs = new CLASS('BALLOON');	for (i = 0; i < BALLOON.objs.length; i ++) {		BALLOON.txts[i] = BALLOON.objs[i].path.title;		eval ('BALLOON.objs[' + i +'].path.onmouseover	= function () { BALLOON.on(' + i +'); }');		eval ('BALLOON.objs[' + i +'].path.onmousemove	= function () { BALLOON.on(' + i +'); }');		eval ('BALLOON.objs[' + i +'].path.onmouseout	= function () { BALLOON.off(' + i +'); }');	}}, on:function () {	if (BALLOON.timer) clearTimeout(BALLOON.timer);	BALLOON.key = arguments[0];	if (BALLOON.txts[BALLOON.key]) {		BALLOON.obj.setD(1);		BALLOON.obj.setI(BALLOON.txts[BALLOON.key]);		BALLOON.obj = new OBJ(BALLOON.obj);	// reset OBJ to get Width		BALLOON.obj.setX(BALLOON.objs[BALLOON.key].tX - 10);		BALLOON.obj.setY(BALLOON.objs[BALLOON.key].tY - 21);		BALLOON.obj.setA(100);	trans.Set(BALLOON.obj,100);	} else { BALLOON.obj.setD(0); }}, off:function () {	if (BALLOON.timer) clearTimeout(BALLOON.timer);	BALLOON.timer = setTimeout('trans.Set(BALLOON.obj,0);', 128);}}