/*JavaScript: http://www.eirakuya.com/last updated on 2009.06.26(c) 2009 YOSUKE INUI Design Office (http://www.inuiyosuke.jp/)*/// ------------------------------- Over Write CSS -------------------------------document.open();document.write('<style type="text/css">');document.write('div.SHEET { height:460px; overflow:hidden; } div.JSS { overflow:hidden; }');document.write('div.IMAGES div.IMAGE { position:absolute; display:none; } div.THUMBNAILS { display:inline; }');document.write('</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 (NEXT.flag) { script_JSS.slide ((script_JSS.dgree - 1) / script_JSS.dgree); }}	// ↑	else if	(event.keyCode == 40)	{ if (NEXT.flag) { script_JSS.slide ((script_JSS.dgree - 1) / script_JSS.dgree * -1); }}	// ↓	else if	(event.keyCode == 33)	{ script_JSS.slide((script_JSS.dgree - 1) / script_JSS.dgree); }	// PAGE UP	else if	(event.keyCode == 34)	{ script_JSS.slide((script_JSS.dgree - 1) / script_JSS.dgree * -1); }	// PAGE DOWN	else if	(event.keyCode == 35)	{ script_JSS.slide(-999); }	// END	else if	(event.keyCode == 36)	{ script_JSS.slide(999); }	// HOME	else if	(event.keyCode == 32)	{ if (NEXT.flag) { script_JSS.slide((script_JSS.dgree - 1) / script_JSS.dgree * -1); }}	// Space Bar	else if	(event.keyCode == 13)	{ if (NEXT.flag) { NEXT.go(); }}		// Return//	else	{ alert(event.keyCode); }}// -- PNG --if (winIE && parseInt(UAver) <= 6) { load.Set('PNG();'); }function PNG() {var tmpA = (document.getElementById) ? document.getElementsByTagName('img') : document.images;for (i = 0; i < tmpA.length; i ++) {	if (!tmpA[i].runtimeStyle) continue;	if (!tmpA[i].src.match(/(.*)[^-]\.(png)/i)) continue;	tmpA[i].runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + tmpA[i].src + '", sizingmethod="image");';	tmpA[i].src = '/com/img/transparent.png';}try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}}// -- Email --function Email () {var Email_Addr	= 'info' + '\@' + 'eirakuya' + '.co' + '.jp';if (arguments[0] && arguments[1]) { Email_Addr = arguments[0] + '\@' + arguments[1]; }var string	= '<a href="' + 'mail' + 'to:' + Email_Addr + '">' + Email_Addr + '</a>';doc.open();doc.write(string);doc.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(90).setC(0,100,19,81);		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 () { sweep.Set(NEXT.obj, 0,100,19,0); },	out:	function () { sweep.Set(NEXT.obj, 0,100,19,81); },	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 + 296), 879, 5, 128);}}}// -- SHEET --// load.Set('SHEET.set();');var SHEET = { timer:undefined, flag:false, objL:new Object(), objR:new Object(),	set:function () { if (!SHEET.objL.flag) { SHEET.objL = new OBJ('L'); SHEET.objR = new OBJ('R'); } if (SHEET.objL.flag && SHEET.objR.flag) { 		SHEET.objL.path.onmouseover	= function () { SHEET.on(); }		SHEET.objL.path.onmousemove	= SHEET.objL.path.onmouseover;		SHEET.objL.path.onmouseout	= function () { SHEET.out(); }	}},	on:	function () { clearTimeout(SHEET.timer); SHEET.objL.setZ(10); SHEET.objR.setZ(9); },	off:	function () { clearTimeout(SHEET.timer); SHEET.objL.setZ(9); SHEET.objR.setZ(10); },	out:	function () { SHEET.timer = setTimeout('SHEET.off();', 320); }}// -- 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);}}