


var i =1;



function doTrans(img,f) {
 	//  alert("../photo/20071123-libertango/libertango" + i.toString(10) +".jpg");
  	  imgsu = document.all.imgsu.value;
  	  path = document.all.dpath.value;
 	  fname = document.all.dfname.value;
	//  i = document.all.csu.value;
if (img.filters) {
     if(f == 0 ){
		 i++;
		 if(i > imgsu) i=1;
	 }else{
		 i--;
		 if(i <= 0) i=imgsu;
	 }
	 img.filters.item(0).Apply();
	 img.src ="../photo/"+ path + fname + i.toString(10) +".jpg";
//	  alert(img.src);
     img.filters.item(0).Play();
  }
	  
}

function doPlayStart(){

	if(document.all.fff.value=="off"){
		document.all.fff.value="on";
		doPlay();
		
	}
}

function doStopStart(){

	if(document.all.fff.value=="off"){
		document.all.fff.value="on";
		doPlay();
		
	 document.images["StopStar"].src ="../img/stop.gif"
	}else{
		document.all.fff.value="off";
		doStop();
		
	 document.images["StopStar"].src ="../img/start.gif"
	}
}


function doPlay() {
 	  ison = document.all.fff.value;
	  imgsu = document.all.imgsu.value;
 	  img = document.all.XX1;
 	 // alert(document.all.dpath.value);
 	  path = document.all.dpath.value;
 	  fname = document.all.dfname.value;
 	  // alert(id);
	 if (img.filters) {
 		i++;
		if(i > imgsu)i=1;
		img.filters.item(0).Apply();
	 	img.src ="../photo/"+ path + fname + i.toString(10) +".jpg";
		img.filters.item(0).Play();
		id =window.setTimeout("doPlay()", 5000);
	 }
}

function doPlaylogo() {

 	  imgsu = document.all.imgsu.value;
 	  img = document.all.XX1;
 	 // alert(document.all.dpath.value);
 	  path = document.all.dpath.value;
 	  fname = document.all.dfname.value;
 	   // alert(path +fname);
	 if (img.filters) {
 		i++;
		if(i > imgsu)i=1;
		img.filters.item(0).Apply();
	 	img.src =path + fname + i.toString(10) +".jpg";
	 	//alert(img.src);

		img.filters.item(0).Play();
		id =window.setTimeout("doPlaylogo()", 6000);
 	  //alert(img.src);

	 }
}

function doStop() {
//alert("out");
if (id)	{
	window.clearTimeout(id);
	//alert("in");
	document.all.fff.value = "off";

	}

}


function makePIndex() {
 	  imgsu = document.all.imgsu.value;
 	  path = document.all.dpath.value;
 	  fname = document.all.dfname.value;
  if (!document.all) {
    return;
  }
  var str = "<ul><p align=left>\n";
  var s=0;
  for (var n = 1; n <= imgsu; n++) {
   imgpath="../photo/"+ path + fname + n.toString(10)+".jpg"
    str += " <A onclick = \"showphoto(" + n.toString(10) + ",path,fname)\"><IMG hspace=0  width= 100 src = \"" + imgpath + "\" ></A> \n";
    s++;
    if(s > 5){
    	str += "<p align=left> \n";
    	s = 0;
	}
  }
  str += "</ul>\n";
 // alert(str);
  
  document.all.Contents.innerHTML = str;
}
function makePIndexbyName(path,fname,typ) {
if (!document.all) {
    return;
  }
  var str = "<ul><p align=left>\n";
  var s = 0;
  imgpath="../photo/"+ path + "/"+ fname + ".jpg"
  if(typ = 0){
  str += " <A href =\"../html/" + path + "-" + fname + ".html" +" \"><IMG hspace=0  width= 100 src = \"" + imgpath + "\" ></A> \n";
  }else{
   str += " <A href =\""+imgpath+" ><IMG hspace=0  width= 100 src = \"" + imgpath + "\" ></A> \n";
 }
  str += "</ul>\n";
 // alert(str);
  
  document.all.Contents.innerHTML = str;
}


function showphoto(j,path,fname) {
 	  img = document.all.XX1;
 if (img.filters) {
	 img.filters.item(0).Apply();
	 img.src ="../photo/"+path+fname+ + j.toString(10) +".jpg";
     img.filters.item(0).Play();
     i=j;
  }
	  
}

function makeIndex(typ) {
  if (!document.all) {
    return;
  }
    var str= "";
// alert(str);

  if(typ =="1"){
   str += "<p align=left><A href = \"./20091107-bewho.html\"><font class=maintext>BE WHO YOU WERE BORN TO BE</font></font></A> ";
   str += "<p align=left><A href = \"./20091107-secret.html\"><font class=maintext>SECRET GAME</font></font></A> ";
   str += "<p align=left><A href = \"./20090503-sing.html\"><font class=maintext>SING SING SING</font></font></A> ";
   str += "<p align=left><A href = \"./20081019-stella.html\"><font class=maintext>STELLA ERRANS</font></font></A> ";
   str += "<p align=left><A href = \"./20071123-libertango.html\"><font class=maintext>LIBER TANGO</font></font></A> ";
   str += "<p align=left><A href = \"./20070504-dejavu.html\"><font class=maintext>DEJA VU</font></font></A> ";
   str += "<p align=left><A href = \"./20061123-youput.html\"><font class=maintext>YOU PUT A MOVE ON MY HEART</font></font></A> ";
   str += "<p align=left><A href = \"./20060504-himitsu.html\"><font class=maintext>HIMITSU</font></font></A> ";
   str += "<p align=left><A href = \"./20051127-thenyou.html\"><font class=maintext>THEN YOU LOOK AT ME</font></font></A> ";
   str += "<p align=left><A href = \"./20050504-mernoir.html\"><font class=maintext>MER NOIR</font></font></A> ";
   str += "<p align=left><A href = \"./20041114-shapeof.html\"><font class=maintext>SHAPE OF MY HEART</font></font></A> ";
   str += "<p align=left><A href = \"./20040504-beautiful.html\"><font class=maintext>BEAUTIFUL</font></font></A> ";
   str += "<p align=left><A href = \"./200312-voodoochild.html\"><font class=maintext>VOODOO CHILD</font></font></A> ";
   str += "<p align=left><A href = \"./200304-silencemust.html\"><font class=maintext>SILENCE MUST BE HEARD</font></font></A> ";
   str += "<p align=left><A href = \"./200212-hair.html\"><font class=maintext>HAIR</font></font></A> ";
   str += "<p align=left><A href = \"./200012-moving.html\"><font class=maintext>MOVING</font></font></A> ";
   str += "<p align=left><A href = \"./199912-shadowland.html\"><font class=maintext>SHADOW LAND</font></font></A> ";
   str += "<p align=left><A href = \"./199811-dreamin.html\"><font class=maintext>DREAM IN COLOR</font></font></A> ";
  }else if(typ == 2){
   str += "<p align=left><A href = \"./20091107-kaori.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20091107-kaori/kaori-14.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./20090908-kaori.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-kaori/kaori1.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./20090530-Destiny.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20090530-Destiny/destiny6.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./20090503-believe.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20090503-believe/believe1.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./20081019-sing.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20081019-sing/sing1.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./20080808-kaori.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20080808-kaori/20080808-kaori7.jpg"  + "\" ></font></A> ";
 //  str += "<p align=left><A href = \"./20080808-mariko.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/20080808-mariko/20080808-mariko23.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./kaori.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/kaori/kaori5.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./profileindex.html\"><font class=maintext>PROFILE</font></font></A> ";
  //alert(str);
  }else if(typ == 3){
   str += "<p align=left><A href = \"./lessonindex.html\"><font class=maintext>LESSON</font></font></A> ";
   str += "<p align=left><A href = \"./keiko.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/keiko/keiko1.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./keiko2.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/keiko2/keiko2-21.jpg"  + "\" ></font></A> ";
   str += "<p align=left><A href = \"./photo-20090412.html\"><font class=maintext><IMG hspace=0  width= 100 src = \"" + "../photo/keiko/090412/090412-1.jpg"  + "\" ></font></A> ";
  //alert(str);
  }else if(typ == 4){//stage
   str += "<p align=left><A href = \"./20091107-bewho.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20091107-bewho/bewho11.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20091107-secret.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20091107-secret/secret1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090503-sing.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090503-sing/sing3.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20081019-stella.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20081019-stella/stella1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20071123-libertango.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20071123-libertango/libertango1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20070504-dejavu.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20070504-dejavu/dejavu1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20061123-youput.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20061123-youput/youput1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20060504-himitsu.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20060504-himitsu/himitsu1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20051127-thenyou.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20051127-thenyou/thenyou1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20050504-mernoir.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20050504-mernoir/mernoir1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20041114-shapeof.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20041114-shapeof/shapeof1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20040504-beautiful.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20040504-beautiful/beautiful1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./200312-voodoochild.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200312-voodoochild/voodoochild1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./200304-silencemust.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200304-silencemust/silencemust1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./200212-hair.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200212-hair/hair1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./200012-moving.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200012-moving/moving1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./199912-shadowland.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/199912-shadowland/shadowland1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./199811-dreamin.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/199811-dreamin/dreamin1.jpg"  + "\" ></A> ";
  //alert(str);
  }else if(typ == 5){//life
   str += "<p align=left><A href = \"./photo-20091121.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20091121/20091121-24.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./photo-20090919.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20090919/20090919-8.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./photo-20090514.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20090514/20090514-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./photo-20090405.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20090405/20090405-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./photo-20081214.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20081214/20081214-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./photo-20080500.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/life/photo-20080500/20080500-1.jpg"  + "\" ></A> ";
  //alert(str);
  }

  else if(typ == 6){//life
   str += "<p align=left><A href = \"./20090908-mariko1.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/1/001-19.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko2.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/2/002-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko3.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/3/003-5.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko4.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/4/004-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko5.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/5/005-18.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko6.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/6/006-20.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko7.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/7/007-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko8.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/8/008-14.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko9.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/9/009-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko10.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/10/010-1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko11.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/11/011-23.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090908-mariko-finale.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090908-mariko/finale/finale-1.jpg"  + "\" ></A> ";
  //alert(str);
  }else if(typ == 7){//stage
//   str += "<p align=left><A href = \"./20091107-bewho-DVD.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20091107-bewho/bewho11.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20091107-secret-DVD.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20091107-secret/secret1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20090503-sing-DVD.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20090503-sing/sing3.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20081019-stella-DVD.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20081019-stella/stella1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20071123-libertango.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20071123-libertango/libertango1.jpg"  + "\" ></A> ";
   str += "<p align=left><A href = \"./20070504-dejavu-DVD.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20070504-dejavu/dejavu1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20061123-youput.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20061123-youput/youput1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20060504-himitsu.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20060504-himitsu/himitsu1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20051127-thenyou.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20051127-thenyou/thenyou1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20050504-mernoir.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20050504-mernoir/mernoir1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20041114-shapeof.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20041114-shapeof/shapeof1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./20040504-beautiful.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/20040504-beautiful/beautiful1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./200312-voodoochild.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200312-voodoochild/voodoochild1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./200304-silencemust.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200304-silencemust/silencemust1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./200212-hair.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200212-hair/hair1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./200012-moving.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/200012-moving/moving1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./199912-shadowland.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/199912-shadowland/shadowland1.jpg"  + "\" ></A> ";
//   str += "<p align=left><A href = \"./199811-dreamin.html\"><IMG hspace=0  width= 100 src = \"" + "../photo/199811-dreamin/dreamin1.jpg"  + "\" ></A> ";
  //alert(str);
}
 else{
 // alert("else");
  }
  //alert(str);
  
  document.all.ContentsIdx.innerHTML = str;
  document.all.ContentsIdx.style.visibility = "visible";
}




function makeHeader(typ) {
   var str= "";
   str += "<TABLE  align =left border=0> <TR><TD align=left>";
   str += " <p align=left><IMG hspace=0 src=\"../photo/logo/logotmp1.jpg\" ><IMG hspace=0 src=\"../photo/logo/logotmp2.jpg\" ><IMG hspace=0 src=\"../photo/logo/logotmp3.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp4.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp5.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp6.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp7.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp8.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp9.jpg\"><IMG hspace=0 src=\"../photo/logo/logotmp10.jpg\"></p>";
	document.all.ContentHeader.innerHTML = str;
  document.all.ContentHeader.style.visibility = "visible";


}