function ss() {
 if (document.getElementById("search_form").value==" Поиск по сайту ") {
  document.getElementById("search_form").value = "";
 }
}
function so() {
 if (document.getElementById("search_form").value=="") {
  document.getElementById("search_form").value = " Поиск по сайту ";
 }
}

function enss() {
 if (document.getElementById("search_form").value==" Site search ") {
  document.getElementById("search_form").value = "";
 }
}
function enso() {
 if (document.getElementById("search_form").value=="") {
  document.getElementById("search_form").value = " Site search ";
 }
}


var slideShowSpeed = 6000
var crossFadeDuration = 8
var Pic = new Array()
Pic[0] = '/img/pho/to.jpg'
Pic[1] = '/img/pho/to1.jpg'
Pic[2] = '/img/pho/to2.jpg'
Pic[3] = '/img/pho/to3.jpg'
Pic[4] = '/img/pho/to4.jpg'
Pic[5] = '/img/pho/to5.jpg'
Pic[6] = '/img/pho/to6.jpg'
Pic[7] = '/img/pho/to7.jpg'
Pic[8] = '/img/pho/to8.jpg'
Pic[9] = '/img/pho/to9.jpg'
Pic[10] = '/img/pho/to10.jpg'
Pic[11] = '/img/pho/to11.jpg'
Pic[12] = '/img/pho/to12.jpg'
Pic[13] = '/img/pho/to13.jpg'
Pic[14] = '/img/pho/to14.jpg'
Pic[15] = '/img/pho/to15.jpg'
Pic[16] = '/img/pho/to16.jpg'
Pic[17] = '/img/pho/to17.jpg'
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
       document.getElementById('slider').style.filter="blendTrans(duration=2)"
       document.getElementById('slider').style.filter="blendTrans(duration=crossFadeDuration)"
       document.getElementById('slider').filters.blendTrans.Apply()
   }

   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
       document.getElementById('slider').filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)

   document.getElementById('slider').style.background = 'url('+preLoad[j].src+') right';
}
