function jInfo(a){$(document).ready(function(){if($("#infotext_"+a).is(":hidden")){$("#infoicon_"+a).attr("class","ui-icon ui-icon-circle-minus");$("#infotext_"+a).slideDown()}else{$("#infoicon_"+a).attr("class","ui-icon ui-icon-circle-plus");$("#infotext_"+a).hide()}})}function jToggle(a){$(document).ready(function(){if($("#"+a).is(":hidden")){$("#"+a+"_link").html("weniger");$("#"+a).slideDown()}else{$("#"+a+"_link").html("mehr&nbsp;...");$("#"+a).hide()}})}
$(document).ready(function(){$(".slideshow").mouseenter(function(){$(document.body).append('<div id="overlay"></div><div id="overlay_slideshow" class="slideshow2" style="display:none;"></div>');$("#overlay_slideshow").fadeIn();overlay_position();var a=$(this).html();$("#overlay_slideshow").html(a);var b=$(this).offset();a=b.top;b=b.left;$("#overlay_slideshow").css({top:a+"px",left:b+"px"});a=getsrc($(this).find(".source img").get());a.length==1&&$("#overlay_slideshow .show img").css({cursor:"default"});
border_size()});$("#overlay").live("mouseover",function(){$("#overlay_slideshow").remove();$("#overlay").remove()});$("#overlay_slideshow").live("click",function(){var a=getsrc($(this).find(".source img").get()),b=gettitle($(this).find(".source img").get()),c=$(this).find(".show img").attr("class");c=parseInt(c);var d=c+1;c=c+2;if(d==a.length){d=0;c=1}var e="";e+='<img src="'+a[d]+'" alt="'+b[d]+'" class="'+d+'" style="display:none;" /><br>';e+='<div class="pag">'+c+"/"+a.length+"</div>";e+='<div class="caption">'+
b[d]+"</div>";if(a.length>1){$(this).find(".show img").remove();$(this).find(".show").html(e);$(this).find(".show img").fadeIn("slow")}border_size()})});function getsrc(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c].src);return b}function gettitle(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c].alt);return b}function border_size(){var a=parseInt($("#overlay_slideshow .show").height());$("#overlay_slideshow .border").css({height:a+"px"})}
function overlay_position(){var a=$(document).scrollTop(),b=$(document).scrollLeft();$("#overlay").css({top:a+"px",left:b+"px"})}$(window).scroll(function(){overlay_position()});
