function traminoskimming(a,b){bilder=$(b).find("img");anz_bilder=bilder.size();if(anz_bilder>0){width=(parseInt(b.style.width,10)/anz_bilder);counter=parseInt((mousePos(a,"x")-findPos(b,"x"))/width,10);if(counter>(anz_bilder-1)){counter=anz_bilder-1;}bilder.hide();$(bilder[counter]).show();}return 1;}var markermap;function elevationscroll(a,c,b){bild=$(c).find("img")[0];marker=$(c).find(".marker")[0];avail=parseInt(c.style.width,10)||$(c).width();width=parseInt(bild.width,10);posx=mousePos(a,"x");offx=findPos(c,"x");scale=((width-avail)/avail)*-1;relx=parseInt((posx-offx),10);if(relx<40){relx=40;}if(relx>width){relx=width;}index=parseInt((relx-40)/(width-40)*b.length,10);if(index>(b.length-1)){index=b.length-1;}marker.style.left=(relx-1)+"px";marker.innerHTML="<span style='padding:2px;background:#f00;color:#fff;font-size:10px;'>"+parseInt(b[index].elev,10)+"m</span>";if(markermap){markermap.setPoint(new GLatLng(b[index].lat,b[index].lng));}else{markermap=new GMarker(new GLatLng(b[index].lat,b[index].lng));geodatamap.map.addOverlay(markermap);}}function elevationscrollstop(){}function imagescrollV(a,b){bild=$(b).find("img")[0];avail=parseInt(b.style.width,10)||$(b).width();width=parseInt(bild.width,10);posx=mousePos(a,"x");offx=findPos(b,"x");scale=((width-avail)/avail)*-1;relx=posx-offx;bild.style.left=parseInt((relx*scale),10)+"px";}function imagescrollH(a,b,c){bild=$(b).find("img")[0];width=parseInt(bild.height,10);avail=parseInt(b.style.height,10)||$(b).height();posy=mousePos(a,"y");offy=findPos(b,"y");bild.style.top=parseInt(2*((posy-offy)/avail)*c,10)+"px";}function imagereset(a,b){bild=$(a).find("img")[0];bild.style.top=b+"px";}function mousePos(b,d){var a=0;var c=0;if(!b){b=window.event;}if(b.pageX||b.pageY){a=b.pageX;c=b.pageY;}else{if(b.clientX||b.clientY){a=b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;c=b.clientY+document.body.scrollTop+document.documentElement.scrollTop;}}if(d=="x"){return a;}if(d=="y"){return c;}}function findPos(a,c){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop;a=a.offsetParent;}while(a);}if(c=="x"){return b;}if(c=="y"){return curtop;}}function hideBigPicture(){$("#tpc_bigpicture").html("");$("#tpc_pictures").show();}function showBigPicture(b,a){$("#tpc_pictures").hide();$("#tpc_bigpicture").html('<a href="javascript:hideBigPicture()">zurück</a><br/><br/><div onClick="hideBigPicture();" class="File Bild "><img src="'+b+'" title="'+a+'" width="480" /><div class="Name">'+a+"</div></div>");}