var session = 'e02h65b6ecevuh51r4o49jk1g3'; var page='faq'; var style='misc'; var impressionId = new Array();impressionId.push(22);impressionId.push(21);impressionId.push(19);impressionId.push(20);impressionId.push(17);impressionId.push(16);impressionId.push(1);impressionId.push(4);impressionId.push(3);impressionId.push(10);impressionId.push(13);impressionId.push(2);impressionId.push(14);impressionId.push(7);impressionId.push(8);var scripts = new Array(); var sliderpos = 0; var slidermaxpos=0; var impressionIdPos=0; var SlideShowAktiv = true; if (style=='impressions') var SlideShow=window.setInterval('ImpressionSlideShow()', 7500); else window.clearInterval(SlideShow); function ImpressionSlideShow(){ if (SlideShowAktiv) { setMenuSlideShow(impressionId[impressionIdPos]); impressionIdPos++; if (impressionIdPos>impressionId.lenght-1) impressionIdPos=0; }else{ window.clearInterval(SlideShow); } } function Request(url,param,func,sync) { var async = true; if( sync == true ) async = false; var req = newXMLHttpRequest(); if(async && func) { var handlerFunc = getReadyStateHandler(req,func); req.onreadystatechange = handlerFunc; } req.open('GET', url+'?'+param, async); req.send(null); if(!async && func) func(req); } function newXMLHttpRequest() { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); // zu dieser Zeile siehe weiter unten } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); return false; } return http_request; } function getReadyStateHandler(req, responseXmlHandler) { // Return an anonymous function that listens to the // XMLHttpRequest instance return function () { // If the request's status is "complete" if (req.readyState == 4) { // Check that a successful server response was received if (req.status == 200) { //todo: catch 404 error. // Pass the XML payload of the response to the // handler function responseXmlHandler(req); }else{ // An HTTP problem has occurred alert("Couldn't process data.\nError code: "+req.status+"\nMessage: "+req.responseText); } } } } var slide = false; function StartSlide() { document.getElementById('sl_inner').innerHTML = ''; //document.getElementById('slider').style.width = 100+'px'; //document.getElementById('sl_inner').style.width = 80+'px'; //slide = true; addEvent(document.body,"mousemove",Slide); addEvent(document.body,"mouseup",StopSlide); } function StopSlide() { var npos; var field; //slide = false; var pos = parseInt(document.getElementById('slider').style.left); if(pos + 90 < 181) { npos = 0; field = document.getElementById('sl_first'); } else if(pos + 90 < 362) { npos = 181; field = document.getElementById('sl_second'); } else if(pos + 90 < 3*181) { npos = 2*181; field = document.getElementById('sl_third'); } else if(pos + 90 < 4*181) { npos = 3*181; field = document.getElementById('sl_fourth'); } else { npos = 4*181; field = document.getElementById('sl_last'); } document.getElementById('slider').style.left = npos+'px'; document.getElementById('sl_inner').innerHTML = field.innerHTML; removeEvent(document.body,"mousemove",Slide); removeEvent(document.body,"mouseup",StopSlide); setMenu((npos/181)+1); } function setSlider(pos,elem) { document.getElementById('slider').style.left = pos+'px'; document.getElementById('sl_inner').innerHTML = elem.innerHTML; setMenu((pos/181)+1); } function Slide(event) { //if(slide) { var width = document.getElementById('slider').offsetWidth; var newx = event.clientX - Math.round(width/2);; // pointer in der Mitte; newx -= document.getElementById('sl_menu_block').offsetLeft; if(newx < 0) newx = 0; var pwidth = 905; if( (newx + width) > (pwidth) ) newx = (pwidth-width); //if(newx < 49) newx = 49; document.getElementById('slider').style.left = newx+"px"; //document.getElementById('sl_inner').innerHTML = newx; //} } function slidenew(direction){ if (sliderpos=NaN) sliderpos=0; if (direction=='left'){ sliderpos=sliderpos-50; }else{ sliderpos=sliderpos+50; } if (sliderpos>0) sliderpos=0; if(sliderpos < 0){ document.getElementById("slider_left_button").style.backgroundImage="url(/img/misc/arrowleft.png)"; }else{ document.getElementById("slider_left_button").style.backgroundImage=" "; } if(sliderpos < slidermaxpos){ document.getElementById("slider_right_button").style.backgroundImage=" "; }else{ document.getElementById("slider_right_button").style.backgroundImage="url(/img/misc/arrowright.png)"; } document.getElementById('slider').style.left=sliderpos+'px'; } function getChart() { var params = new Array(); Request("/fotos/fbinfo.php",params.join("&"),setChartHTML); } function setChartHTML(req) { document.getElementById("charts").innerHTML = req.responseText; } function setMenuSlideShow(num) { var temp=0; temp=document.getElementById('slider').style.left; sliderpos=parseInt(temp.substring(0,temp.length-2)); var params = new Array(); params.push("slider="+num); params.push("sliderpos="+sliderpos); params.push("page="+page); Request("slidemenu.php",params.join("&"),setMenuHTML); } function setMenu(num) { SlideShowAktiv = false; setMenuSlideShow(num); } function fadeOut(step){ if (style=='impressions'){ var div=document.getElementById("big_pic_menu"); }else{ var div=document.getElementById("small_pic_menu"); } step=step || 0; div.style.opacity = step/100; div.style.filter = "alpha(opacity=" + step + ")"; step=step+2; if (step <= 100) window.setTimeout(function () { fadeOut(step); }, 1); } function setMenuHTML(req) { fadeOut(); document.getElementById("head").innerHTML = req.responseText; FB.XFBML.parse(); } function setImpressions(num) { var params = new Array(); params.push("slider="+num); params.push("page="+page); Request("slidemenu2.php",params.join("&"),setMainImpHTML); // document.getElementById("big_pic_menu").style.background: = 'url(\'/img/impressions/new/i'+num+'_main.jpg\')'; // document.getElementById("slider_footer").style.background: = 'url(\'/img/impressions/new/i'+num+'_footer.jpg\')'; } function setMainImpHTML(req) { document.getElementById("big_pic_menu").innerHTML = req.responseText; } function addEvent( obj, type, fn ) { if (obj.addEventListener) { if(type=="mousewheel") { obj.addEventListener("SOMMouseScroll", fn, false ); } obj.addEventListener( type, fn, false ); } else if (obj.attachEvent) { obj["e"+type+fn] = fn; obj[type+fn] = function() { obj["e"+type+fn]( window.event ); } obj.attachEvent( "on"+type, obj[type+fn] ); } } function removeEvent( obj, type, fn ) { if (obj.removeEventListener) { if(type=="mousewheel") { obj.removeEventListener("SOMMouseScroll", fn, false ); } obj.removeEventListener( type, fn, false ); } else if (obj.detachEvent) { obj.detachEvent( "on"+type, obj[type+fn] ); obj[type+fn] = null; obj["e"+type+fn] = null; } } function mouseX(evt) { if (evt.pageX) return evt.pageX; else if (evt.clientX) return evt.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); else return null; } function mouseY(evt) { if (evt.pageY) return evt.pageY; else if (evt.clientY) return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return null; } //################## function kategoriePress(e) { e = (!e) ? window.event : e; target = (!e.target) ? e.srcElement : e.target; if (target.nodeType == 3) target = target.parentNode; code = (e.charCode) ? e.charCode : ((e.keyCode) ? e.keyCode : ((e.wich) ? e.wich : 0)); if (e.type == "keyup") { keypress=false; if ((code < 13 && code != 8) || (code >=14 && code <32) || (code >=33 && code <=46 && code != 38 && code !=40) || (code >=112 && code <=123)) { //? } else { if (code==13) { if (document.getElementById("vorschlagKategorie").selectedIndex!=-1) { vorschlagKategorie=document.getElementById("vorschlagKategorie").options[document.getElementById("vorschlagKategorie").selectedIndex]; document.getElementById("kategorieEingabe").value = vorschlagKategorie.text; document.getElementById("kategorieAntwort").style.visibility = "hidden"; kategorieglob=document.getElementById("kategorieEingabe").value=document.getElementById("vorschlagKategorie").options[document.getElementById("vorschlagKategorie").selectedIndex].text; galleryKategorieUpdate(vorschlagKategorie.text); } } else { if (code==40) { max=document.getElementById("vorschlagKategorie").length-1; if (document.getElementById("vorschlagKategorie").selectedIndex==max) { document.getElementById("vorschlagKategorie").selectedIndex=0; } else { document.getElementById("vorschlagKategorie").selectedIndex++; } } else { if (code==38) { if (document.getElementById("vorschlagKategorie").selectedIndex==0) { max=document.getElementById("vorschlagKategorie").length-1; document.getElementById("vorschlagKategorie").selectedIndex=max; } else { document.getElementById("vorschlagKategorie").selectedIndex--; } } /*else { autorEingabe = document.getElementById("autorEingabe"); if (autorEingabe.value != "") { document.getElementById("autorAntwort").style.visibility = "visible"; params = new Array(); params.push("autorEingabe="+(autorEingabe.value)); if (kategorieglob) { params.push("kategorieEingabe="+kategorieglob); } Request("rufeAutor.php",params.join("&"),zeigeAutor); } else { document.getElementById("autorAntwort").style.visibility = "hidden"; } }*/ } } } keypress=true; } } function initial() { autorglob="Alle"; kategorieglob="Alle"; } function test() { //document.getElementById("pfeil").style.position = "absolute"; //document.getElementById("pfeil").style.zIndex = "12"; //document.getElementById("pfeil").style.backgroundImage = "url('galerie/pfeilover.bmp')"; alert("sadfs"); } if (document.getElementById("autorEingabe")) { document.getElementById("autorEingabe").value=autorglob; document.getElementById("kategorieEingabe").value=kategoieglob; } function rufeKategorie() { kategorieEingabe = document.getElementById("kategorieEingabe"); document.getElementById("kategorieAntwort").style.visibility = "visible"; document.getElementById("kategorieEingabe").select(); params = new Array(); params.push("kategorieEingabe="+(kategorieEingabe.value)); if (autorglob) { params.push("autorEingabe="+autorglob); } Request("rufeKategorie.php",params.join("&"),zeigeKategorie); } function zeigeKategorie(req) { if (req) { document.getElementById("kategorieAntwort").innerHTML = req.responseText; document.getElementById("vorschlagKategorie").selectedIndex=0; } } function kategorieUebernehmen() { vorschlagKategorie=document.getElementById("vorschlagKategorie").options[document.getElementById("vorschlagKategorie").selectedIndex]; document.getElementById("kategorieEingabe").value = vorschlagKategorie.text; document.getElementById("kategorieAntwort").style.visibility = "hidden"; //document.getElementById("kategorieAntwort").style.zIndex = "1"; galleryKategorieUpdate(vorschlagKategorie.text); } function rufeAutor(e) { e = (!e) ? window.event : e; target = (!e.target) ? e.srcElement : e.target; if (target.nodeType == 3) target = target.parentNode; code = (e.charCode) ? e.charCode : ((e.keyCode) ? e.keyCode : ((e.wich) ? e.wich : 0)); if (e.type == "keyup") { keypress=false; if ((code < 13 && code != 8) || (code >=14 && code <32) || (code >=33 && code <=46 && code != 38 && code !=40) || (code >=112 && code <=123)) { //? } else { if (code==13) { max=document.getElementById("vorschlagAutor").length-1; if (max==0) { params = new Array(); params.push("autorEingabe="+"Alle"); document.getElementById("autorEingabe").value="Alle"; document.getElementById("autorAntwort").style.visibility = "hidden"; autorglob="Alle"; galleryUpdate(autorglob); } else { if (document.getElementById("vorschlagAutor").selectedIndex!=-1) { params = new Array(); params.push("autorEingabe="+(document.getElementById("vorschlagAutor").options[document.getElementById("vorschlagAutor").selectedIndex].text)); document.getElementById("autorEingabe").value=document.getElementById("vorschlagAutor").options[document.getElementById("vorschlagAutor").selectedIndex].text; document.getElementById("autorAntwort").style.visibility = "hidden"; autorglob=document.getElementById("autorEingabe").value=document.getElementById("vorschlagAutor").options[document.getElementById("vorschlagAutor").selectedIndex].text; galleryUpdate(document.getElementById("autorEingabe").value=document.getElementById("vorschlagAutor").options[document.getElementById("vorschlagAutor").selectedIndex].text); } } } else { if (code==40) { max=document.getElementById("vorschlagAutor").length-1; if (document.getElementById("vorschlagAutor").selectedIndex==max) { document.getElementById("vorschlagAutor").selectedIndex=0; } else { document.getElementById("vorschlagAutor").selectedIndex++; } } else { if (code==38) { if (document.getElementById("vorschlagAutor").selectedIndex==0) { max=document.getElementById("vorschlagAutor").length-1; document.getElementById("vorschlagAutor").selectedIndex=max; } else { document.getElementById("vorschlagAutor").selectedIndex--; } } else { autorEingabe = document.getElementById("autorEingabe"); if (autorEingabe.value != "") { document.getElementById("autorAntwort").style.visibility = "visible"; params = new Array(); params.push("autorEingabe="+(autorEingabe.value)); if (kategorieglob) { params.push("kategorieEingabe="+kategorieglob); } Request("rufeAutor.php",params.join("&"),zeigeAutor); } else { document.getElementById("autorAntwort").style.visibility = "hidden"; } } } } } keypress=true; } } function zeigeAutor(req) { if (req) { document.getElementById("autorAntwort").innerHTML = req.responseText; max=document.getElementById("vorschlagAutor").length-1; if (max>=4 && max<=6) { document.getElementById("vorschlagAutor").size=7; } if (max>=2 && max<=3) { document.getElementById("vorschlagAutor").size=4; } if (max<=1) { document.getElementById("vorschlagAutor").size=2; } document.getElementById("vorschlagAutor").selectedIndex=1; } } function autorUebernehmen() { vorschlagAutor=document.getElementById("vorschlagAutor").options[document.getElementById("vorschlagAutor").selectedIndex]; document.getElementById("autorEingabe").value = vorschlagAutor.text; //alert(document.getElementById("vorschlagAutor").selectedIndex); document.getElementById("autorAntwort").style.visibility = "hidden"; galleryUpdate(vorschlagAutor.text); //alert(encodeURIComponent(document.suche.vorschlagAutor.value)); //alert(vorschlagAutor.text); } function autorVorschlag() { document.getElementById("autorAntwort").style.visibility = "visible"; document.getElementById("autorEingabe").select(); params = new Array(); params.push("autorEingabe="+"Alle"); if (kategorieglob) { params.push("kategorieEingabe="+kategorieglob); } Request("rufeAutor.php",params.join("&"),zeigeAutor); } var onAutor=""; var onKategorie=""; function onBlurAutor() { if (onAutor!="focus") { document.getElementById("autorAntwort").style.visibility = "hidden"; document.getElementById("kategorieAntwort").style.zIndex = "1"; document.getElementById("autorcontainer").style.height= "17px"; if(!autorglob) { document.getElementById("autorEingabe").value = "Alle"; } else { document.getElementById("autorEingabe").value = autorglob; } //alert(document.getElementById("autorAntwort").selectedIndex); } } function onBlurKategorie() { if (onKategorie!="focus") { document.getElementById("kategorieAntwort").style.visibility = "hidden"; //document.getElementById("vorschlagAutor").selectedIndex=1; document.getElementById("kategoriecontainer").style.height= "17px"; if (!document.getElementById("vorschlagKategorie").selectedIndex) { document.getElementById("vorschlagKategorie").selectedIndex=1; } if(!kategorieglob) { document.getElementById("kategorieEingabe").value = "Alle"; } else { document.getElementById("kategorieEingabe").value = kategorieglob; } } } function galleryUpdate(autor) { params = new Array(); params.push("kvgoehren="+session); params.push("galid="+14); params.push("page="+1); params.push("input="+1); params.push("autor="+autor); if (kategorieglob) { params.push("kat="+kategorieglob); } else { params.push("kat="+"Alle"); } Request("/galerie/loadfotogallery.php",params.join("&"),showGallery); } function galleryKategorieUpdate(kategorie) { params = new Array(); params.push("kvgoehren="+session); params.push("galid="+14); params.push("page="+1); params.push("input="+1); if (autorglob) { params.push("autor="+autorglob); } else { params.push("autor="+"Alle"); } params.push("kat="+kategorie); Request("/galerie/loadfotogallery.php",params.join("&"),showGallery); } function getAutor(input,autor,kat) { document.getElementById('autoren').style.display="block"; params = new Array(); params.push("kvgoehren="+session); //if(page && page != 0) params.push("page="+page); //if(input && input != 0) params.push("input="+input); //if(autor=="") //alert ("autor?"); //params.push("autor="+encodeURIComponent(document.getElementById("inputID").value)); params.push("autor="+(document.getElementById("inputID").value)); //if(kat != "") //params.push("kat="+encodeURIComponent(document.getElementById("katID").value)); params.push("kat="+(document.getElementById("katID").value)); Request("autorensearch.php",params.join("&"),showAutor); } // END of getAutor() function showAutor(req) { if (req) { document.getElementById("autorAntwort").innerHTML = req.responseText; } } // END of showAutor() function getkat(input,autor,kat) { params = new Array(); //if(session && session != 0) params.push("kvgoehren="+session); //if(page && page != 0) params.push("page="+page); //if(input && input != 0) params.push("input="+input); //if(autor && autor != 0) params.push("autor="+encodeURIComponent(document.getElementById("inputID").value)); //if(kat && kat != 0) params.push("kat="+encodeURIComponent(document.getElementById("katID").value)); Request("katsearch.php",params.join("&"),showkat); } // END of getkat() function showkat(req) { if (req) { document.getElementById("kategor").innerHTML = req.responseText; } } // END of showkat() //################## var z; function find() { document.getElementById('autoren').style.display="block"; getAutor(); } function clearautor() { document.searchautorFORM.inputID.value = ""; //autorglob=""; } function clearkat() { document.searchautorFORM.katID.value = ""; //katglob=""; //wahlglob=""; } function onMouseOverAutor() { mouseOverAutorVar='focus'; //document.getElementById("mouseTester").value = mouseOverAutorVar; } function onMouseOutAutor() { mouseOverAutorVar=''; //document.getElementById("mouseTester").value = mouseOverAutorVar; //document.getElementById("autorAntwort").style.visibility = "hidden"; } function overkat() { overkatvar="true"; document.getElementById("kategorieTester").value = overkatvar; } function outkat() { overkatvar="false"; document.getElementById("kategorieTester").value = overkatvar; } function blurautor() { if (overautorvar==0 || overautorvar=="") { document.searchautorFORM.inputID.value = ""; document.getElementById("autoren").style.display = "none"; var param = new Array(); param.push("galid="+14); param.push("site="+1); param.push("autor="+0); if (katglob) { param.push("kat="+katglob); } else { param.push("kat="+0); } if (wahlglob) { param.push("wahl="+wahlglob); } else { param.push("wahl="+0); } autorglob=""; Request("/galerie/loadfotogallery.php",param.join("&"),showGallery); autorglob=""; } } function blurkat() { if (overkatvar==0) { document.getElementById("katID").value = ""; document.getElementById("kategor").style.display = "none"; var param = new Array(); param.push("galid="+14); param.push("site="+1); param.push("autor="+document.getElementById("inputID").value); autor = document.getElementById("inputID").value; autorglob = document.getElementById("inputID").value; param.push("kat="+0); param.push("wahl="+0); katglob=""; wahlglob=""; Request("/galerie/loadfotogallery.php",param.join("&"),showGallery); } //else // alert("sdsadfas"); } //################### function doSearch(input) { var button = document.getElementById("search_button").getElementsByTagName("button")[0]; button.className = "wait"; button.disabled = true; document.body.style.cursor = "wait"; params = new Array(); params.push("kvgoehren="+session); params.push("query="+encodeURIComponent(input.value)); params.push("page="+page); Request("search.php",params.join("&"),showSearch); } function showSearch(req) { if(req) { document.getElementById("search").innerHTML = req.responseText; openSearch(); } document.body.style.cursor = "auto"; } function openSearch() { document.getElementById("search_show").className = "show"; document.getElementById("overlay").style.display = "block"; document.getElementById("search").style.display = "block"; } function closeSearch() { var button = document.getElementById("search_button").getElementsByTagName("button")[0]; button.className = "ready"; button.disabled = false; document.getElementById("search").style.display = "none"; document.getElementById("overlay").style.display = "none"; } function reloadPage2(link) { var time1 = new Date(); if(link.length == 0) { link = "page:impressions"; } var queries = link.split("|"); var attr = new Array(); var params = new Array(); for(var i=0;i pos.left + width) { dim.right--; dim.left--; } while(dim.left < pos.left) { dim.left++; dim.right++; } while(dim.bottom > pos.top + height) { dim.bottom--; dim.top--; } while(dim.top < pos.top) { dim.top++; dim.bottom++; } /*goal.left = dim.left - anchor.left; goal.top = dim.top - anchor.top; goal.width = fullWidth; goal.height = fullHeight;*/ goal.left = dim.left; goal.top = dim.top; goal.width = fullWidth; goal.height = fullHeight; var step = {x:0,y:0,w:0,h:0}; step.x = (goal.left - act.left)/numSteps; step.y = (goal.top - act.top)/numSteps; step.w = (fullWidth - act.width)/numSteps; step.h = (fullHeight - act.height)/numSteps; //int = window.setInterval(resizeImg,50); img.style.position = "absolute"; img.style.left = act.left+"px"; img.style.top = act.top+"px"; img.style.zIndex = "10000"; document.body.appendChild(img); var act2 = new cloneObject(goal); var goal2 = new cloneObject(act); addEvent(img,"click",function() { shrink(img,act2,goal2,step,interval);}); //var func = function() { expand($img,$act,$goal)}; window.setTimeout(function() { expand(img,act,goal,step,interval);},interval); } function expand(img,act,goal,step,interval) { act.left += step.x; act.top += step.y; act.width += step.w; act.height += step.h; if(act.left > goal.left && step.x > 0) { act.left = goal.left; } if(act.left < goal.left && step.x < 0) { act.left = goal.left; } if(act.top > goal.top && step.y > 0) { act.top = goal.top; } if(act.top < goal.top && step.y < 0) { act.top = goal.top; } if(act.width > goal.width && step.w > 0) { act.width = goal.width; } if(act.width < goal.width && step.w < 0) { act.width = goal.width; } if(act.height > goal.height && step.h > 0) { act.height = goal.height; } if(act.height < goal.height && step.h < 0) { act.height = goal.height; } if(act.height==goal.height && act.width==goal.width && act.left==goal.left && act.top==goal.top) { //window.clearInterval(int); } else { window.setTimeout(function() { expand(img,act,goal,step,interval);},interval); } img.style.left = Math.round(act.left)+"px"; img.style.top = Math.round(act.top)+"px"; img.width = Math.round(act.width); img.height = Math.round(act.height); } function shrink(img,act,goal,step,interval) { act.left -= step.x; act.top -= step.y; act.width -= step.w; act.height -= step.h; if(act.left < goal.left && step.x > 0) { act.left = goal.left; } if(act.left > goal.left && step.x < 0) { act.left = goal.left; } if(act.top < goal.top && step.y > 0) { act.top = goal.top; } if(act.top > goal.top && step.y < 0) { act.top = goal.top; } if(act.width < goal.width && step.w > 0) { act.width = goal.width; } if(act.width > goal.width && step.w < 0) { act.width = goal.width; } if(act.height < goal.height && step.h > 0) { act.height = goal.height; } if(act.height > goal.height && step.h < 0) { act.height = goal.height; } //alert(act.left+" "+act.top+" "+act.width+" "+act.height); //alert(goal.left+" "+goal.top+" "+goal.width+" "+goal.height); if(act.height==goal.height && act.width==goal.width && act.left==goal.left && act.top==goal.top) { img.parentNode.removeChild(img); } else { img.style.left = Math.round(act.left)+"px"; img.style.top = Math.round(act.top)+"px"; img.width = Math.round(act.width); img.height = Math.round(act.height); window.setTimeout(function() { shrink(img,act,goal,step,interval);},interval); } } function pageOffset(win) { if(!win) win = window; var pos = {left:0,top:0}; if(typeof win.pageXOffset != 'undefined') { // Mozilla/Netscape pos.left = win.pageXOffset; pos.top = win.pageYOffset; } else { var obj = (win.document.compatMode && win.document.compatMode == "CSS1Compat") ? win.document.documentElement : win.document.body || null; pos.left = obj.scrollLeft; pos.top = obj.scrollTop; } return pos; } function cloneObject(what) { for (i in what) { this[i] = what[i]; } } function getStyle(oElm, strCssRule){ var strValue = ""; if(document.defaultView && document.defaultView.getComputedStyle){ strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule); } else if(oElm.currentStyle){ strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){ return p1.toUpperCase(); }); strValue = oElm.currentStyle[strCssRule]; } return strValue; } function trackPageError(epage) { var href = encodeURIComponent(document.URL); var referrer = encodeURIComponent(document.referrer); var params = new Array(); params.push('page='+epage); params.push('url='+href); params.push('referrer='+referrer); Request('/trackerror.php',params.join('&')); } function sendMail(address) { location.href = "mailto:"+(address.replace(/AT/,"@")); } function closeGalLayer() { document.getElementById("local_gallery").innerHTML = ""; document.getElementById("local_gallery").style.display = "none"; } function loadGalleryItem(id,query) { var params = new Array(); params.push("id="+id); params.push("remote_query="+encodeURIComponent(query)); Request("loadgallery.php",params.join("&"),openGalleryItem); } function openGalleryItem(req) { var con = document.getElementById("local_gallery"); con.innerHTML = req.responseText; con.style.display = "block"; var layer = document.getElementById("gal_detail_layer"); var height = layer.offsetHeight; var width = layer.offsetWidth; var regEx = /MSIE\s(\d+\.\d+)/; if((result = regEx.exec(navigator.appVersion)) && parseInt(result[1]) < 7) { var pos = pageOffset(); var vp_width = window.document.documentElement.clientWidth || window.document.body.clientWidth || window.innerWidth; var vp_height = window.document.documentElement.clientHeight || window.document.body.clientHeight || window.innerHeight; var anchor = {left:0,top:0}; var obj = layer; while(obj = obj.offsetParent) { anchor.left += obj.offsetLeft; anchor.top += obj.offsetTop; } var left = parseInt(vp_width/2)+pos.left-anchor.left; var top = parseInt(vp_height/2)+pos.top-anchor.top; layer.style.top = top+"px"; layer.style.marginTop = "-"+parseInt(height/2)+"px"; } else { layer.style.top = '50%'; layer.style.marginTop = "-"+parseInt(height/2)+"px"; layer.style.position = "fixed"; } } function link() { window.open("http://ostseelive.tv","_self"); } function openGTV() { var strValue = ""; var con = document.getElementById("local_gallery"); strValue = "
"; strValue =strValue +"
"; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +""; strValue =strValue +"
"; strValue =strValue +"
"; strValue =strValue +"Für die Anzeige von 'Göhren TV' ist der aktuelle Flash Player notwendig."; strValue =strValue +"

aktueller Flashplayer

"; strValue =strValue +"
"; strValue =strValue +"
"; strValue =strValue +"
"; strValue =strValue +"

Göhren-TV von

"; strValue =strValue +"

"; strValue =strValue +"
"; strValue =strValue +"
"; con.innerHTML=strValue; var link_elem1 = document.createElement('a'); link_elem1.href = 'http://www.ostseelive.tv/'; link_elem1.appendChild (document.createTextNode('Ostseelive.tv')); document.getElementById("ostseelink").appendChild (link_elem1); var link_elem2 = document.createElement('a'); link_elem2.href = '?impressions'; link_elem2.setAttribute('onclick','closeGalLayer();return false;'); link_elem2.appendChild (document.createTextNode('[Fenster schließen]')); document.getElementById("gal_remote_close").appendChild (link_elem2); con.style.display = "block"; var layer = document.getElementById("gal_detail_layer"); var height = layer.offsetHeight; var width = layer.offsetWidth; var regEx = /MSIE\s(\d+\.\d+)/; if((result = regEx.exec(navigator.appVersion)) && parseInt(result[1]) < 7) { var pos = pageOffset(); var vp_width = window.document.documentElement.clientWidth || window.document.body.clientWidth || window.innerWidth; var vp_height = window.document.documentElement.clientHeight || window.document.body.clientHeight || window.innerHeight; var anchor = {left:0,top:0}; var obj = layer; while(obj = obj.offsetParent) { anchor.left += obj.offsetLeft; anchor.top += obj.offsetTop; } var left = parseInt(vp_width/2)+pos.left-anchor.left; var top = parseInt(vp_height/2)+pos.top-anchor.top; layer.style.top = top+"px"; layer.style.marginTop = "-"+parseInt(height/2)+"px"; } else { layer.style.top = '50%'; layer.style.marginTop = "-"+parseInt(height/2)+"px"; layer.style.position = "fixed"; } }