/*JavaScript: work.jslast updated on 2009.07.10(c) 2009 YOSUKE INUI Design Office (http://www.inuiyosuke.jp/)*/// ------------------------------- Over Write CSS -------------------------------document.open();document.write('<style type="text/css">div.IMAGES { height:275px; }</style>');document.close();// -- JSS --wheel.Set("script_JSS.wheel();"); mouse.Set("script_JSS.drag();"); msup.Set("script_JSS.off();");load.Set('new JSS("JSS", 690, 460, 680, 0, 0, 0, 0);');// -- 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:128, flag:false, key:-1,set:function () {slideIMG.objs	= new CLASS('IMAGE');if (slideIMG.objs.length > 0) { 	for (i = 0; i < slideIMG.objs.length; i ++) {		slideIMG.objs[i].path.onclick = function () { slideIMG.on(); }//		slideIMG.objs[i].path.onmousemove = function () { if (slideIMG.timer) { clearTimeout(slideIMG.timer); }}	// slideIMG.timer = setTimeout('slideIMG.slideshow();', 8000); }	}	slideIMG.thumbnails	= new CLASS('THUMBNAILS');	slideIMG.thumb	= new OBJ(slideIMG.thumbnails[0].path.firstChild);	slideIMG.thumb.setW(slideIMG.objs.length * slideIMG.thumbW); 	slideIMG.bar = new OBJ(document.createElement('div'));	slideIMG.bar.path.className = 'BAR';	slideIMG.thumb.path.appendChild(slideIMG.bar.path);	slideIMG.bar = new OBJ(slideIMG.bar);	slideIMG.slideshow();}},slideshow:function () {	if	(arguments[0] >= 0)					{ slideIMG.on(arguments[0]); }	else if	(slideIMG.bar.W >= (slideIMG.key + 1) * slideIMG.thumbW)	{ slideIMG.on(); }	else							{ slideIMG.bar.setW(slideIMG.bar.W + 1); }	//move.Set(slideIMG.objs[slideIMG.key], -1000,0,1,1/2);	if (slideIMG.timer) clearTimeout(slideIMG.timer);	if (slideIMG.objs.length > 1 ) { slideIMG.timer = setTimeout('slideIMG.slideshow();', 32); }},on:function () {	if (slideIMG.timer) clearTimeout(slideIMG.timer);	if (slideIMG.objs.length <= 0 ) { return; }	if (slideIMG.key == arguments[0]) { slideIMG.timer = setTimeout('slideIMG.slideshow();', 3000); return; }	slideIMG.key = (arguments[0] != undefined) ? arguments[0] : slideIMG.key + 1;	if (slideIMG.key >= slideIMG.objs.length) { slideIMG.key = 0; }	slideIMG.bar.setW((slideIMG.key * slideIMG.thumbW + 1));	if (slideIMG.bar.W >= slideIMG.thumb.W) { slideIMG.bar.setW(1); };	if (macFF || winFF) { slideIMG.objs[slideIMG.key].setA(0); }	else		{ slideIMG.objs[slideIMG.key].setA(0); }//	slideIMG.objs[slideIMG.key].setC(0,690,460,0);	slideIMG.objs[slideIMG.key].setD(1);	for (i = 0; i < slideIMG.objs.length; i ++) { //		if	(slideIMG.objs[i].Z == 10) 	{ trans.Set(slideIMG.objs[i],0,5); }	// 背景に回る画像の透過処理		if	(i == slideIMG.key)		{ slideIMG.objs[i].setZ(10); }		else				{ slideIMG.objs[i].setZ((slideIMG.objs[i].Z -1)); }		if	(slideIMG.objs[i].Z < 8)	{ slideIMG.objs[i].setD(0); }	}	trans.Set(slideIMG.objs[slideIMG.key],100,10);//	sweep.Set(slideIMG.objs[slideIMG.key],0, 690, 460,0);	slideIMG.timer = setTimeout('slideIMG.slideshow();', 3000);}}
