var speed = 3000;
var img_box = new Array("http://www.tokyo-lovemachine.com/home/images/contents/side-debut.jpg","http://www.tokyo-lovemachine.com/home/images/contents/side-midnight.jpg","http://www.tokyo-lovemachine.com/home/images/contents/side-event.jpg","http://www.tokyo-lovemachine.com/home/images/contents/side-publishing.jpg","http://www.tokyo-lovemachine.com/home/images/contents/side-voice.jpg");
var url = new Array("http://www.tokyo-lovemachine.com/home/event/debut.html","http://www.tokyo-lovemachine.com/home/event/midnight.html","http://www.tokyo-lovemachine.com/home/day-event/day-event.html","http://www.tokyo-lovemachine.com/publishing/publishing.html","http://www.tokyo-lovemachine.com/gals/gals.php");
var A = new Array();
var IE = document.all;
var blank = 1;

for (i=0; i<img_box.length; i++){
	A[i] = new Image();
	A[i].src = img_box[i];
}

function LINK(){
	if (blank){
		window.open(url[Jump] , 'mywin' , 'width=900 , height=580 , scrollbars=yes');
	}else
		window.location = url[Jump];
}

var Jump = 0;
var Img = 0;
var Trans = (IE)? document.images.slide.filters[0].duration*1000 : 0;

function SLIDE(){
	if (!document.images) return;
	if (IE) document.images.slide.filters[0].apply();
		document.images.slide.src = A[Img].src;
	if (IE) document.images.slide.filters[0].play();
		Jump = Img;
		Img = (Img<img_box.length-1)? Img+1 : 0;
		setTimeout("SLIDE()",speed + Trans);
}

SLIDE();
