function blanks(){
	var links=document.getElementsByTagName('A'),links_len=links.length;
	for(i=0;i<links_len;i++){if(links[i].className=="blanks"){links[i].className="blank";links[i].target="_blank";}}
}
window.onload =function(){blanks();}
window.BASE_SITE="";
function fop(obj){
	a=obj.value;
	if(a.length<3)return false;
	setTimeout(frload,100);
}
function frload() {
	a=document.getElementById("liveSearchMain").value;
	JsHttpRequest.query(
		'http://zenbroker.ru/dir/fsearch_f.php',
		{'q':a},
		function(result, errors) {
			if(result){
				if(result["str"]!=''){
					document.getElementById("liveSearchDivMain").className="disp";
					document.getElementById("liveSearchDivMain").innerHTML=result["str"];
				}else{
					document.getElementById("liveSearchDivMain").className="nodisp";
				}
			}
		},
		false
	);
}
{
var y1 = 20;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;}
function hideIt() {
  if (dom) {document.getElementById("layer1").style.visibility='hidden';}
  if (document.layers) {document.layers["layer1"].visibility='hide';} }
function showIt() {
  if (dom) {document.getElementById("layer1").style.visibility='visible';}
  if (document.layers) {document.layers["layer1"].visibility='show';} }
function placeIt() {
  if (dom && !document.all) {document.getElementById("layer1").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.layers) {document.layers["layer1"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
  if (document.all) {document.all["layer1"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
  window.setTimeout("placeIt()", 10); }
