var isIE6 = false;
var fname='';


function myOnload() {

// reduce image flicker in IE6
 if (isIE6) {
   try {
     document.execCommand('BackgroundImageCache', false, true);
   } 
   catch(e) {}; // ignore it
 }

}



function clean(a, id, idfocus){
 if (!id) { var p=a.previousSibling; } 
 else { var p = document.getElementById(id);}
 if(p){ 
   a.onblur=function(){ if(!a.value){ p.style.top=""; } };
   p.style.top="-9999px";
 }
 if (idfocus) {
  p=document.getElementById(idfocus);
  if(p) p.focus();
 }
}


function setSearchText(id,obj_){
 var obj= document.getElementById(id);
 if (!obj) return;
 clean(obj);
 obj.value = obj_.innerHTML;
}



function overOut(obj, isOver){

// if (!isIE6) return;
while (obj.tagName!='LI' && obj.tagName!='BODY'){
 obj=obj.parentNode;
}
if (obj.tagName!='LI') return;

var liCss = obj.className; //.parentNode.parentNode.className;

 if (isOver) { liCss = liCss.replace('_item', '_over'); }
 else { liCss = liCss.replace('_over', '_item'); }

 obj.className = liCss;
}

window.onload = myOnload;


function zoomFotoShow(fileName){
  window.open(fileName,'_blank','width=320,height=320,left=70,top=50,location=no,toolbar=no,menubar=no,status=no,scrollbars=yes');
}

    function yandex_premium_print(){}
    function yandex_direct_print(){}
    function yandex_market_print(){} 

function BackFilters(){ document.back_filters.submit(); }

function ChangePage(p){
	document.research.page.value=p;
	document.research.submit();
}

