var pics=new Array();var objCount=0;
function preload(d,c,a){pics[objCount]=new Array(3);pics[objCount][0]=new Image();pics[objCount][0].src=c;pics[objCount][1]=new Image();pics[objCount][1].src=a;pics[objCount][2]=d;objCount++}
function on(a){for(i=0;i<objCount;i++){if(document.images[pics[i][2]]!=null){if(a!=pics[i][2]){document.images[pics[i][2]].src=pics[i][0].src}else{document.images[pics[i][2]].src=pics[i][1].src}}}}
function off(){for(i=0;i<objCount;i++){if(document.images[pics[i][2]]!=null){document.images[pics[i][2]].src=pics[i][0].src}}}
function trim(c){var d,a;for(d=0;d<c.length&&c.charAt(d)==" ";d++){}for(a=c.length-1;a>=0&&c.charAt(a)==" ";a--){}if(d<=a){return c.substring(d,a+1)}else{return""}}
function CheckValue(d,a){var c=trim(d.value);if(c==""){d.value=a}}
function HideValue(d,a){var c=trim(d.value);if(c==a){d.value=""}}
function wo(e,d,a,c){window.open(e,d,"location=yes,resizable, scrollbars, width="+a+",height="+c+"")}
function installSearchEngine(a,c){if(window.external&&("AddSearchProvider" in window.external)){window.external.AddSearchProvider(a)}else{if(window.sidebar&&("addSearchEngine" in window.sidebar)){window.sidebar.addSearchEngine(a,c,"?скать товары в КЦ Башня","")}else{alert("Ваш браузер не поддерживает данный Поисковый плагин. ?спользуйте браузер Firefox версии 1.5 и выше, или Internet Explorer версии 7.0")}}}
function hl_results(j){var h=j.split(" ");var d;var g,e,f;var a=0;while(g=h[a++]){f=new RegExp("("+g+")","i");var c=1;while((d=window.document.getElementById("pru_"+c++))){e=f.exec(d.innerHTML);if(e){d.innerHTML=d.innerHTML.replace(f,'<span style="background-color:#39c;color:#fff;">'+e[1]+"</span>")}}}}
function ShowBaloon(d,e){b=document.getElementById("baloon");document.getElementById("baloonBody").innerHTML=e.length?e:"Error: notice empty!";b.style.display="block";var c=0;var a=0;o=d;do{c+=o.offsetLeft;a+=o.offsetTop}while(o=o.offsetParent);xwidth=d.offsetWidth?d.offsetWidth:d.style.pixelWidth;xheight=d.offsetHeight?d.offsetHeight:d.style.pixelHeight;bwidth=b.offsetWidth?b.offsetWidth:b.style.pixelWidth;w=window;xbody=document.compatMode=="CSS1Compat"?w.document.documentElement:w.document.body;dwidth=xbody.clientWidth?xbody.clientWidth:w.innerWidth;bwidth=b.offsetWidth?b.offsetWidth:b.style.pixelWidth;flip=!(xwidth-10+c+bwidth<dwidth);b.style.top=xheight-10+a+"px";b.style.left=(c+xwidth-(flip?bwidth:0)-25)+"px";document.getElementById("baloonHeader").className=flip?"baloonHeaderFlip":"baloonHeaderDirect";return false}
function CreateBaloon(){b=document.createElement("DIV");b.setAttribute("id","baloon");bH=document.createElement("DIV");bH.setAttribute("id","baloonHeader");bB=document.createElement("DIV");bB.setAttribute("id","baloonBody");bB.innerText="baloon";bF=document.createElement("DIV");bF.setAttribute("id","baloonFooter");b.appendChild(bH);b.appendChild(bB);b.appendChild(bF);b.onselectstart=
function(a){return false};b.onclick=function(a){this.style.display="none"};document.body.appendChild(b);window.onresize=
function(a){document.getElementById("baloon").style.display="none"}};
