
//---------------------------------------------------------------------------------------------
// Copyright © 2001-2003 Na1L . http://lrm.h1.ru/
//---------------------------------------------------------------------------------------------

var	mounth	="";
var	year	="";
var	date	="";
var	dv	=".";

function SetMounth()
{	
  with (document)
    {
      if (lastModified.substring(0,2)=="01") {mounth="Jan"};
      if (lastModified.substring(0,2)=="02") {mounth="Feb"};
      if (lastModified.substring(0,2)=="03") {mounth="Mar"};
      if (lastModified.substring(0,2)=="04") {mounth="Apr"};
      if (lastModified.substring(0,2)=="05") {mounth="May"};
      if (lastModified.substring(0,2)=="06") {mounth="Jun"};
      if (lastModified.substring(0,2)=="07") {mounth="Jul"};
      if (lastModified.substring(0,2)=="08") {mounth="Aug"};
      if (lastModified.substring(0,2)=="09") {mounth="Sep"};
      if (lastModified.substring(0,2)=="10") {mounth="Oct"};
      if (lastModified.substring(0,2)=="11") {mounth="Nov"};
      if (lastModified.substring(0,2)=="12") {mounth="Dec"};
    }
}

function SetYear()
{
  year=document.lastModified.substring(6,10);
}

function SetDate()
{
  date=document.lastModified.substring(3,5);
}

function WriteLastUptime()
{
  document.write(document.lastModified.substring(11,19));
}

function WriteLastUpdate()
{
  document.write(date+dv+mounth+dv+year);
}

function clearStatus()
{
  window.status="";
}
function showindow()
{
 var about=window.open("na1l.html","mf","toolbar=0,menubar=0,width=300,height=300");
}
function showreklama()
{
 var about=window.open("reklama.html","mf","toolbar=0,menubar=0,width=460,height=2");
}
SetDate();
SetMounth();
SetYear();



//---------------------------------------------------------------------------------------------
// Copyright © 2001-2003 Na1L . http://lrm.h1.ru/
//---------------------------------------------------------------------------------------------

function jump(url) 
{
 opener.document.location=url;
}

function scrollit() 
{ 
var n=navigator.appName,xx,w=0,y=0,z=0,q=0
if(n=="Netscape")xx="NS"
else if (n=="Microsoft Internet Explorer")xx="IE"
if(xx=="IE")y=document.body.scrollTop
if(xx=="NS")y=self.pageYOffset
for(w=0;y!=0;w++){
z=y/100;
parent.scroll(y,(y-z));
if(xx=="IE")y=document.body.scrollTop;
if(xx=="NS")y=self.pageYOffset;
}
}

function addBo(){
window.external.addFavorite('http://www.oreoltour.ru')
}

var item = new Array();

c=0; 

//---------------------------------------------------------------------------------------------
// начало массива для поиска
//---------------------------------------------------------------------------------------------


item[c]=new Array("news.html","","Новости компании Ореол Тур","о компании,история компании,сотав,горячие предложения и новости,ОреолТур","Узнайте последние новости компании Ореол Тур. Горячие предложения и путевки по Золотому кольцу России");c++; 

item[c]=new Array("contacts.html","","Контакты Ореол Тур","Как нас найти ??? Город Владимир ...,история компании,сотав,горячие предложения и новости,ОреолТур","Как нас найти ??? Город Владимир ...");c++; 


//---------------------------------------------------------------------------------------------
// Конец массива
//---------------------------------------------------------------------------------------------


page="<html><head><title>Результаты поиска</title></head>";
page+="<script language=JavaScript src='java.js' type=text/javascript></script><link REL=stylesheet HREF='style.css' TYPE='text/css'><body bgcolor='FFDD00'><center><table border=0 cellspacing=10 width=80%><font class=text>";

function search(frm) {
win = window.open("","","scrollbars=yes");
win.document.write(page);
txt = frm.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Найдено: "+total+"<br></body></font></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td class=text><a href='javascript:jump(\""+link+"\");'>"+item[which][2]+"</a> :: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}

 function sdas() {window.status='';}
  window.status='Designed by DG © 2003';

function fulltime() 
{
    document.getElementById('SmallClock').innerText =""+getdate(DDMMYY);
}

var DDMMYY =0
var MMDDYY =1

function getdate(mode)
{
   var now = new Date();
   var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
   if (mode==DDMMYY)
      var MonthDayYear =(dayNr+"/"+(now.getMonth()+1)+"/"+now.getYear());
   else
      var MonthDayYear =((now.getMonth()+1)+"/"+dayNr+"/"+now.getYear());
MonthDayYear=MonthDayYear;
   return MonthDayYear;
}

//---------------------------------------------------------------------------------------------



