<!--

//  Script generated by Search Maker Pro:

page=new Array();page[1]=new Array("nes_old/bg/agencies.htm","NESSEBAR.NET - Агенции","","WWW Кентавър 45 4-51-29 &nbsp; &nbsp; Съвет по туризъм 4-21-99 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[2]=new Array("bars.htm","NESSEBAR.NET - Барове","","Морска гара &nbsp; &nbsp; &nbsp; &nbsp; Текила бар &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[3]=new Array("gallery.htm","NESSEBAR.NET - Art Галерии","","Св. ПАРАСКЕВА&quot; 4-35-73 &nbsp; &nbsp; &nbsp; &quot;НЕСЕБЪР&quot; 4-50-00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[4]=new Array("cafes.htm","NESSEBAR.NET - Кафенета","","Бомбата 4-45-95 &nbsp; &nbsp; &nbsp; Бургас 4-31-76 &nbsp; &nbsp; &nbsp; Вега 4-25-04 &nbsp; &nbsp; &nbsp; Заргана 4-56-16 &nbsp; &nbsp; &nbsp; Клио 087/612-942 &nbsp; &nbsp; &nbsp; Корал &nbsp; &nbsp; &nbsp; &nbsp; Малибу 4-58-66 &nbsp; &nbsp; &nbsp; Мона Лиза &nbsp; &nbsp; &nbsp; &nbsp; Соня 4-44-60 &nbsp; &nbsp; &nbsp; Хавай 4-28-14 &nbsp; &nbsp; &nbsp; Худини &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[5]=new Array("accommodations.htm","NESSEBAR.NET - Квартири","","Елена Кипрова &nbsp; Гларус 6 &nbsp; &nbsp; Цеца Кипрова 4-39-33 Гларус 8 &nbsp; &nbsp; Цеца Памукова 4-39-98 Хемус 1а &nbsp; &nbsp; &nbsp; &nbsp; ");
page[6]=new Array("pizzarias.htm","NESSEBAR.NET - Пицарии","","Вермона 4-52-11 &nbsp; &nbsp; &nbsp; Параклис 4-32-63 &nbsp; &nbsp; &nbsp; Риба &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[7]=new Array("restaurants.htm","NESSEBAR.NET - Ресторанти","","Авера 4-53-39 &nbsp; &nbsp; &nbsp; Акропол 4-53-15 &nbsp; &nbsp; &nbsp; Андромеда 4-20-79 &nbsp; andromed@abv.bg link Аризона 4-55-30 &nbsp; &nbsp; &nbsp; Бора 4-22-25 &nbsp; &nbsp; &nbsp; Викинг 4-50-29 &nbsp; &nbsp; &nbsp; Гларус 4-35-73 Гларус 8 &nbsp; &nbsp; Деница 4-43-11 &nbsp; &nbsp; &nbsp; Дионис 4-25-57 &nbsp; &nbsp; &nbsp; Емона 4-20-22 &nbsp; &nbsp; &nbsp; Златното руно 4-56-02 &nbsp; &nbsp; &nbsp; Капитан Немо 4-59-56 &nbsp; &nbsp; &nbsp; Какаду &nbsp; &nbsp; &nbsp; &nbsp; Кипарис 4-53-16 &nbsp; &nbsp; &nbsp; Кондор &nbsp; &nbsp; &nbsp; &nbsp; Кристал 4-56-17 &nbsp; &nbsp; &nbsp; Лоза &nbsp; &nbsp; &nbsp; &nbsp; Митрополис 4-50-79 &nbsp; &nbsp; &nbsp; Нептун 4-41-33 &nbsp; &nbsp; &nbsp; Панорама 4-39-49 &nbsp; &nbsp; &nbsp; Перла 4-21-12 &nbsp; &nbsp; &nbsp; Плакамото 4-55-44 &nbsp; &nbsp; &nbsp; Прага 4-57-77 &nbsp; &nbsp; &nbsp; Принц Кирил 4-28-67 &nbsp; &nbsp; &nbsp; Райска градина &nbsp; &nbsp; &nbsp; &nbsp; Романтика 4-38-65 &nbsp; &nbsp; &nbsp; Роял 4-30-52 &nbsp; &nbsp; &nbsp; Савой &nbsp; &nbsp; &nbsp; &nbsp; Смокиня &nbsp; &nbsp; &nbsp; &nbsp; Старата котва 4-42-24 &nbsp; &nbsp; &nbsp; Старата къща &nbsp; &nbsp; &nbsp; &nbsp; Старият кавак 4-24-72 &nbsp; &nbsp; &nbsp; Тангра 4-40-97 &nbsp; &nbsp; &nbsp; Терасата 088/991-352 &nbsp; &nbsp; &nbsp; Хемингуей 4-32-88 &nbsp; &nbsp; &nbsp; Хонолулу &nbsp; &nbsp; &nbsp; &nbsp; Чайка 4-54-27 &nbsp; &nbsp; &nbsp; Чайка &nbsp; &nbsp; &nbsp; &nbsp; Часовника &nbsp; &nbsp; &nbsp; &nbsp; Черно море &nbsp; &nbsp; &nbsp; &nbsp; Шанхай &nbsp; &nbsp; &nbsp; &nbsp; Ясен 4-38-10 Иван Асен II 10 &nbsp; &nbsp; &nbsp; &nbsp; ");
page[8]=new Array("firms.htm","NESSEBAR.NET - Фирми","","Геомир&quot; Недвижими имоти &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[9]=new Array("hotels.htm","NESSEBAR.NET - Хотели","","Аквамарин 4-33-60 &nbsp; b_sredkov@yahoo.com link Бялата къща 4-24-88 &nbsp; &nbsp; &nbsp; Виктория 4-60-00 &nbsp; &nbsp; &nbsp; Bayerischer hof 4-30-26 &nbsp; &nbsp; &nbsp; Капитанска среща 4-21-24 &nbsp; &nbsp; &nbsp; Месамбриа &nbsp; &nbsp; &nbsp; &nbsp; Монте Кристо 4-20-55 Венера 2 &nbsp; &nbsp; Морска перла 4-56-06 &nbsp; &nbsp; &nbsp; Принц Кирил 4-22-20 &nbsp; &nbsp; &nbsp; Рони 4-40-00/1,2 &nbsp; &nbsp; link Тони 4-24-03 &nbsp; &nbsp; &nbsp; Свети Стефан 4-35-37 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[10]=new Array("churches.htm","NESSEBAR.NET - Църкви","","Св. Йоан Алитургетос XIV &nbsp; &nbsp; &nbsp; Св. Стефан XI &nbsp; &nbsp; &nbsp; Христос Пантократор XIII &nbsp; &nbsp; &nbsp; Св. Йоан Кръстител X &nbsp; &nbsp; &nbsp; Св. Спас XVII &nbsp; &nbsp; &nbsp; Св. Архангел Гавраил и Михаил XIII-XIV &nbsp; &nbsp; &nbsp; Св. Параскева XIII-XIV &nbsp; &nbsp; &nbsp; Св. София-Старата митрополия V &nbsp; &nbsp; &nbsp; Св. Тодор XIII &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");
page[11]=new Array("phones.htm","NESSEBAR.NET - Телефони","","ИМЕ ТЕЛЕФОН Морска Гара 4-34-72 Митница 4-43-34 / 4-42-34 Община 4-33-21 Поща 4-34-20 Пощенски клон 1 4-60-41 Полиция 4-35-81 / 4-60-43 Поликлиника 4-32-25/26 Етнографски музей 4-34-94 Архелогически музей 8-60-19 Православен храм 4-25-73 Автотранспорт 4-32-00 АПОН 4-35-16 Еколог 4-25-32 ЕСГРАОН 4-35-39 Инвеститорски контрол 4-22-51 Личен състав 4-21-18 ОМП 4-33-90 Отдел &quot;Образование&quot; 4-33-96 Отдел &quot;Общинска собственост&quot; 4-34-93 Отдел &quot;Финанси&quot; 4-36-66 Ритуали 4-57-38 Социални дейности 4-34-90 ТСУ 4-37-85 / 4-26-73 / 4-26-46 / 4-34-93 Туризъм 4-52-63 Управление БКС 4-57-35 Председател на ОбС 4-32-08 Кмет 4-32-81 Зам.-кметове 4-35-26 / 4-34-97 Секретар 4-33-21 ");
page[12]=new Array("history.htm","NESSEBAR.NET - История","","Несебър е един от най-древните градове в Европа. Наследник е на древното тракийско селище Месамбрия, основано през второто хилядолетие пр.н.е. Името му означава град (брия) на Мелса. ");
page[13]=new Array("map.htm","MAP","","Карта на града");
page[14]=new Array("photo.htm","NESSEBAR.NET - Фото Галерия","","Фото галерия - снимки от стрият град");
page[15]=new Array("registration.htm","NESSEBAR.NET - Регистрация","","Регистрация в каталога на Nessebar.net");
page[16]=new Array("contact.htm","NESSEBAR.NET - Контакт","","Ако имате въпроси, интересни предложения и идей или просто свободно време, пишете без да се колебаете.");
page[17]=new Array("webdesign.htm","NESSEBAR.NET - WEB Дизайн","","Web Дизайн. Изработка на интернет страници на изгдни цени. FLASH, PhotoShop, Dreamweaver....");
var URL=0;var Title=1;var Description=2;var Content=3;var MatchElement=4;var MatchCount=5;var SortIndex=6;var SortPointer=7;var MatchPosition=8;var sOutput;var sTarget;var iWildcard;var bWildcardError; var Original ; var SortResults=true;var SortOrderTitle=1;var SortOrderDescription=2;var SortOrderURL=3;var SortOrderContent=4;var ShowDetailedOutput=true;var ShowQuoteCount=true;
function setfocus() { document.formSearch.txtSearch.focus(); }

function isChar(sChar) {if ((sChar>="a" && sChar<="z") || (sChar=="&") ||(sChar>="A" && sChar<="Z") || (sChar>="0" && sChar <="9")) { return true; } else { return false; } }
function SearchElement( i, j, sTargetUpper ) {var sText=page[i][j].toUpperCase();var iPos, bPreChar, bPostChar; var iCurrentPos=0;page[i][MatchCount]=0;iPos=sText.indexOf( sTargetUpper );while (iPos >= 0){ iCurrentPos = iCurrentPos + iPos + 1;if(( iWildcard== -2 ) || ( iWildcard== -5 )) { bPreChar = false; } else { if (iPos == 0) { bPreChar=false; } else { bPreChar=isChar(sText.charAt(iPos-1)); }  } if(( iWildcard == -3 ) || ( iWildcard == -5 )) { bPostChar = false; } else { if ( sText.length - iPos == sTargetUpper.length) { bPostChar = false; } else { bPostChar = isChar(sText.charAt(iPos + sTargetUpper.length)); }  } if (!bPreChar && !bPostChar) { page[i][MatchPosition+page[i][MatchCount]] = iCurrentPos - 1;page[i][MatchCount] ++; } sText = sText.substring(iPos+1,sText.length);while( isChar(sText.charAt(0)) && sText.length > 0 ) { sText = sText.substring( 1, sText.length ) ;iCurrentPos ++; } iPos = sText.indexOf(sTargetUpper); } } 
function SearchPage(i, sTargetUpper) { var j=-1, iElement; var ak=2326476035; page[i][MatchElement]=-1;while( ++j <= Content && page[i][MatchElement]==-1 ) { iElement = j==0 ? Title : (j==1 ? Description : (j==2 ? URL : Content));SearchElement( i, iElement, sTargetUpper );if ( page[i][MatchCount] > 0 ) { page[i][MatchElement] = iElement; } } s="searchmaker";t=eval(s.charAt(2)+s.charAt(8)); } 
function DoSortResults() { var i, j, iTempSortIndex, iTempSortPointer;for( i=1; i<page.length; i++ ) { page[i][SortPointer] = i; } if( SortResults ) {for( i=1; i<page.length; i++ ) { if( page[i][MatchElement] == Title ) { page[i][SortIndex] = (4-SortOrderTitle) * 15000; } else if( page[i][MatchElement] == Description ) { page[i][SortIndex] = (4-SortOrderDescription) * 15000; } else if( page[i][MatchElement] == URL ) { page[i][SortIndex] = (4-SortOrderURL) * 15000; } else { page[i][SortIndex] = (4-SortOrderContent) * 15000 + page[i][MatchCount]; } } for( i=2; i<page.length; i++ ) { iTempSortIndex = page[i][SortIndex]; iTempSortPointer = page[i][SortPointer];for( j=i; j>1 && iTempSortIndex > page[j-1][SortIndex]; j--) { page[j][SortIndex] = page[j-1][SortIndex];page[j][SortPointer] = page[j-1][SortPointer]; }page[j][SortIndex] = iTempSortIndex;page[j][SortPointer] = iTempSortPointer; } } } 
function WriteMatchCount(i) { var sPlural = page[i][MatchCount]==1 ? "" : "s";sOutput += "<BR><SMALL>"; sOutput += "(" + page[i][MatchCount] + " quote" + sPlural + ")"; sOutput += "</SMALL>"; } 
function WriteQuote(i, iQuoteNumber) { var iStart;var iEnd;var bTrimmed = false; var iPosition=page[i][MatchPosition + iQuoteNumber - 1]; iStart = iPosition<30 ? iStart=0 : iStart=iPosition-30;iEnd = (iPosition+30 > page[i][Content].length) ? iEnd=page[i][Content].length : iEnd=iPosition+30;while ((iStart>=0) && !bTrimmed) { if(isChar(page[i][Content].charAt(iStart))) { iStart--; } else { bTrimmed=true; } } iStart++;bTrimmed=false;while ((iEnd > iPosition) && !bTrimmed) { if(isChar(page[i][Content].charAt(iEnd))) { iEnd--; } else { bTrimmed=true; } } sOutput += "<BR>\".. "+page[i][Content].substring(iStart,iPosition); sOutput += "<B>" + page[i][Content].substring(iPosition , iPosition + sTarget.length ) +"</B>";sOutput += page[i][Content].substring(iPosition + sTarget.length ,iEnd) + " ..\""; } 
function WriteContentQuotes( i ) { if( ShowDetailedOutput ) { for( var j=1; j<=page[i][MatchCount]; j++ ) { WriteQuote( i, j ); } } else { WriteQuote( i, 1 ); } if( ShowQuoteCount ) { WriteMatchCount( i ); } } 
function WriteHighlighted( sText, iPosition ) { sOutput += sText.substring( 0, iPosition );sOutput += "<B>" + sText.substring( iPosition , iPosition + sTarget.length ) +"</B>";sOutput += sText.substring( iPosition + sTarget.length ,sText.length ); } 
function WritePage( i, iMatched ) { sOutput += "<dt><dl><B>" + iMatched +". ";sOutput += "<A target=\"_blank\" href=\""+page[i][URL]+"\">"+page[i][Title]+"</A></B><dd>";if( page[i][MatchElement]==Description ) { sOutput += "<BR>";WriteHighlighted( page[i][Description], page[i][MatchPosition] ); } else { if( page[i][Description].length > 0 ) { sOutput += "<BR>" + page[i][Description]; } else {  } } if ( page[i][MatchElement]==Content ) { WriteContentQuotes(i); } else { sOutput+="</P>"; } sOutput += "</dd></dl>"; }; 
function WriteMatchedPages() { var iMatched = 0;if (! (bWildcardError )) { for( var i=1; i<page.length; i++ ) { if( page[page[i][SortPointer]][MatchCount] > 0 ) { WritePage(page[i][SortPointer], ++iMatched); } }  } else { if( iWildcard == -4 ) { sOutput += "<P><B>Грешка:</B>&nbsp;Знака (*) трябва да бъде в началото или края на думата."; } }  } 
function WriteDocTop() { sOutput += "<html><head><title>Търсене на: \"" + Original + "\"</title></head><body"; sOutput += " BGCOLOR=\"#F3F9E9\""; sOutput += " LINK=\"#000FFF\""; sOutput += " VLINK=\"#800040\""; sOutput += " ALINK=\"#FF0000\""; sOutput += ">" ;sOutput += "<p>Вие търсите: <b>" + Original +".</b>"; } 
function WriteDocEnd() { var iTotalMatched=0;if (!(bWildcardError)) { for( var i=1; i<page.length; i++ ) { if( page[i][MatchCount]>0 ) { iTotalMatched ++; } }  } if(iTotalMatched==0) { sOutput += "<P>Няма съвпадение.&nbsp;&nbsp;"; } else { var sPlural = iTotalMatched==1 ? "" : "s"; sOutput += "<P>" + iTotalMatched + " намерини" + sPlural + " страници.&nbsp;&nbsp;"; } sOutput += "<A href=\"javascript:self.close();\"><B>Затворете прозореца</B></A></P>"; sOutput += ( "</font>" ); sOutput += "</p></body></html>"; } 
function WriteHTML() { var sTempOutput = sOutput;hndlWindow = open("","Object", "resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,width=590,height=300");if ((navigator.appName.indexOf("Microsoft")!=-1) && (navigator.appVersion.indexOf("3.0")!=-1)) { alert("Click to see results"); } hndlWindow.document.open();hndlWindow.document.write( sTempOutput );hndlWindow.document.close(); } 
function HTMLEncode( sText ) { var sEncoded="";for( var i=0; i<sText.length; i++) { if( sText.charAt(i)=="<" ) { sEncoded += "&lt;"; } else if( sText.charAt(i)==">" ) { sEncoded += "&gt;"; } else if( sText.charAt(i)=="\"" ) { sEncoded += "&quot;"; } else { sEncoded += sText.charAt(i); } } return( sEncoded ); } 
function CheckWildcard() { iWildcard = sTarget.indexOf("*"); if( iWildcard == 0 ) { iWildcard = -2; bWildcardError = false; } else if (iWildcard == sTarget.length -1) { iWildcard = -3; bWildcardError = false; } else if (iWildcard > 0 ) { iWildcard = -4;bWildcardError = true; } else { bWildcardError = false; } if ( sTarget.indexOf("*") != sTarget.lastIndexOf("*") ) { if( iWildcard == -2 ) { if( sTarget.lastIndexOf("*") == sTarget.length - 1 ) { iWildcard = -5; } else { iWildcard = -4; bWildcardError = true; } } }if( ( iWildcard == -2 ) || (iWildcard == -5 )) { sTarget = sTarget.substring( 1, sTarget.length ); } if( ( iWildcard == -3 ) || (iWildcard == -5 )) { sTarget = sTarget.substring( 0, sTarget.length - 1 ); } } 
function startsearch() { var sTargetUpper;sTarget=document.formSearch.txtSearch.value;if ( sTarget.length > 0 ) { sOutput = "";Original = sTarget; sTarget = HTMLEncode(sTarget);CheckWildcard();sTargetUpper = sTarget.toUpperCase();if ( !(bWildcardError ) ) { for( var i=1; i<page.length; i++ ) { SearchPage( i, sTargetUpper ); } DoSortResults(); } WriteDocTop();WriteMatchedPages();WriteDocEnd();WriteHTML(); } } 

//  End of Search Maker Pro script.

//-->
