if (this.name = '') this.name='shEAMainWnd'; this.focus(); function imagePopUp(urlToOpen) { var x = (screen.width-800)/2, y = (screen.height-800)/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-500)/2, y = (screen.height-200)/2; OpenWin = this.open(urlRecommandForThisArticle, "CtrlWindow", "width=500,height=720,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function gE(el) { return document.getElementById(el); } function toggleMenu(obj) { if (obj.className != "main-active") { var _i = 2; var _currMenu; while(_currMenu = document.getElementById("menu_" + _i)) { if (_currMenu.id != obj) { _currMenu.className = "meniu_text"; document.getElementById(_currMenu.id + "_content").style.display = "none"; document.getElementById(_currMenu.id + "_content_sep").style.display = "none"; } _i++; } obj.className = "meniu_text_rollover"; document.getElementById(obj.id + "_content").style.display = ""; document.getElementById(obj.id + "_content_sep").style.display = ""; } } function changePicture(target, source, width, pWidth, pHeight) { target.src = $(source).src; $('mainLightID').href = $(source).src; target.style.width = width + 'px'; target.setAttribute('pWidth', pWidth); target.setAttribute('pHeight', pHeight); //gE('mainPhotoTitleID').innerHTML = source.getAttribute('title'); target.setAttribute('title', $(source).getAttribute('title')); target.setAttribute('alt', $(source).getAttribute('alt')); } var OpenWin = null; function loadGalleryImage(el){ var newID = el.getAttribute('rel'); $(oldID).style.display = 'none'; $(newID).style.display = ''; oldID = newID; } //FONT INCREASER var CERTFontSize = 0; var defaultFont = 12; function increaseFontSize(elema, def) { if((CERTFontSize < 8 || def<0) && (CERTFontSize > -2 || def>0)){ //el = elema.firstChild; el = elema; while(el){ if(el.style){ el1 = el.firstChild; if(el.style.fontSize.substr(0, el.style.fontSize.length-2) > 0){ currentF = el.style.fontSize.substr(0, el.style.fontSize.length-2); }else{ currentF = defaultFont; } el.style.fontSize = (currentF*1)+def+'px'; while(el1){ if(el1.style){ if(el1.style.fontSize.substr(0, el1.style.fontSize.length-2) > 0){ currentF1 = el1.style.fontSize.substr(0, el1.style.fontSize.length-2); }else{ currentF1 = defaultFont; } el1.style.fontSize = (currentF1*1)+def+'px'; } el1 = el1.nextSibling; } } el = el.nextSibling; } CERTFontSize +=def; } }