function showWebRings(){
	infoWin = window.open("info2.html","infoFeelingOfSocks","width=300,height=450,left=0,top=0,scrollbars=1,resizable=1"); 
	infoWin.blur();
}
function setNews(keyword, information){
	if (keyword == "on"){ document.write("<br>- what's new -<br>"); }
	else if (keyword == "on2"){ document.write("<br>- coming soon -<br>"); }
	else if (keyword == "on3"){ document.write("<br>- information -<br>"); }
	else if (keyword == "off"){ document.write("<br><br>"); }
	else if (keyword == "null"){ document.write("<class='word9G'>",information,"<br>"); }
	else{ document.write("<a href='",keyword,"' class='word9G'>",information, "<br></a>"); }
}
function setTopRight(){
	topright = new Array();
	topright[0] = "images/imageHeaderRight.gif";
	topright[1] = "images/imageHeaderRight2.gif";
	topright[2] = "images/imageHeaderRight3.gif";
	topright[3] = "images/imageHeaderRight4.gif";
	topright[4] = "images/imageHeaderRight5.gif";
	topright[5] = "images/imageHeaderRight6.gif";
	topright[6] = "images/imageHeaderRight7.gif";
	topright[7] = "images/imageHeaderRight8.gif";
	topright[8] = "images/imageHeaderRight9.gif";
	topright[9] = "images/imageHeaderRight10.gif";
	topright[10] = "images/imageHeaderRight11.gif";
	topright[11] = "images/imageHeaderRight12.gif";
	topright[12] = "images/imageHeaderRight13.gif";
	var tmonth = (new Date()).getMonth();
	var tdate = (new Date()).getDate();
	var i = 0;
	if (tmonth == 0 && tdate == 1) {i = 3;}
	if (tmonth == 0 && tdate == 2) {i = 4;}
	if (tmonth == 0 && tdate == 3) {i = 5;}
	if (tmonth == 1 && tdate == 3) {i = 6;}
	if (tmonth == 4 && tdate == 4) {i = 12;}
	if (tmonth == 4 && tdate == 5) {i = 7;}
	if (tmonth == 2 && tdate == 3) {i = 9;}
	if (tmonth == 6 && tdate == 7) {i = 8;}
	if (tmonth == 9 && tdate == 31) {i = 10;}
	if (tmonth == 11 && tdate == 24) {i = 2;}
	if (tmonth == 11 && tdate == 25) {i = 1;}
	if (tmonth == 11 && tdate == 31) {i = 11;}
	document.write("<a href='top.html' target='mainWindow'><img src='images/imageHeaderLeft.gif' width='131' height='100' border='0' alt='トップページ'></a><a href='about.html' target='mainWindow'><img src='",topright[i],"' width='589' height='100' border='0' alt='feeling of socksについて'></a></td></tr>");
}
function setImageWelcome(){
	welcome = new Array();
	welcome[0] = "images/imageWelcome.gif";
	welcome[1] = "images/imageWelcome09.gif";
	welcome[2] = "images/imageWelcome11.gif";
	welcome[3] = "images/imageWelcome12.gif";
	welcome[4] = "images/imageWelcome13.gif";
	welcome[5] = "images/imageWelcome14.gif";
	welcome[6] = "images/imageWelcome15.gif";
	welcome[7] = "images/imageWelcome17.gif";
	welcome[8] = "images/imageWelcome18.gif";
	welcome[9] = "images/imageWelcome19.gif";
	welcome[10] = "images/imageWelcome20.gif";
	welcome[11] = "images/imageWelcome24.jpg";
	welcome[12] = "images/imageWelcome25.gif";
	welcome[13] = "images/imageWelcome26.gif";
	welcome[14] = "images/imageWelcome27.gif";
	welcome[15] = "images/imageWelcome28.gif";
	welcome[16] = "images/imageWelcome29.gif";
	// 0:通常, 1:正月, 2:クリスマス, 3:紅葉, 4:桜, 5:鯉のぼり, 6:梅雨, 7:通常(昼寝)
	// 8:納涼, 9:猛暑, 10:秋風, 11:花見, 12:潜水艦, 13:通常(門番), 14:通常(乳母車)
	// 15:大掃除，16:兜
	var wmonth = (new Date()).getMonth();
	var wdate = (new Date()).getDate();
	var i = 0;
	if (wdate%4 == 0) {i = 0;}
	if (wdate%4 == 1) {i = 7;}
	if (wdate%4 == 2) {i = 13;}
	if (wdate%4 == 3) {i = 14;}
	// 新年
	if (wmonth == 0  && wdate >= 1  && wdate <= 15) {i = 1;}
	// 春
	if (wmonth == 2  && wdate >= 15 && wdate <= 25) {i = 4;}
	if (wmonth == 2  && wdate >= 26 && wdate <= 31) {i = 11;}
	if (wmonth == 3  && wdate >= 1  && wdate <= 10) {i = 11;}
	//端午の節句
	if (wmonth == 3  && wdate >= 20 && wdate <= 30 && wdate%2 == 0) {i = 16;}
	if (wmonth == 4  && wdate >= 1  && wdate <= 5  && wdate%2 == 0) {i = 16;}
	if (wmonth == 3  && wdate >= 20 && wdate <= 30 && wdate%2 == 1) {i = 5;}
	if (wmonth == 4  && wdate >= 1  && wdate <= 5  && wdate%2 == 1) {i = 5;}
	// 梅雨
	if (wmonth == 5  && wdate >= 15 && wdate <= 30) {i = 6;}
	// 夏
	if (wmonth == 6  && wdate >= 20 && wdate <= 31) {i = 9;}
	if (wmonth == 7  && wdate >= 1  && wdate <= 5 ) {i = 9;}
	if (wmonth == 7  && wdate >= 6  && wdate <= 9 ) {i = 12;}
	if (wmonth == 7  && wdate >= 10 && wdate <= 15) {i = 8;}
	if (wmonth == 7  && wdate >= 16 && wdate <= 25) {i = 12;}
	if (wmonth == 7  && wdate >= 26 && wdate <= 31) {i = 9;}
	// 秋
	if (wmonth == 10 && wdate >= 1  && wdate <= 10) {i = 10;}
	if (wmonth == 10 && wdate >= 11 && wdate <= 20) {i = 3;}
	if (wmonth == 10 && wdate >= 21 && wdate <= 30) {i = 10;}
	// 年末
	if (wmonth == 11 && wdate >= 1  && wdate <= 25) {i = 2;}
	if (wmonth == 11 && wdate >= 26 && wdate <= 31) {i = 15;}
	document.write("<img src='",welcome[i],"' width='495' height='100' alt='ようこそ'>");
}
function setTopics(setimage, opentype, url){
	if (opentype != "null" && url != "null"){
		document.write("<tr><td width='130' height='115' align='center'><a href='",url,"' target='",opentype,"'>");
		document.write("<img src='",setimage,"' border='0' width='90' height='115' alt='最近の話題'></a></td></tr>");
	}
	else{
		var tsec = (new Date()).getSeconds();
		var tday = (new Date()).getDay();
		topicimg = new Array();
		// 0:近況，1:お行儀教室，2:黒鳥交遊録，3:賛否両論，4:サイト紹介，5:バウリンガル
		// 6:親戚探訪，7:価値観，8:手編犬服，9:水中交遊録，10:絵日記，11:親戚探訪
		// 12:銘苅翼君，13:銘苅翼君，14:ウッドマン，15:銘苅翼君
		topicimg[0] = "images/topics01.gif";	topicimg[1] = "images/topics02.gif";	topicimg[2] = "images/topics03.gif";
		topicimg[3] = "images/topics04.gif";	topicimg[4] = "images/topics05.gif";	topicimg[5] = "images/topics06.gif";
		topicimg[6] = "images/topics07.gif";	topicimg[7] = "images/topics08.jpg";	topicimg[8] = "images/topics09.gif";
		topicimg[9] = "images/topics10.gif";	topicimg[10] = "images/topics11.gif";	topicimg[11] = "images/topics12.gif";
		topicimg[12] = "images/topics13.gif";	topicimg[13] = "images/topics14.gif";	topicimg[14] = "images/topics15.gif";
		topicimg[15] = "images/topics16.gif";
		topicadr = new Array();
		topicadr[0] = "profile.html#newTopic";	topicadr[1] = "profile01.html";			topicadr[2] = "profile02.html";
		topicadr[3] = "pandc.html";				topicadr[4] = "about.html";				topicadr[5] = "profile03.html";
		topicadr[6] = "flashex01.html";			topicadr[7] = "flashex02.html";			topicadr[8] = "profile07.html";
		topicadr[9] = "profile02.html#cult3";	topicadr[10] = "profile13.html";		topicadr[11] = "profile05.html";
		topicadr[12] = "http://motor.geocities.jp/tubasa_mekaru/";
		topicadr[13] = "http://motor.geocities.jp/tubasa_mekaru/";
		topicadr[14] = "http://www.woodman77.com/";
		topicadr[15] = "http://motor.geocities.jp/tubasa_mekaru/";
		var i = 0;
		var j = tsec % 10
		var k = tday % 2

		if (k == 0) {
			switch(j){
			case  0:i=0;	break;		case  1:i=1;	break;
			case  2:i=8;	break;		case  3:i=10;	break;
			case  4:i=12;	break;		case  5:i=13;	break;
			case  6:i=15;	break;		case  7:i=15;	break;
			case  8:i=14;	break;		case  9:i=14;	break;
		}}
		else if (k == 1) {
			switch(j){
			case  0:i=0;	break;		case  1:i=1;	break;
			case  2:i=3;	break;		case  3:i=8;	break;
			case  4:i=12;	break;		case  5:i=13;	break;
			case  6:i=15;	break;		case  7:i=15;	break;
			case  8:i=14;	break;		case  9:i=15;	break;
		}}

		if (i == 12 ||  i == 13 || i == 14 || i == 15){
			document.write("<tr><td width='130' height='115' align='center'><a href='",topicadr[i],"' target='_blank'>");
		}
		else{
			document.write("<tr><td width='130' height='115' align='center'><a href='",topicadr[i],"' target='mainWindow'>");
		}
		document.write("<img src='",topicimg[i],"' border='0' width='90' height='115' alt='最近の話題'></a></td></tr>");
	}
}
function setUpdateDay(){
	LA=new Date(document.lastModified);
	NAvi=navigator.appVersion.indexOf("(",0);
	NAv=navigator.appVersion.substring(NAvi+1,NAvi+5);
	NA=navigator.appName;
	MNA=navigator.appName+navigator.appVersion.substring(0,1)+NAv;
	Ms="Last Update: ";
	if(NA=="Netscape"){
		Ye=LA.getFullYear();
		Mo=LA.getMonth()+1;
		Da=LA.getDate();
		document.write(Ms+Mo+"/"+Da+","+Ye);
	}
	else if(MNA=="Microsoft Internet Explorer4comp"){
		Ye=LA.getFullYear();
		Mo=LA.getMonth()+1;
		Da=LA.getDate();
		document.write(Ms+Mo+"/"+Da+","+Ye);
	}
	else if(MNA=="Microsoft Internet Explorer2comp"){
		LE=document.lastModified.length;
		Ye=document.lastModified.substring(LE-4,LE);
		Mo=document.lastModified.substring(LE-19,LE-17);
		Da=document.lastModified.substring(LE-17,LE-14);
		document.write(Ms+Mo+"/"+Da+","+Ye);
	}
	else{
		document.write(Ms+document.lastModified);
	}
}
