function movepic(img_name,img_src) {
	document[img_name].src=img_src;
}

function renderHeader(page) {
	document.write("<table id=\"header\" align=\"center\">");
	document.write("	<tr>");
	document.write("	<td id=\"logo\" width=\"271\" height=\"266\" background=\"img/td11.gif\">");
	document.write("		<img src=\"img/small8col.gif\" lowsrc=\"img/logo_low.gif\" width=\"271\" height=\"266\" alt=\"logo\" /></td>");
	document.write("	<td width=\"308\" height=\"266\">");
	var str = "		<img src=\"img/001.jpg\" width=\"308\" height=\"39\" alt=\"img\" />";
	// index
	if (page=="index") {
		str = str + "<img src=\"img/gol_z.jpg\" width=\"150\" height=\"35\" alt=\"Головна\" />";
	} else {
		str = str + "<a href=\"index.html\" onmouseover=\"movepic('index','img/gol_o.jpg')\" onmouseout=\"movepic('index','img/gol_g.jpg')\"><img name=\"index\" src=\"img/gol_g.jpg\" width=\"150\" height=\"35\" alt=\"Головна\" /></a>";
	}
	str = str + "<img src=\"img/0022.jpg\" width=\"158\" height=\"35\" alt=\"img\" /><img src=\"img/0031.gif\" width=\"45\" height=\"44\" alt=\"img\" />";
	if (page=="about") {
		str = str + "<img src=\"img/pro_z.jpg\" width=\"127\" height=\"44\" alt=\"Учасники гурту\" />";
	} else {
		str = str + "<a href=\"about.html\" onmouseover=\"movepic('about','img/pro_o.jpg')\" onmouseout=\"movepic('about','img/pro_g.jpg')\"><img name=\"about\" src=\"img/pro_g.jpg\" width=\"127\" height=\"44\" alt=\"Учасники гурту\" /></a>";
	}
	str = str + "<img src=\"img/0033.jpg\" width=\"136\" height=\"44\" alt=\"img\" /><img src=\"img/0041.gif\" width=\"95\" height=\"39\" alt=\"img\" />";
	if (page=="music") {
		str = str + "<img name=\"music\" src=\"img/muz_z.jpg\" width=\"119\" height=\"39\" alt=\"Дискограф&#1110;я та мультимед&#1110;а-файли\" />";
	} else {
		str = str + "<a href=\"music.html\" onmouseover=\"movepic('music','img/muz_o.jpg')\" onmouseout=\"movepic('music','img/muz_g.jpg')\"><img name=\"music\" src=\"img/muz_g.jpg\" width=\"119\" height=\"39\" alt=\"Дискограф&#1110;я та мультимед&#1110;а-файли\" /></a>";
	}
	str = str + "<img src=\"img/0043.jpg\" width=\"94\" height=\"39\" alt=\"img\" /><img src=\"img/0051.gif\" width=\"137\" height=\"36\" alt=\"img\" />";
	if (page=="photo") {
		str = str + "<img name=\"photo\" src=\"img/fot_z.jpg\" width=\"171\" height=\"36\" alt=\"Наш&#1110; фото\" />";
	} else {
		str = str + "<a href=\"http://pics.livejournal.com/nikkolaskif/gallery/00004480\" onmouseover=\"movepic('photo','img/fot_o.jpg')\" onmouseout=\"movepic('photo','img/fot_g.jpg')\"><img name=\"photo\" src=\"img/fot_g.jpg\" width=\"171\" height=\"36\" alt=\"Наш&#1110; фото\" /></a>";
	}
	str = str + "<img src=\"img/0061.gif\" width=\"215\" height=\"29\" alt=\"img\" />";
	if (page=="bill") {
		str = str + "<img name=\"bill\" src=\"img/afi_z.jpg\" width=\"93\" height=\"29\" alt=\"Концертна аф&#1110;ша\" />";
	} else {
		str = str + "<a href=\"bill.html\" onmouseover=\"movepic('bill','img/afi_o.jpg')\" onmouseout=\"movepic('bill','img/afi_g.jpg')\"><img name=\"bill\" src=\"img/afi_g.jpg\" width=\"93\" height=\"29\" alt=\"Концертна аф&#1110;ша\" /></a>";
	}
	str = str + "<img src=\"img/007.gif\" width=\"308\" height=\"44\" alt=\"img\" /></td>";
	document.write(str);
	document.write("	<td width=\"171\" height=\"266\">");
	str = "<img src=\"img/101.jpg\" width=\"171\" height=\"142\" alt=\"img\" /><img src=\"img/1021.jpg\" width=\"101\" height=\"27\" alt=\"img\" />";
	if (page=="links") {
		str = str + "<img name=\"links\" src=\"img/lin_z.jpg\" width=\"70\" height=\"27\" alt=\"Рекоменду&#1108;мо\" />";
	} else {
		str = str + "<a href=\"links.html\" onmouseover=\"movepic('links','img/lin_o.jpg')\" onmouseout=\"movepic('links','img/lin_g.jpg')\"><img name=\"links\" src=\"img/lin_g.jpg\" width=\"70\" height=\"27\" alt=\"Рекоменду&#1108;мо\" /></a>";
	}
	if (page=="articles") {
		str = str + "<img name=\"articles\" src=\"img/sta_z.jpg\" width=\"114\" height=\"34\" alt=\"Статт&#1110; - наш&#1110; &#1110; позичен&#1110;\" />";
	} else {
		str = str + "<a href=\"articles.html\" onmouseover=\"movepic('articles','img/sta_o.jpg')\" onmouseout=\"movepic('articles','img/sta_g.jpg')\"><img name=\"articles\" src=\"img/sta_g.jpg\" width=\"114\" height=\"34\" alt=\"Статт&#1110; - наш&#1110; &#1110; позичен&#1110;\" /></a>";
	}
	str = str + "<img src=\"img/1032.gif\" width=\"57\" height=\"34\" alt=\"img\"/><img src=\"img/1041.gif\" width=\"78\" height=\"23\" alt=\"img\" />";
	if (page=="questbook") {
		str = str + "<img name=\"guestbook\" src=\"img/vid_z.jpg\" width=\"93\" height=\"23\" alt=\"Залиште ваш&#1110; враження\" />";
	} else {
		str = str + "<a href=\"http://www.narod.ru/guestbook/?owner=32817913\" onmouseover=\"movepic('guestbook','img/vid_o.jpg')\" onmouseout=\"movepic('guestbook','img/vid_g.jpg')\"><img name=\"guestbook\" src=\"img/vid_g.jpg\" width=\"93\" height=\"23\" alt=\"Залиште ваш&#1110; враження\" /></a>";
	}
	if (page=="promo") {
		str = str + "<img name=\"promo\" src=\"img/promo_z.jpg\" width=\"77\" height=\"22\" alt=\"&#1030;нформац&#1110;я для орган&#1110;затор&#1110;в, промоутер&#1110;в та преси\" />";
	} else {
		str = str + "<a href=\"promopage.html\" onmouseover=\"movepic('promo','img/promo_o.jpg')\" onmouseout=\"movepic('promo','img/promo_g.jpg')\"><img name=\"promo\" src=\"img/promo_g.jpg\" width=\"77\" height=\"22\" alt=\"&#1030;нформац&#1110;я для орган&#1110;затор&#1110;в, промоутер&#1110;в та преси\" /></a>";
	}
	str = str + "<img src=\"img/1052.gif\" width=\"94\" height=\"22\" alt=\"img\" /><img src=\"img/106.gif\" width=\"171\" height=\"18\" alt=\"img\" /></td>";
	document.write(str);
	document.write("	</tr>");
	document.write("</table>");
}