
function getCookieVal (offset) 
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) 
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function GetCookie (name) 
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i<clen) 
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
banne=GetCookie("banne");
if (banne!=null)
{
if (banne == 1)
{
document.write("<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff width='100%'><tr><td background='/images/fon120.gif' height='150'><h3 align='center'>Медицинские фотографии на дружеском сайте:</h3><center><table border='0' cellspacing='2' cellpadding='2'><tr><td width='120' align='center'><a href='http://meduniver.com/Medical/kartini/'><img src='http://meduniver.com/Medical/kartini/Img/p1a.jpg' alt='разрыв диафрагмы' height='130'></a><center><small><b>Разрыв диафрагмы</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/kartini/'><img src='http://meduniver.com/Medical/kartini/Img/l1a.jpg' alt='Лигашу при геморрое' height='130'></a><center><small><b>Аппарат Лигашу</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/kartini/'><img src='http://meduniver.com/Medical/kartini/Img/ar13.jpg' alt='рентгеновский снимок' height='130'></a><center><small><b>Ro снимки</b></small></center></td></tr></table></center></td></tr></table>");
SetCookie("banne",2);
}
else
{
if (banne == 2)
{
document.write("<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff width='100%'><tr><td background='/images/fon120.gif' height='150'><h3 align='center'>Популярные медицинские видео ролики на дружеском сайте:</h3><center><table border='0' cellspacing='2' cellpadding='2'><tr><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/9.html'><img src='http://meduniver.com/Medical/Video/Img/400.jpg' alt='видео родов с инструкциями' height='120'></a><center><small><b>Видео родов с инструкциями</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/33.html'><img src='http://meduniver.com/Medical/Video/Img/393.jpg' alt='видео кесарева сечения' height='120'></a><center><small><b>Видео кесарева сечения</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/34.html'><img src='http://meduniver.com/Medical/Video/Img/403.jpg' alt='видео аборта' height='120'></a><center><small><b>Аборт на видео, - а стоит ли делать?</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/18.html'><img src='http://meduniver.com/Medical/Video/Img/168.jpg' alt='видео обрезания' height='120'></a><center><small><b>Обрезание - методика и техника манипуляции</b></small></center></td></tr></table></center></td></tr></table>");
SetCookie("banne",3);
}
else
{
document.write("<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff width='100%'><tr><td background='/images/fon120.gif' height='150'><h3>Пользователи комментируют:</h3><center><table border='0' cellspacing='2' cellpadding='2'><tr><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/9.html'><img src='http://meduniver.com/Medical/Video/Img/354.jpg' alt='роды видео' height='130'></a><center><small><b>В воде рожать не буду, держаться не за что</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/cardiologia/'><img src='http://meduniver.com/Medical/cardiologia/Img/24.jpg' alt='кардиология' height='130'></a><center><small><b>Благодарен за кардиологию детей!</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Book/index.html'><img src='http://meduniver.com/Medical/Book/Img/6.jpg' alt='медицинские книги' height='130'></a><center><small><b>Спасибо большое за книги!</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Video/35.html'><img src='http://meduniver.com/Medical/Video/Img/153.jpg' alt='видео про диабет' height='130'></a><center><small><b>Спасибо за видео про диабет!</b></small></center></td></tr></table></center></td></tr></table>");
SetCookie("banne",1);
}
}
}
else
{
document.write("<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff width='100%'><tr><td background='/images/fon120.gif' height='150'><h3 align='center'>Нет нужной информации? Скачай готовый учебник из базы медицинских книг:</h3><center><table border='0' cellspacing='2' cellpadding='2'><tr><td width='120' align='center'><a href='http://meduniver.com/Medical/Book/index.html'><img src='http://meduniver.com/Medical/Book/Img/4.jpeg' alt='медицинские книги' height='130'></a><center><small><b>Книги по анатомии - более 200 книг!</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Book/index.html'><img src='http://meduniver.com/Medical/Book/Img/46.jpg' alt='медицинские книги' height='130'></a><center><small><b>Книги по хирургии - более 1000 книг!</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Book/index.html'><img src='http://meduniver.com/Medical/Book/Img/15.jpg' alt='медицинские книги' height='130'></a><center><small><b>Книги по акушерству - более 230 книг!</b></small></center></td><td width='120' align='center'><a href='http://meduniver.com/Medical/Book/index.html'><img src='http://meduniver.com/Medical/Book/Img/27.jpg' alt='медицинские книги' height='130'></a><center><small><b>Неотложная помощь - более 150 книг!</b></small></center></td></tr></table></center></td></tr></table>");
SetCookie("banne",1);
}

