// +Areca catechu+ JavaScript Document

var Areca= "http://arecacatechu.jp/";

/*Date lastModified*/
DNA2 = new Date(document.lastModified)
Dark = DNA2.getFullYear()
Dai= DNA2.getMonth()+1
Hiwatari = DNA2.getDate();

Wiz=new Array();
Wiz[1] = 'January';
Wiz[2] = 'February';
Wiz[3] = 'March';
Wiz[4] = 'April';
Wiz[5] = 'May';
Wiz[6] = 'June';
Wiz[7] = 'July';
Wiz[8] = 'August';
Wiz[9] = 'September';
Wiz[10] = 'October';
Wiz[11] = 'November';
Wiz[12] = 'December';

DNA1 = "LastUpdate : "+Wiz[Dai]+"."+Hiwatari+"."+Dark;
//DNA = "LastUpdate : March.21.2007";



/*Top Illust*/

/*random*/
lm=new Array();

lm[0]='img/top/random/01.jpg';
lm[1]='img/top/random/01.jpg';
lm[2]='img/top/random/02.jpg';
lm[3]='img/top/random/03.jpg';
lm[4]='img/top/random/04.jpg';
lm[5]='img/top/random/05.jpg';
lm[6]='img/top/random/06.jpg';
lm[7]='img/top/random/07.jpg';
lm[8]='img/top/random/08.jpg';
lm[9]='img/top/random/09.jpg';
lm[10]='img/top/random/10.jpg';
lm[11]='img/top/random/11.jpg';
lm[12]='img/top/random/12.jpg';
lm[13]='img/top/random/13.jpg';
lm[14]='img/top/random/14.jpg';
lm[15]='img/top/random/15.jpg';
lm[16]='img/top/random/16.jpg';
lm[17]='img/top/random/17.jpg';
lm[18]='img/top/random/18.jpg';
lm[19]='img/top/random/19.jpg';
lm[20]='img/top/random/20.jpg';
lm[21]='img/top/random/21.jpg';
lm[22]='img/top/random/22.jpg';
lm[23]='img/top/random/23.jpg';
lm[24]='img/top/random/24.jpg';
lm[25]='img/top/random/25.jpg';
lm[26]='img/top/random/26.jpg';
lm[27]='img/top/random/27.jpg';
lm[28]='img/top/random/28.jpg';
lm[28]='img/top/random/29.jpg';
lm[28]='img/top/random/30.jpg';
lm[28]='img/top/random/31.jpg';
lm[28]='img/top/random/32.jpg';
lm[28]='img/top/random/33.jpg';

/*ランダム画像*/
function Lagoon(){
	a=Math.floor(Math.random()*lm.length);
	document.images["TopIllust"].src=lm[a];
}

/*画像固定060915
function Lagoon(){
	document.images["TopIllust"].src=lm[28];
}*/


/*Menu*/

function Goa(o){

Teela = new Array(3); 

Teela[0] = "index.html";
Teela[1] = "top.html";
Teela[2] = "issue.html";
Teela[3] = "about.html";
Teela[4] = "link.html";
Teela[5] = "download.html";

	o = window.open(Areca+Teela[o],'_top');

}


/*Issue Menu #Name*/
function Hiead(o,x){

Teela = new Array(8); 

Teela[0] = "index.html";
Teela[1] = "issue_c.html";
Teela[2] = "issue_a.html";
Teela[3] = "issue_o.html";
Teela[4] = "issue_c_le.html";
Teela[5] = "issue_c_dn.html";
Teela[6] = "issue_c_mk.html";
Teela[7] = "issue_c_bp.html";
Teela[8] = "issue_c_rm.html";
Teela[9] = "issue_c_leez.html";

	o = window.open(Teela[o]+'#'+x,'_self');

}

/*Download Menu #Name*/
function Hiead2(o){

Teela2 = new Array(8); 

Teela2[0] = "index.html";
Teela2[1] = "img/decade_s.jpg";
Teela2[2] = "img/decade_l.jpg";

	o = window.open(Areca+'download/'+Teela2[o],'_blank');

}

/*ClassChange*/
function Kizna(e,x){
	document.getElementById(e).className=x; 
} 

/*ImgChange*/
function Zero(ox,ax){

document.images[ox].src =  Areca+"img/"+ox+"_"+ax+".gif";

}

/*ImgChange News*/
function Zero2(ox,ax,tx){
document.images[ox].src = Areca+"img/news/20"+tx+"/"+ox+"_"+ax+".jpg";
}

/*ImgTimer*/
/*if(navigator.appVersion.charAt(0) >= "3"){
  img = new Array();
  img[0] = new Image; img[0].src = "img/sign.gif";
  img[1] = new Image; img[1].src = "img/sign_on.gif";

}
function Ingrid(Ernn,Eeva){  
  if(navigator.appVersion.charAt(0) >= "3"){
    document.images["img" +Ernn].src=img[Eeva].src;
  }
}
function Ingrid2(Agui, Tellia, Luhma) {
setTimeout("Ingrid("+Agui+","+Tellia+")", Luhma);
}
*/

function win(special){
renew = window.open(special,"new","width=870,height=650");
renew.focus();
}