﻿function doTopRollover(i, b) {
  var n1, n2, el;
  n1= "/rus/express/images/menu/VSE_Menu_";
  el = FP_getObjectByID(i, null);
  if(el) {
    if(b) {
      el.src = n1 + i + "_rollover.gif";
    } else {
      el.src = n1 + i + "_enabled.gif";
    }
  }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}


function do2005Download(id) {
  var el = FP_getObjectByID(id);
  if(el) {
    return el.options[el.selectedIndex].value;
  } else {
    return null;
  }
}


function showQuickLinks(obj) {
var el = document.getElementById(obj);
if ( el.className != "quick-links-hide" ) {
el.className = 'quick-links-hide';
}
else {
el.className = 'quick-links';
}
}

function doSearch()
{
 var keywordsTextbox = document.getElementById("msviSearchBox");
 if (keywordsTextbox != null)
 {
 var qs = "View=ru-ru&charset=windows-1251&qu=" + escape(keywordsTextbox.value);
 var url = "http://www.microsoft.com/library/toolbar/3.0/search.aspx?" + qs;
 window.location.href = url;
 }
}