isDOM=document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+) isOpera=isOpera5=window.opera && isDOM //Opera 5+ isOpera6=isOpera && window.print //Opera 6+ isOpera7=isOpera && document.readyState //Opera 7+ isMSIE=document.all && document.all.item && !isOpera //Microsoft Internet Explorer 4+ isMSIE5=isDOM && isMSIE //MSIE 5+ isNetscape4=document.layers //Netscape 4.* isMozilla=isDOM && navigator.appName=="Netscape" //Mozilla или Netscape 6.* var oldUrl = false; function IE5opener(url,w,h){ //w = Math.abs(w)+7; h = Math.abs(h)+27; scrollYes = ( w > screen.availWidth || h > screen.availHeight ) ? 1 : 0; addScrollbarWidth = (scrollYes) ? 17 : 0; w = (w > screen.availWidth) ? screen.availWidth - 40 : w + addScrollbarWidth; h = (h > screen.availHeight) ? screen.availHeight - 40 : h + addScrollbarWidth; var ver =navigator.appVersion; ver = ver.substring(ver.indexOf("MSIE")+5, ver.length); ver = parseFloat(ver.substring(0, ver.indexOf(";"))); if(ver >=5){ if((url != oldUrl)||(WinObj.closed)){ WinObj = showModelessDialog(url, window, "help: no; status: no; scroll:"+ scrollYes+"; resizable: on; dialogWidth:"+w+"px; dialogHeight:"+h+"px; margin: 0"); oldUrl = url; }else{ if(!WinObj.closed){WinObj.focus();} } }else{ OtherOpener(url,w,h); } } function OtherOpener(url,w,h){ w = w+18; h = h +26; d = new Date(); t = d.getTime(); WinObj = window.open(url, t,"width="+w+",height="+h+",location=yes,status=yes,menubar=yes,toolbar=no,resizable=yes"); return (WinObj!==null) ? false: true; } function PopUp(url,w,h){ if( document.all ){ IE5opener(url,w,h); }else{ if(document.images){ OtherOpener(url,w,h); } } return false; } var popupWin = null function openImg(iURL,iW,iH,iTitle){ if (popupWin && !popupWin.closed) { popupWin.close(); } popupWin = open("", "PopupWin", "width=" + iW + ",height=" + iH); popupWin.document.write(""); popupWin.document.write("
"); popupWin.document.close(); popupWin.document.title = (iTitle == null) ? "" : iTitle; } function fullScreenOpen(url) { var Width = ""; var Height = ""; if (document.all) { Width = screen.availWidth; Height = screen.availHeight; var oWin = window.open("","fullwindow","left=0,top=0,width="+Width+",height="+Height+",scrollbars=auto,fullscreen=yes"); oWin.location = url; } else { window.open(url,'fullwindow','menubar=no,status=no,location=no,scrollbars=auto,directories=no,resizable=yes,fullscreen=yes,alwaysRaised,dependent'); } return false; } function compareWin(elm){ if(document.childNodes&&document.all){ WinObj = window.open(elm.href=elm.href+"&noframe=true","_search"); WinObj.offscreenBuffering=false; return false; } if(document.images){ WinObj = window.open(elm.href=elm.href+"&self=close",null, "height=400,width=180,status=yes,toolbar=no,menubar=no,location=no,resizable=yes"); return false; } return true; } function doc(elm){ if(document.getElementById) return document.getElementById(elm); if(document.all) return document.all[elm]; if(document.layers) return document.layers[elm]; return null; } function MarkObject(rID, jTotal, sTotal){ if(cBox[rID]) { cBox[rID].disabled=false; cBox[rID].style.cursor="default"; cBox[rID].checked=true; } setCounter(jTotal, sTotal); } function UnMarkObject(rID, jTotal, sTotal){ if(cBox[rID]) { cBox[rID].disabled=false; cBox[rID].style.cursor="default"; cBox[rID].checked=false; } setCounter(jTotal, sTotal) } function setCounter(jTotal, sTotal){ doc("goods_favorites_count").innerHTML=jTotal; } var cBox = new Array(); function clk(oElm){ rID = oElm.name; if(oElm.checked) { param = "addID=" } else { param = "remID="; } oDate = new Date(); oSrc = "http://altai.sibirtelecom.sibnet.ru/index.php?"+param+rID+"&rand="+oDate.getTime(); oScript = "