function openpic(img, w, h){ var win = window.open('','_blank',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h); win.document.open("text/html"); with (win.document) { write("REALPRAVO.RU"+ ""+ "Закрыть окно"+ ""); } } var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; if (isNS4) return document.layers[id]; } function ViewLayers (id) { if (!isNS4) { var obj = getRef(id); if (obj.style.display == 'none') { obj.style.display = ''; } else { obj.style.display = 'none'; } } return false; } function order(id) { win = window.open('/library/order?id=' + id,'','toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width=400, height=450'); win.focus(); return false; } function setCookie(name, value,expires) { document.cookie = name + "=" + escape(value)+"; path=/; "+((expires)?"":"expires=Thursday, 31-Dec-2020 23:59:59 GMT;"); } function openmenu(id) { var obj = document.getElementById('p' + id); var obl = document.getElementById('l' + id); var div = getElementsByClassName("fbox"); for (i=0; i arrObjClass.length) continue; var c = 0; comparisonLoop: for (var k = 0, l = arrObjClass.length; k < l; k++) { for (var m = 0, n = arrClass.length; m < n; m++) { if (arrClass[m] == arrObjClass[k]) c++; if ((delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) { arr.push(objColl[i]); break comparisonLoop; } } } } return arr; } Array.prototype.push = function(value) {this[this.length] = value; };