//ヘッダー
var tableColor="#ffffff";
var menuColor="#ffffff";
var cellWidth=86;
var cellHeight=20;
var cellWidth2=9;
var menuWidth=0;

function setTD(width,bgcolor,href,title,sTitle){
	if (width!="*") menuWidth+=width;
	var xStr="";
	var className="";
	if (width=="") width="";
	//if (bgcolor=="") bgcolor="#ffffff";
	if (title==document.title){
		//bgcolor="#aaffff";
		className=" class=\"activepage\"";
	}
	xStr += "<td align=center valign=middle width=\""+width+"\" bgcolor=\""+bgcolor+"\" nowrap>";
	xStr += "<tt><span "+className+"><a href=\""+href+"\"><nobr>"+sTitle+"</nobr></a></span></tt>";
	xStr += "</td>";
	return xStr;
}


function setTD2(width,height,image){
	menuWidth+=width;
	return "<td width='"+width+"'><img src='"+image+"' width='"+width+"' height='"+height+"' border='0'></td>\n";
}

function setMenu(xColor){
	var xStr = "";
	var image2="images/menu2.gif";
	xStr += "<div class=\"menu\">"
	xStr += "<table bgcolor=\""+xColor+"\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
	xStr += "<tr height=\""+cellHeight+"\">";
	xStr += setTD2(cellWidth2,cellHeight,"images/menu3.gif");
	xStr += setTD(cellWidth,"","index.htm","野並享子通信","ホーム");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","profile.htm","自己紹介","自己紹介");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","ketui.htm","決意","思い");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","tuusin.htm","きょう子通信","きょう子通信");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","diary.htm","デジカメ日記","デジカメ日記");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	/*
	xStr += setTD(cellWidth,"","news.htm","議会報告","議会報告");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","bbs.htm","国みんなの声","みんなの声");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	xStr += setTD(cellWidth,"","links.htm","リンク集","リンク集");
	xStr += setTD2(cellWidth2,cellHeight,image2);
	*/
	//xStr += setTD("*",xColor,"","","<font color=white>.</font>");
	//xStr += setTD("*",xColor,"/","野洲市議団","<font size=-1 color=gray>野洲市議団へ</font>");
	xStr += "<td align=center valign=middle width=\"*\" nowrap>";
	xStr += "<tt><font size=-2 color=gray><span class=\"menu2\">";
	xStr += "<a href=\"/\">野洲市議団</a>";
	xStr += "｜";
	xStr += "<a href=\"/minpou.htm\">やす民報</a>";
	xStr += "｜";
	xStr += "<a href=\"/news.htm\">市議団ﾆｭｰｽ</a>";
	xStr += "｜";
	xStr += "<a href=\"/report.htm\">一般質問</a>";
	xStr += "｜";
	xStr += "<a href=\"/bbs.htm\">掲示板</a>";
	xStr += "</span></font></tt>";
	xStr += "</td>";
	xStr += "</tr>";
	xStr += "</table>";
	xStr += "</div>";
	return xStr;
}

var xStr="";
var menuStr=setMenu(menuColor);
xStr += "<table bgcolor=\""+tableColor+"\" align=center width=\"800\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
xStr += "<tr height=90><td valign=middle>";
xStr += "<a href=\"index.htm\"><img src=\"images/title8.gif\" alt=\"ホーム\"  border=\"0\"></a>";
xStr += "</td></tr>";
//xStr += "<tr height=5><td bgcolor=#ff8888></td></tr>";
//xStr += "<tr height=10><td bgcolor=#ffffff></td></tr>";
xStr += "<tr><td>";
xStr += "<img src=\"images/menu4.gif\" height=2 width="+(cellWidth2-2)+" border=\"0\">";
xStr += "<img src=\"images/menu1.gif\" height=2 width="+(menuWidth-cellWidth2-5)+" border=\"0\"><br>";
xStr += "</td></tr>";
xStr += "<tr><td>";
xStr += menuStr;
xStr += "</td></tr>";
xStr += "<tr><td>";
xStr += "<img src=\"images/menu1.gif\" height=2 width=100% border=\"0\"><br>";
xStr += "</td></tr>";
xStr += "</table>";
document.write(xStr);

function mailto(id,domain,msg,img){
	mail=id+"@"+domain;
	str="<a href=\"mailto:"+mail+"\">";
	if(msg==""){
		str+=mail;
	}else{
		str+=msg;
	}
	if(img==1){str+="<img src=\"Images/mail.gif\" alt=\"メール\" border=\"0\" align=bottom>";}
	str+="</a>";
	document.write(str);
}