if (this.name = '') this.name='shEAMainWnd'; this.focus(); function imagePopUp(urlToOpen) { var x = (screen.width-800)/2, y = (screen.height-600)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function printerFriendly(urlToOpen) { var x = (screen.width-600)/2, y = (screen.height-400)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "width=600,height=400,toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function recommend(urlRecommandForThisArticle) { var x = (screen.width-380)/2, y = (screen.height-340)/2; OpenWin = this.open(urlRecommandForThisArticle, "CtrlWindow", "width=380,height=340,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } var OpenWin = ''; function imgPopup2(file, pwidth, pheight, title, aDescription) { var content = ''; if(!aDescription) { var aDescription=''; } pwidth = parseInt(pwidth); pheight = parseInt(pheight); var x = (screen.width-pwidth)/2; y = (screen.height-pheight)/2; //y = 10; width = (pwidth > 1024) ? 1024 : pwidth; height = (pheight > 768) ? 768 : pheight; content += '' + title + ''; content += ''; content += '
'+ aDescription +'
'; 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(); } function showFilters(el, filterName) { var myEl = $('filtrare['+filterName+']'); var auxC = myEl.style.display; if(document.all){ //myEl.parentNode.style.visibility = 'hidden'; //alert('here'); } var maxWidth = el.offsetWidth; if(document.all) { myEl.style.marginTop = 15 + 'px'; myEl.style.marginLeft = -maxWidth + 'px'; } var strnavigator = navigator.userAgent.toLowerCase(); if (strnavigator.indexOf('opera') != -1){ myEl.style.marginTop = -5 + 'px'; myEl.style.marginLeft = -maxWidth + el.offsetWidth + 'px'; } for(var i=0; i < myEl.childNodes.length; i++) if(myEl.childNodes[i].tagName == 'li' || myEl.childNodes[i].tagName == 'LI') { var compareMaxWidth = 0; if(document.all){ var htstring = myEl.childNodes[i].innerHTML; var auxString = htstring.replace(/(<([^>]+)>)/ig,""); compareMaxWidth = auxString.length * 5; myEl.childNodes[i].onmouseover = function() {this.className = 'hover';}; myEl.childNodes[i].onmouseout = function() {this.className = '';}; } else{ var compareMaxWidth = myEl.childNodes[i].offsetWidth; } if(maxWidth < compareMaxWidth) maxWidth = compareMaxWidth; } // alert(maxWidth+" | "+compareMaxWidth); //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'; // alert(myEl.childNodes[i].style.width); } // if(document.all) myEl.style.visibility = 'visible'; } startList = function() { if (document.all && document.getElementById && document.getElementById("filtre")) { navRoot = document.getElementById("filtre"); for (var i=0; i