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-400)/2, y = (screen.height-260)/2; OpenWin = this.open(urlRecommandForThisArticle, "CtrlWindow", "width=400,height=260,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function printPage(URLToPrint) { var x = (screen.width-545)/2, y = (screen.height-500)/2; URLToPrint = URLToPrint.replace(/\@/gi,"/"); URLToPrint = URLToPrint.replace(/\*/gi,"_"); URLToPrint += "&printSitePage=1"; OpenWin = this.open(URLToPrint, "CtrlWindow", "width=545,height=500,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function getElementPosition(elem) { var offsetTrail = elem; var offsetLeft = 0; var offsetTop = 0; while (offsetTrail) { offsetLeft += offsetTrail.offsetLeft; offsetTop += offsetTrail.offsetTop; offsetTrail = offsetTrail.offsetParent; } if (navigator.userAgent.indexOf("Mac") != -1 && typeof document.body.leftMargin != "undefined") { offsetLeft += document.body.leftMargin; offsetTop += document.body.topMargin; } return {left:offsetLeft, top:offsetTop}; } function SetJSCookie(cookieName,cookieValue,nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); } function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function FixFlash(){ var objects = document.getElementsByTagName('object'); for (var i=0; i")[0] + ">"; var newObject = tag + params + o.innerHTML + " "; //And, finally, the new generated HTML replaces the original: o.outerHTML = newObject; } } } function showPrevious(){ var noImages = aHpImages.length; lastHPKey--; if(lastHPKey < 0) lastHPKey = aHpImages.length - 1; el = document.getElementById('imageReceiver'); el.src = aHpImages[lastHPKey][0]; el.onclick = function(){ if(aHpImages[lastHPKey][2] > 0) window.location = document.getElementsByTagName('base')[0].href + 'index.html/articles?articleID=' + aHpImages[lastHPKey][2]; else window.location = aHpImages[lastHPKey][1]; }; el.style.cursor = "pointer"; if(aHpImages[lastHPKey][4]){ gE('headlineTeaserBackground').innerHTML = aHpImages[lastHPKey][4]; gE('headlineTeaser').innerHTML = aHpImages[lastHPKey][4]; gE('headlineTeaserBackground').style.display = ''; gE('headlineTeaser').style.display = ''; } else{ gE('headlineTeaserBackground').style.display = 'none'; gE('headlineTeaser').style.display = 'none'; } if(aHpImages[lastHPKey][2] > 0) gE('hrefReceiver').href = document.getElementsByTagName('base')[0].href + 'index.html/articles?articleID=' + aHpImages[lastHPKey][2]; else gE('hrefReceiver').href = aHpImages[lastHPKey][1]; gE('hrefReceiver').innerHTML = "" + aHpImages[lastHPKey][3] + ""; } function showNext(){ var noImages = aHpImages.length; lastHPKey++; if(lastHPKey > aHpImages.length - 1) lastHPKey = 0; el = document.getElementById('imageReceiver'); el.src = aHpImages[lastHPKey][0]; el.onclick = function(){ if(aHpImages[lastHPKey][2] > 0) window.location = document.getElementsByTagName('base')[0].href + 'index.html/articles?articleID=' + aHpImages[lastHPKey][2]; else window.location = aHpImages[lastHPKey][1]; }; el.style.cursor = "pointer"; if(aHpImages[lastHPKey][4]){ gE('headlineTeaserBackground').innerHTML = aHpImages[lastHPKey][4]; gE('headlineTeaser').innerHTML = aHpImages[lastHPKey][4]; gE('headlineTeaserBackground').style.display = ''; gE('headlineTeaser').style.display = ''; } else{ gE('headlineTeaserBackground').style.display = 'none'; gE('headlineTeaser').style.display = 'none'; } if(aHpImages[lastHPKey][2] > 0) gE('hrefReceiver').href = document.getElementsByTagName('base')[0].href + 'index.html/articles?articleID=' + aHpImages[lastHPKey][2]; else gE('hrefReceiver').href = aHpImages[lastHPKey][1]; gE('hrefReceiver').innerHTML = "" + aHpImages[lastHPKey][3] + ""; } function gE(el) { return document.getElementById(el); } function loadSubMenu(articleID){ document.getElementById('menuTable['+articleID+']').style.display = ''; document.getElementById('menuTableTrigger['+articleID+']').className = 'active'; for (i in aMenus) if(i != articleID){ document.getElementById('menuTable['+i+']').style.display = 'none'; document.getElementById('menuTableTrigger['+i+']').className = ''; } }