var h_lnk = 0; var lastImg = 0; function getEl(el) { return document.getElementById(el); } function checkFrameset() { if(top.location == self.location) location.href="/index.html?con=" + location.pathname; } function loadImage(url, width, height) { var a = url.split("/"); var b = a[a.length-1]; var outW = b.split("."); winname = outW[0].replace(/-/, "")+width+height; url = url.replace("http://www.heidewelt.de/images/photos", ""); var imgwin = window.open('/imgviewer.html?i='+url, winname, 'height='+height+',width='+width+',scrollbars=no,location=no,menubar=no,resizeable=0,status=no,toolbar=no,top=50,left=50'); imgwin.focus(); return false; } function highliteBox(el) { el.blur(); el.className ='lnk_active'; if(h_lnk != 0 && h_lnk!=el) h_lnk.className = "menu"; h_lnk = el; } function loadGallery(id, width, height) { var imgwin = window.open('/imgviewer.html?g='+id, 'Gal'+id, 'height='+height+',width='+width+',scrollbars=0,location=no,menubar=no,resizeable=0,status=no,toolbar=no,top=50,left=50'); imgwin.focus(); return false; } function changeImage(id) { getEl('thisImage').src = "/images/graphics/spacer.gif"; getEl('thisImageTitle').innerHTML = imageTitle[id]; getEl('thisImage').style.paddingTop = imagePadding[id]+"px"; getEl('thisImage').src = imageUrl[id]; getEl('thumbBox_'+lastImg).className = "thumbBoxPassive"; getEl('thumbBox_'+id).className = "thumbBoxActive"; lastImg = id; } function contactUs() { p = new Array(); p[1] = ".de"; p[94] = "info"; p[77] = "heidewelt"; return location.href = "mailto:"+p[94]+"@"+p[77]+p[1]; }