var d=document;
// ïðåëîàä
function preloadImages() {
  if(d.images){
    if(!d.MM_p)
        d.MM_p=new Array();
  var i, j=d.MM_p.length, a=preloadImages.arguments;
  for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){
        d.MM_p[j]=new Image;
        d.MM_p[j++].src=a[i];
    }
  }
}
    
 function naveli(img){
  obj = d.getElementById(img);
  obj.src="images/"+img+"_over.gif";
 }
 function otveli(img){
  obj = d.getElementById(img);
  obj.src="images/"+img+".gif";
 }
 
 // ïîèñê 
 function valser(){
    inp = d.getElementById('input');
    if (inp.value=='Ââåäèòå çàïðîñ') {
        inp.value = "";
        inp.style.color="#000000";
    }    
}
function clearinp(){        
    inp = d.getElementById('input');
    text = inp.value.replace(/(^\s*)|(\s*$)/,"");
    if (text.length==0){ 
        inp.value="Ââåäèòå çàïðîñ";
        inp.style.color="#cccccc";
    }
}
