if (this.name != 'CtrlWindow') this.name='shRLSMainWnd'; this.focus(); var imgSubCategory = ''; function Dimension(element){ this.x=-1; this.y=-1; this.w=0; this.h=0; if (element==document){ this.x=element.body.scrollLeft; this.y=element.body.scrollTop; this.w=element.body.clientWidth; this.h=element.body.clientHeight; }else if (element!=null){ var e=element; var left=e.offsetLeft; while ((e=e.offsetParent)!=null) { left+=e.offsetLeft; } var e=element; var top=e.offsetTop; while((e=e.offsetParent)!=null) { top+=e.offsetTop; } this.x=left; this.y=top; this.w=element.offsetWidth; this.h=element.offsetHeight; } } function showFilters(el, filterName) { var myEl = gE('filtrare['+filterName+']'); var maxWidth = el.offsetWidth; if(document.all) { myEl.style.marginTop = 15 + 'px'; myEl.style.marginLeft = -maxWidth + 'px'; } for(var i=0; i < myEl.childNodes.length; i++) if(myEl.childNodes[i].tagName == 'li' || myEl.childNodes[i].tagName == 'LI') { if(maxWidth < myEl.childNodes[i].offsetWidth) maxWidth = myEl.childNodes[i].offsetWidth; } maxWidth -= 7; for(var i=0; i < myEl.childNodes.length; i++) if((myEl.childNodes[i].tagName == 'li' || myEl.childNodes[i].tagName == 'LI')) { myEl.childNodes[i].style.width = maxWidth + 'px'; } } startList = function() { if (document.all && document.getElementById && document.getElementById("filtre")) { navRoot = document.getElementById("filtre"); for (var i=0; i 1024) ? 1024 : pwidth + 50; height = (pheight > 768) ? 768 : pheight + 50; content += '' + title + ''; content += ''; content += '
'; if(OpenWin) OpenWin.close(); if(pwidth > 1024 || pheight > 768) OpenWin = this.open('', "CtrlWindow", "width=" + width + ",height=" + height + " toolbar=no, menubar=no, location=no, scrollbars=yes, statusbar=no, resizable=yes, screenX="+x+", screenY="+y+", left="+x+", top="+y); else OpenWin = this.open('', "CtrlWindow", "width=" + width + ",height=" + height + " toolbar=no, menubar=no, location=no, scrollbars=no, statusbar=no, resizable=yes, screenX="+x+", screenY="+y+", left="+x+", top="+y); OpenWin.document.write(content); OpenWin.focus(); }