strurl="http://petro.com.ua/"
//strurl="d:/internet/petro"
news=0; newsidx=1; pgnum=2;

function ws(stat) {
window.status=stat;
}
function wso() {
window.status="";
}

w1=new Array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20");
x = Math.floor(Math.random() * w1.length);
ndx=w1[x];

i1p=new Array("wot_88x31.gif");
i1t=new Array("Мир Танков онлайн");
i1u=new Array("http://game.worldoftanks.ru");
x=Math.floor(Math.random() * i1p.length);
i1url=i1u[x];
i1txt=i1t[x];
i1pic=i1p[x];

i2p=new Array("aggressors.gif","bikezone.gif")
i2t=new Array("MTB Aggressors - Днепропетровск","BikeZone - Запорожье")
i2u=new Array("http://www.aggressors.dp.ua/","http://www.bikezone.f2s.com")
x=Math.floor(Math.random() * i2p.length);
i2url=i2u[x];
i2txt=i2t[x];
i2pic=i2p[x];

i3p=new Array("http://www.equator.ru/images/smallbann.gif",strurl+"data/tsearch.gif");
i3t=new Array("Каталог на Экваторе","Поисковая система Туризм");
i3u=new Array("http://www.equator.ru/","http://tourism.at.ru/");
x=Math.floor(Math.random() * i3p.length);
i3url=i3u[x];
i3txt=i3t[x];
i3pic=i3p[x];

i4p=new Array("http://cnt.vvv.ru/cgi-bin/cnt?id=1139");
i4t=new Array("Полный спектр экстремального спорта");
i4u=new Array("http://www.vvv.ru/cnt.php3?id=1139");
x=Math.floor(Math.random() * i4p.length);
i4url=i4u[x];
i4txt=i4t[x];
i4pic=i4p[x];

str00="History back"
str01="На первую страницу"
str02="На страницу дневников"
str03="На первую страницу Нашего Клуба"
str04="Архив новостей"

str0="Главная страница"
str1="Статьи и обзоры"
str2="Велопоходы - отчеты, дневники, заметки, планы на будущее"
str3="MTB Клуб - кто с нами катается"
str4="Как заработать с помощью байка"
str5="Гостевая книга"
str6="Форум - обсуждение околоМТБшных тем - Походы, анонсы..."
str7="Ссылки на дружественные сайты и интересные ресурсы"
str8="Об этом сайте"
str9="Изречения, жаргон, легенды и былины MTB"
str10="Фотогалерея - техника, fun..."
str11="Техническая документация"
str12="Планы походов"
str13="Экспедиция на Алтай"
str14="Экспедиция в горы Тянь-Шаня"
str15="Форум"

{
Beginning =
"<div ID='floater' style='visibility:visible'>"+
"<img border='0' src='"+strurl+"data/mtb.gif' vspace=3 width=88 height=31 alt='MTB - Туризм, Спорт, Отдых'></a><br>"+
"<table width=88 BORDER='1' CELLPADDING='0' CELLSPACING='0'><tr><td align='center'>"+
"<img src='"+strurl+"data/close.gif' width='81' height='7'><a class='Lfm' onmouseover=style.cursor='hand' onMouseDown=floater.style.visibility='hidden'><img alt='Close Menu' src='"+strurl+"data/close2.gif' width='7' height='7'></a><br>"+
"<a class='Lfm' href='"+strurl+"index.html' onmouseover='ws(str0);return true' onmouseout='wso();return true'>Новости</a><br>"+
"<a class='Lfm' href='"+strurl+"papers/index.html' onmouseover='ws(str1);return true' onmouseout='wso();return true'>Статьи</a><br>"+
"<a class='Lfm' href='"+strurl+"forum' onmouseover='ws(str15);return true' onmouseout='wso();return true'><b>Форум</b></a><br>"+
"<a class='Lfm' href='"+strurl+"doc/index.html' onmouseover='ws(str11);return true' onmouseout='wso();return true'>Документы</a><br>"+
"<a class='Lfm' href='"+strurl+"daybook/index.html' onmouseover='ws(str2);return true' onmouseout='wso();return true'>Походы</a><br>"+
"<a class='Lfm' href='"+strurl+"daybook/tianshan2004/index.html' onmouseover='ws(str14);return true' onmouseout='wso();return true'>Тянь-Шань`04</a><br>"+
"<a class='Lfm' href='"+strurl+"daybook/altay2002/index.html' onmouseover='ws(str13);return true' onmouseout='wso();return true'>Алтай-2002</a><br>"+
"<a class='Lfm' href='"+strurl+"plans/index.html' onmouseover='ws(str12);return true' onmouseout='wso();return true'>Планы</a><br>"+
"<a class='Lfm' href='"+strurl+"humor/index.html' onmouseover='ws(str9);return true' onmouseout='wso();return true'>Юмор</a><br>"+
"<a class='Lfm' href='"+strurl+"gallery/index.html' onmouseover='ws(str10);return true' onmouseout='wso();return true'>Галерея</a><br>"+
"<a class='Lfm' href='"+strurl+"links/index.html' onmouseover='ws(str7);return true' onmouseout='wso();return true'>Ссылки</a><br>"+
"<a class='Lfm' href='"+strurl+"about/index.html' onmouseover='ws(str8);return true' onmouseout='wso();return true'>О нас</a>"+
"</td></tr></table></div>"+
"<center><table border='0' cellpadding='0' cellspacing='0' width='780' height='100%'>"+
"<tr><td background='"+strurl+"data/border.jpg' width='70' align='right' valign='bottom'>"+
"<font class='sml'>Designed for IE4+ 1024x768 </font></td>"+
"<td valign='top' align='center'><table border='0' cellpadding='0' cellspacing='0' width='52' height='100%'>"+
"<tr><td background='"+strurl+"data/lfork.jpg' height='367'></td></tr>"+
"<tr><td background='"+strurl+"data/lforkc.gif'></td></tr>"+
"<tr><td height='63' background='"+strurl+"data/lforke.jpg'></td></tr>"+
"</table></td>"+
"<td width='527' valign='top'>"+
"<table bgcolor=#F2F2FE border='0' cellpadding='0' cellspacing='0' width='100%' height='100%' background='"+strurl+"data/mainbg.jpg'>";
document.write(Beginning);
}

self.onError=null;

	currentX = currentY = 0;
	whichIt = null;           
	lastScrollX = 0; lastScrollY = 0;
	
	NS = (document.layers) ? 1 : 0;
	IE = (document.all) ? 1: 0;
	
	<!-- STALKER CODE -->
	function heartBeat() {
	
		if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
	    if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
		
		if(diffY != lastScrollY) {
	                percent = .1 * (diffY - lastScrollY);
	                if(percent > 0) percent = Math.ceil(percent);
	                else percent = Math.floor(percent);
					if(IE) document.all.floater.style.pixelTop += percent;
					if(NS) document.floater.top += percent; 
	                lastScrollY = lastScrollY + percent;
	    }
		if(diffX != lastScrollX) {
			percent = .1 * (diffX - lastScrollX);
			if(percent > 0) percent = Math.ceil(percent);
			else percent = Math.floor(percent);
			if(IE) document.all.floater.style.pixelLeft += percent;
			if(NS) document.floater.left += percent;
			lastScrollX = lastScrollX + percent;
		}	
	}
	<!-- /STALKER CODE -->
	
	<!-- DRAG DROP CODE -->
	function checkFocus(x,y) { 
	        stalkerx = document.floater.pageX;
	        stalkery = document.floater.pageY;
	        stalkerwidth = document.floater.clip.width;
	        stalkerheight = document.floater.clip.height;
	        if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
	        else return false;
	}
	
	function grabIt(e) {
		if(IE) {
			whichIt = event.srcElement;
			while (whichIt.id.indexOf("floater") == -1) {
				whichIt = whichIt.parentElement;
				if (whichIt == null) { return true; }
		    }
			whichIt.style.pixelLeft = whichIt.offsetLeft;
		    whichIt.style.pixelTop = whichIt.offsetTop;
			currentX = (event.clientX + document.body.scrollLeft);
	   		currentY = (event.clientY + document.body.scrollTop); 	
		} else { 
	        window.captureEvents(Event.MOUSEMOVE);
	        if(checkFocus (e.pageX,e.pageY)) { 
	                whichIt = document.floater;
	                StalkerTouchedX = e.pageX-document.floater.pageX;
	                StalkerTouchedY = e.pageY-document.floater.pageY;
	        } 
		}
	    return true;
	}
	
	function moveIt(e) {
		if (whichIt == null) { return false; }
		if(IE) {
		    newX = (event.clientX + document.body.scrollLeft);
		    newY = (event.clientY + document.body.scrollTop);
		    distanceX = (newX - currentX);    distanceY = (newY - currentY);
		    currentX = newX;    currentY = newY;
		    whichIt.style.pixelLeft += distanceX;
		    whichIt.style.pixelTop += distanceY;
			if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
			if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
			if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
			if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
			event.returnValue = false;
		} else { 
			whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
	        if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
	        if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
	        if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
	        if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
	        return false;
		}
	    return false;
	}
	
	function dropIt() {
		whichIt = null;
	    if(NS) window.releaseEvents (Event.MOUSEMOVE);
	    return true;
	}
	<!-- DRAG DROP CODE -->
	
	if(NS) {
		window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
		window.onmousedown = grabIt;
	 	window.onmousemove = moveIt;
		window.onmouseup = dropIt;
	}
	if(IE) {
		document.onmousedown = grabIt;
	 	document.onmousemove = moveIt;
		document.onmouseup = dropIt;
	}
	
	if(NS || IE) action = window.setInterval("heartBeat()",1);

{
MTBMenu =
	"<tr><td height='64' background='"+strurl+"data/mtbar"+ndx+".jpg' colspan='2'></td></tr>"+
      "<tr><td bgcolor=#14296C background='"+strurl+"data/forkm.jpg' height='28' colspan='2' align='center'><font class='menu' color='white'>";

if (mstat == 1) {
MTBMenu = MTBMenu +
	"<a class='L2' onmouseover='ws(str0);return true' onmouseout='wso();return true'><font color='gray'>Новости</font></a> |";
} else {
MTBMenu = MTBMenu +
	"<a class='L2' href='"+strurl+"index.html' onmouseover='ws(str0);return true' onmouseout='wso();return true'><acronym title='Новости на сайте'>Новости</acronym></a> |";
}
if (mstat == 2) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str1);return true' onmouseout='wso();return true'><font color='gray'>Статьи</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"papers/index.html' onmouseover='ws(str1);return true' onmouseout='wso();return true'>Статьи</a> |";
}

if (mstat == 16) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str15);return true' onmouseout='wso();return true'><font color='gray'>Форум</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='http://petro.com.ua/forum' onmouseover='ws(str15);return true' onmouseout='wso();return true'>Форум</a> |";
}


if (mstat == 12) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str11);return true' onmouseout='wso();return true'><font color='gray'>Документы</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"doc/index.html' onmouseover='ws(str11);return true' onmouseout='wso();return true'>Документы</a> |";
}
if (mstat == 3) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str2);return true' onmouseout='wso();return true'><font color='gray'>Походы</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"daybook/index.html' onmouseover='ws(str2);return true' onmouseout='wso();return true'>Походы</a> |";
}

if (mstat == 15) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str14);return true' onmouseout='wso();return true'><font color='gray'>Тянь-Шань`2004</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"daybook/tianshan2004/index.html' onmouseover='ws(str14);return true' onmouseout='wso();return true'>Тянь-Шань`2004</a> |";
}

if (mstat == 14) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str13);return true' onmouseout='wso();return true'><font color='gray'>Алтай-2002</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"daybook/altay2002/index.html' onmouseover='ws(str13);return true' onmouseout='wso();return true'>Алтай-2002</a> |";
}
if (mstat == 13) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str12);return true' onmouseout='wso();return true'><font color='gray'>Планы</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"plans/index.html' onmouseover='ws(str12);return true' onmouseout='wso();return true'>Планы</a> |";
}
if (mstat == 10) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str9);return true' onmouseout='wso();return true'><font color='gray'>Юмор</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"humor/index.html' onmouseover='ws(str9);return true' onmouseout='wso();return true'>Юмор</a> |";
}

if (mstat == 11) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str10);return true' onmouseout='wso();return true'><font color='gray'>Галерея</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"gallery/index.html' onmouseover='ws(str10);return true' onmouseout='wso();return true'>Галерея</a> |";
}

if (mstat == 8) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str7);return true' onmouseout='wso();return true'><font color='gray'>Ссылки</font></a> |";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"links/index.html' onmouseover='ws(str7);return true' onmouseout='wso();return true'>Ссылки</a> |";
}
if (mstat == 9) {
MTBMenu = MTBMenu +
	" <a class='L2' onmouseover='ws(str8);return true' onmouseout='wso();return true'><font color='gray'>О&nbsp;нас</font></a>";
} else {
MTBMenu = MTBMenu +
	" <a class='L2' href='"+strurl+"about/index.html' onmouseover='ws(str8);return true' onmouseout='wso();return true'>О&nbsp;нас</a>";
}

MTBMenu = MTBMenu + "</font></td></tr>"+
"<tr><td class='T2' height='5' colspan='2' style='border-bottom-style: solid; border-bottom-width: 1'>&nbsp;</td></tr>"+
"<tr><td valign='top' align='center' colspan='2' style='padding-top: 5; border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1'>"+
"<TABLE border='0' cellpadding='0' cellspacing='0' width='512'><tr><td align='left' valign='top'>";

document.write(MTBMenu);
}

//last mstat=16 - форум; str=15 (forum)
//	 bstat=1 - no links; bstat=2 - two links; bstat=3 - клуб;