personsp = new Image(); personsp.src = "images/personsp.GIF";
contactp = new Image(); contactp.src = "images/contactp.GIF";
pricep = new Image(); pricep.src = "images/pricep.GIF";
fotop = new Image(); fotop.src = "images/fotop.GIF";

menp = new Image(); menp.src = "images/menp.GIF";
womp = new Image(); womp.src = "images/womp.GIF";
besp = new Image(); besp.src = "images/besp.GIF";
rakp = new Image(); rakp.src = "images/rakp.GIF";
erecp = new Image(); erecp.src = "images/erecp.GIF";
botoxp = new Image(); botoxp.src = "images/botoxp.GIF";
lazerfaqp = new Image(); lazerfaqp.src = "images/lazerfaqp.GIF";
vpchp = new Image(); vpchp.src = "images/vpchp.GIF";
varikozp = new Image(); varikozp.src = "images/varikozp.GIF";
uziaboutp = new Image(); uziaboutp.src = "images/uziaboutp.GIF";

mainp = new Image(); mainp.src = "images/mainp.GIF";
aboutp = new Image(); aboutp.src = "images/aboutp.GIF";
newsp = new Image(); newsp.src = "images/newsp.GIF";
questionp = new Image(); questionp.src = "images/questionp.GIF";
faqp = new Image(); faqp.src = "images/faqp.GIF";
searchp = new Image(); searchp.src = "images/searchp.GIF";

mbutp0 = new Image(); mbutp0.src = "images/mbutp0.GIF";
mbutp1 = new Image(); mbutp1.src = "images/mbutp1.GIF";
mbutp2 = new Image(); mbutp2.src = "images/mbutp2.GIF";
mbutp3 = new Image(); mbutp3.src = "images/mbutp3.GIF";
mbutp4 = new Image(); mbutp4.src = "images/mbutp4.GIF";
mbutp5 = new Image(); mbutp5.src = "images/mbutp5.GIF";
mbutp6 = new Image(); mbutp6.src = "images/mbutp6.GIF";
mbutp7 = new Image(); mbutp7.src = "images/mbutp7.GIF";
mbutp8 = new Image(); mbutp8.src = "images/mbutp8.GIF";
mbutp9 = new Image(); mbutp9.src = "images/mbutp9.GIF";
mbutp10 = new Image(); mbutp10.src = "images/mbutp10.GIF";
mbutp11 = new Image(); mbutp11.src = "images/mbutp11.GIF";
mbutp12 = new Image(); mbutp12.src = "images/mbutp12.GIF";
mbutp13 = new Image(); mbutp13.src = "images/mbutp13.GIF";
mbutp14 = new Image(); mbutp14.src = "images/mbutp14.GIF";
mbutp15 = new Image(); mbutp15.src = "images/mbutp15.GIF";
mbutp16 = new Image(); mbutp16.src = "images/mbutp16.GIF";

dmsp = new Image(); dmsp.src = "images/dmsp.GIF";
lluszp = new Image(); lluszp.src = "images/lluszp.GIF";
newuzip = new Image(); newuzip.src = "images/newuzip.gif";
beautyp = new Image(); beautyp.src = "images/beautyp.gif";
nybp = new Image(); nyb.src = "images/nybp.gif";

function sub()
{
	document.frm.srchval.value = escape(document.frm.srchval.value);
	document.frm.submit();
}
function submenu()
{
	// 
	document.write("	<table class=menutable valign=top border=0 cellspacing=0 cellpadding=0 rules=none align=left>");
	document.write("	<tr><td width=350><span id=aboutmenu>");
	document.write("			<a href=persons.html class=linkint onMouseOver=over('button12',personsp.src);showHideLayerSwitch('aboutmenu'); onMouseOut=out('button12','images/persons.gif');showHideLayerSwitch('aboutmenu');>");
	document.write("				<IMG name=button12 SRC=images/persons.gif BORDER=0 width=100 height=30 align=top alt='Персонал'></a><br>");
	document.write("			<a href=contacts.html class=linkint onMouseOver=over('button13',contactp.src);showHideLayerSwitch('aboutmenu'); onMouseOut=out('button13','images/contact.gif');showHideLayerSwitch('aboutmenu');>");
	document.write("				<IMG name=button13 SRC=images/contact.gif BORDER=0 width=100 height=30 align=top alt='Контакты'></a><br>");
	document.write("			<a href=price.php class=linkint onMouseOver=over('button14',pricep.src);showHideLayerSwitch('aboutmenu'); onMouseOut=out('button14','images/price.gif');showHideLayerSwitch('aboutmenu');>");
	document.write("				<IMG name=button14 SRC=images/price.gif BORDER=0 width=100 height=30 align=top alt='Цены'></a><br>");
	document.write("			<a href=foto.php class=linkint onMouseOver=over('button15',fotop.src);showHideLayerSwitch('aboutmenu'); onMouseOut=out('button15','images/foto.GIF');showHideLayerSwitch('aboutmenu');>");
	document.write("				<IMG name=button15 SRC=images/foto.GIF BORDER=0 width=100 height=30 align=top alt='Фото'></a><br></span></td>");

	document.write("		<td width=300><span id=faqmenu>");
	document.write("			<a href=men.html class=linkint onMouseOver=over('button41',menp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button41','images/men.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button41 SRC=images/men.gif BORDER=0 width=150 height=30 align=top alt='Мужские болезни'></a><br>");
    document.write("			<a href=erecfaq.html class=linkint onMouseOver=over('button45',erecp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button45','images/erec.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button45 SRC=images/erec.gif BORDER=0 width=150 height=30 align=top alt='Эректильная дисфункция'></a><br>");
	document.write("			<a href=women.html class=linkint onMouseOver=over('button42',womp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button42','images/wom.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button42 SRC=images/wom.gif BORDER=0 width=150 height=30 align=top alt='Женские болезни'></a><br>");
	document.write("			<a href=besp.html class=linkint onMouseOver=over('button43',besp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button43','images/bes.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button43 SRC=images/bes.gif BORDER=0 width=150 height=30 align=top alt='Бесплодие'></a><br>");
	document.write("			<a href=rak.html class=linkint onMouseOver=over('button44',rakp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button44','images/rak.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button44 SRC=images/rak.gif BORDER=0 width=150 height=30 align=top alt='Рак'></a><br>");
	document.write("			<a href=botoxfaq.html class=linkint onMouseOver=over('button46',botoxp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button46','images/botox.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button46 SRC=images/botox.gif BORDER=0 width=150 height=30 align=top alt='Ботокс'></a><br>");
	document.write("			<a href=lazerfaq.html class=linkint onMouseOver=over('button47',lazerfaqp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button47','images/lazerfaq.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button47 SRC=images/lazerfaq.gif BORDER=0 width=150 height=30 align=top alt='Сосудистые патологии кожи'></a><br>");
	document.write("			<a href=vpchfaq.html class=linkint onMouseOver=over('button48',vpchp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button48','images/vpch.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button48 SRC=images/vpch.gif BORDER=0 width=150 height=30 align=top alt='Вирус папилломы человека'></a><br>");
	document.write("			<a href=varikoz.php class=linkint onMouseOver=over('button49',varikozp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button49','images/varikoz.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button49 SRC=images/varikoz.gif BORDER=0 width=150 height=30 align=top alt='Варикозная болезнь'></a><br>");
	document.write("			<a href=uziabout.php class=linkint onMouseOver=over('button50',uziaboutp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button50','images/uziabout.gif');showHideLayerSwitch('faqmenu');>");
	document.write("				<IMG name=button50 SRC=images/uziabout.gif BORDER=0 width=150 height=30 align=top alt='Что такое УЗИ'></a><br>");
	
	document.write("					</span></td></tr></table>");
}

function pagehead()
{
	document.write("<!-- Yandex.Metrika counter -->									");
	document.write("<div style=\"display:none;\"><script type=\"text/javascript\">	");
	document.write("(function(w, c) {												");
	document.write("	(w[c] = w[c] || []).push(function() {						");
	document.write("		try {																	");
	document.write("			w.yaCounter199026 = new Ya.Metrika({id:199026, enableAll: true});	");
	document.write("		}																		");
	document.write("		catch(e) { }															");
	document.write("	});																			");
	document.write("})(window, \"yandex_metrika_callbacks\");										");
	document.write("</script></div>																	");
	document.write("<script src=\"//mc.yandex.ru/metrika/watch.js\" type=\"text/javascript\" defer=\"defer\"></script>								");
	document.write("<noscript><div><img src=\"//mc.yandex.ru/watch/199026\" style=\"position:absolute; left:-9999px;\" alt=\"\" /></div></noscript>	");
	document.write("<!-- /Yandex.Metrika counter -->																								");
	
	
	
	//	
	document.write("	<table width=1000 height=100% border=0  cellspacing=0 cellpadding=0 rules=none align=center bgcolor=white>");

	// 	
	document.write("		<tr height=150>");
	document.write("			<td colspan=1  width=150 background=images/tl1.JPG></td>");
	document.write("			<td colspan=1 width=550 background=images/top.JPG></td>");
	document.write("			<td colspan=2 width=300  background=images/tr1.JPG></td></tr>");

	//	
	document.write("		<tr height=30 valign=middle bgcolor=darkred>");
	document.write("			<td width=150 background=images/ml.JPG><a href=index.html onMouseOver=over('button0',mainp.src); onMouseOut=out('button0','images/main.gif');><IMG name=button0 SRC=images/main.gif BORDER=0 width=75 height=30 align=right valign=top  alt='Главная'></a></td>");
	document.write("			<td width=550 background=images/redline.JPG align=left>");
	document.write("				<a href=about.html onMouseOver=over('button1',aboutp.src);showHideLayerSwitch('aboutmenu'); onMouseOut=out('button1','images/about.gif');showHideLayerSwitch('aboutmenu');>");
	document.write("					<IMG name=button1 SRC=images/about.gif BORDER=0 width=100 height=30 align=left valign=top alt='О клинике'></a>");
	document.write("				<a href=news.html onMouseOver=over('button2',newsp.src); onMouseOut=out('button2','images/news.gif');>");
	document.write("					<IMG name=button2 SRC=images/news.gif BORDER=0 width=100 height=30 align=left valign=top  alt='Новости'></a>");
	document.write("				<a href=questions.php onMouseOver=over('button3',questionp.src); onMouseOut=out('button3','images/question.gif');>");
	document.write("					<IMG name=button3 SRC=images/question.gif BORDER=0 width=150 height=30 align=left valign=top  alt='Вопросы специалисту'></a>");
	document.write("				<a id=hr href=faq.html onMouseOver=over('button4',faqp.src);showHideLayerSwitch('faqmenu'); onMouseOut=out('button4','images/faq.gif');showHideLayerSwitch('faqmenu');>");
	document.write("					<IMG name=button4 SRC=images/faq.gif BORDER=0 width=150 height=30 align=left valign=top  alt='Полезно знать'></a></td>");
	document.write("			<form id=frm name=frm method=get action=\"search.html\" ><td  width=150 background=images/redline.JPG>");

	document.write("			<input type=text name=srchval size=7 value='' onkeypress=\"if(event.keyCode==13){sub();}\">");
	document.write("			<IMG class=but name=but SRC=images/search.gif BORDER=0 width=60 height=20 alt='Поиск' align = texttop onclick=sub(); onkeyup=sub(); onMouseOver=over('but',searchp.src); onMouseOut=out('but','images/search.gif');>");

	document.write("			</td></form><td  width=150 background=images/mr.JPG></td></tr>");

	//	
	document.write("		<tr height=120>");
	document.write("			<td  width=150 background=images/tl2.JPG>");
	document.write("				<a href=llusz.html onMouseOver=over('llusz',lluszp.src); onMouseOut=out('llusz','images/llusz.gif');>");
	document.write("					<img name=llusz src=images/llusz.gif border=0 align=top alt='ЛИТТ'></a></td>");
	
	document.write("			<td  width=700 colspan=2 background=images/z.JPG valign=top>");
}

function pagemiddle()
{
	document.write("		</td><td  width=150 background=images/tr2.JPG>");
	document.write("				<a href=newuzi.html onMouseOver=over('newuzi',newuzip.src); onMouseOut=out('newuzi','images/newuzi.gif');>");
	document.write("					<img name=newuzi src=images/newuzi.gif border=0 align=top alt='Новые возможности УЗИ диагностики'></a></td>");
	document.write("		</tr>");

	//	
	document.write("		<tr><td  width=150 background=images/l.JPG valign=top bgcolor=darkred>");
	document.write("				<img src=images/menuhead.gif width=150 height=40 border=0 alt='Направления:'><BR>");
	document.write("				<a href=dvenerology.html onMouseOver=over('mbut0',mbutp0.src); onMouseOut=out('mbut0','images/mbut0.GIF');>");
	document.write("					<img name=mbut0 src=images/mbut0.GIF border=0 height=40 align=top alt='Дерматовенерология'></a>");
	document.write("				<a href=urology.html onMouseOver=over('mbut1',mbutp1.src); onMouseOut=out('mbut1','images/mbut1.GIF');>");
	document.write("					<img name=mbut1 src=images/mbut1.GIF border=0 height=40 align=top alt='Урология'></a>");
	document.write("				<a href=ginecology.html onMouseOver=over('mbut2',mbutp2.src); onMouseOut=out('mbut2','images/mbut2.GIF');>");
	document.write("					<img name=mbut2 src=images/mbut2.GIF border=0 height=40 align=top alt='Гинекология'></a>");
	document.write("				<a href=mammology.html onMouseOver=over('mbut3',mbutp3.src); onMouseOut=out('mbut3','images/mbut3.GIF');>");
	document.write("					<img name=mbut3 src=images/mbut3.GIF border=0 height=40 align=top alt='Маммология'></a>");
	document.write("				<a href=terapy.html onMouseOver=over('mbut7',mbutp7.src); onMouseOut=out('mbut7','images/mbut7.GIF');>");
	document.write("					<img name=mbut7 src=images/mbut7.GIF border=0 height=40 align=top alt='Терапия'></a>");
	document.write("				<a href=hirurgy.html onMouseOver=over('mbut8',mbutp8.src); onMouseOut=out('mbut8','images/mbut8.GIF');>");
	document.write("					<img name=mbut8 src=images/mbut8.GIF border=0 height=40 align=top alt='Хирургия'></a>");
	document.write("				<a href=botox.html onMouseOver=over('mbut12',mbutp12.src); onMouseOut=out('mbut12','images/mbut12.GIF');>");
	document.write("					<img name=mbut12 src=images/mbut12.GIF border=0 height=40 align=top alt='Ботокс'></a>");
	document.write("				<a href=ktg.html onMouseOver=over('mbut15',mbutp15.src); onMouseOut=out('mbut15','images/mbut15.GIF');>");
	document.write("					<img name=mbut15 src=images/mbut15.GIF border=0 height=40 align=top alt='Кардиотокография для беременных'></a>");
	document.write("				<a href=detorto.html onMouseOver=over('mbut16',mbutp16.src); onMouseOut=out('mbut16','images/mbut16.GIF');>");
	document.write("					<img name=mbut16 src=images/mbut16.GIF border=0 height=40 align=top alt='Детская ортопедия'></a>");
	document.write("				<img src=images/menubot.jpg width=150 height=30 border=0 alt=''>");
	//document.write("				<a href=http://beauty.v-doktor.ru/nybabor.php target=\"_blank\" onMouseOver=over('nyb',nyb.src); onMouseOut=out('nyb','images/nyb.gif');>");
	//document.write("					<img name=nyb src=images/nyb.gif border=0 align=top alt='Подарки'></a>");
	document.write("			</td><td  width=700 colspan=2 align=left>");
	
}

function pagebottom()
{
	document.write("		</td><td  width=150 align=center valign=top background=images/r.JPG>");
	document.write("				<img src=images/menuhead2.gif width=150 height=40 border=0 alt='Направления:'><BR>");
    document.write("				<a href=uzi.html onMouseOver=over('mbut4',mbutp4.src); onMouseOut=out('mbut4','images/mbut4.GIF');>");
	document.write("					<img name=mbut4 src=images/mbut4.GIF border=0 height=40 align=top alt='УЗИ диагностика'></a>");
	document.write("				<a href=neirosono.html onMouseOver=over('mbut11',mbutp11.src); onMouseOut=out('mbut11','images/mbut11.GIF');>");
	document.write("					<img name=mbut11 src=images/mbut11.GIF border=0 height=40 align=top alt='Нейросонография'></a>");
	document.write("				<a href=analyse.html onMouseOver=over('mbut5',mbutp5.src); onMouseOut=out('mbut5','images/mbut5.GIF');>");
	document.write("					<img name=mbut5 src=images/mbut5.GIF border=0 height=40 align=top alt='Лабораторная диагностика'></a>");
	document.write("				<a href=lazer.html onMouseOver=over('mbut6',mbutp6.src); onMouseOut=out('mbut6','images/mbut6.GIF');>");
	document.write("					<img name=mbut6 src=images/mbut6.GIF border=0 height=40 align=top alt='Лазерная хирургия'></a>");
	document.write("				<a href=fisio.html onMouseOver=over('mbut9',mbutp9.src); onMouseOut=out('mbut9','images/mbut9.GIF');>");
	document.write("					<img name=mbut9 src=images/mbut9.GIF border=0 height=40 align=top alt='Физиотерапия'></a>");
	document.write("				<a href=biopsy.html onMouseOver=over('mbut10',mbutp10.src); onMouseOut=out('mbut10','images/mbut10.GIF');>");
	document.write("					<img name=mbut10 src=images/mbut10.GIF border=0 height=40 align=top alt='Биопсия эндометрия'></a>");
	document.write("				<a href=erec.html onMouseOver=over('mbut13',mbutp13.src); onMouseOut=out('mbut13','images/mbut13.GIF');>");
	document.write("					<img name=mbut13 src=images/mbut13.GIF border=0 height=40 align=top alt='Эректильная дисфункция'></a>");
	document.write("				<a href=spd.html onMouseOver=over('mbut14',mbutp14.src); onMouseOut=out('mbut14','images/mbut14.GIF');>");
	document.write("					<img name=mbut14 src=images/mbut14.GIF border=0 height=40 align=top alt='Сосудистые патологии кожи'></a>");
	
	document.write("				<img src=images/menubot2.jpg width=150 height=30 border=0 alt=''>");
	
	document.write("				<a href=http://beauty.v-doktor.ru target=\"_blank\" onMouseOver=over('beauty',beauty.src); onMouseOut=out('beauty','images/beauty.gif');>");
	document.write("					<img name=beauty src=images/beauty.gif border=0 align=top alt='Центр красоты и здоровья'></a></td>");
	document.write("</td>");
	document.write("                </tr>");


	//	
	document.write("		<tr height=150 align=right>");
	document.write("		<td colspan=1 width=150 background=images/bl.JPG></td>");
	document.write("		<td width=700 colspan=2 background=images/b.JPG>");
	document.write("                <script>URL=\"http://img.gismeteo.ru/flash/fw88x31.swf?index=22113\";w=\"88\";h=\"31\";value=\"22113\";lang=\"ru\";</script><script src=\"http://img.gismeteo.ru/flash/fcode.js\"></script>");
	
	//document.write("		<a href=\"http://top100.rambler.ru/home?id=1593128\"><img src=\"http://top100-images.rambler.ru/top100/banner-88x31-rambler-blue.gif\" alt=\"Rambler's Top100\" width=\"88\" height=\"31\" border=\"0\" /></a>");
	
	
	
	document.write("			<span class=prava><br><a href=http://vkontakte.ru/club13714758 target=\"_blank\"><img src=images/vdvk.jpeg border=0 align=left valign=middle alt='Ваш Доктор ВКонтакте'></a>      ");
	document.write("			Copyright &copy 2008-2011, Медицинский центр \"Ваш Доктор\" г. Мурманск, пер. Русанова,1 <br> Лицензия № ЛО-51-01-000035 от 25.04.2008 <br> Designed by Enkort (en" + "kort" + "@" + "ya" + ".ru)</span></td>");
	document.write("		<td width=150  background=images/br.JPG></td></tr></table>");
}
