(function(A){A.extend(A.fx.step,{backgroundPosition:function(D){if(D.state===0&&typeof D.end=="string"){var F=A.curCSS(D.elem,"backgroundPosition");F=C(F);D.start=[F[0],F[2]];var B=C(D.end);D.end=[B[0],B[2]];D.unit=[B[1],B[3]]}var E=[];E[0]=((D.end[0]-D.start[0])*D.pos)+D.start[0]+D.unit[0];E[1]=((D.end[1]-D.start[1])*D.pos)+D.start[1]+D.unit[1];D.elem.style.backgroundPosition=E[0]+" "+E[1];function C(H){H=H.replace(/left|top/g,"0px");H=H.replace(/right|bottom/g,"100%");H=H.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var G=H.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(G[1],10),G[2],parseFloat(G[3],10),G[4]]}}})})(jQuery);$.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=$.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};$.fn.codaSlider=function(A){A=$.extend({easeFunc:"easeInOutExpo",easeTime:1000,toolTip:false},A);return this.each(function(){var B=$(this);var D=$("li.panel").height();var G=$("li.panel").size();var F=D*3;var E=D*G;$("div#panelWrapper").css("height",F);$("ul#panelContainer").css("height",E);if($.browser.msie){$("div.slider_frontpage").css("margin-bottom",0)}var C=0;B.each(function(H){$("#panelNavR").click(function(){if(C-F+E<F){C=F-E}else{C-=F}$("ul#panelContainer").animate({top:C},A.easeTime,A.easeFunc);return false});$("#panelNavL").click(function(){if(C+F>=0){C=0}else{C+=F}$("ul#panelContainer").animate({top:C},A.easeTime,A.easeFunc);return false})})})};function rgb2hex(A){if(A.charAt(0)=="#"){return A.slice(1)}var B=A.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);function C(D){hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");return isNaN(D)?"00":hexDigits[(D-D%16)/16]+hexDigits[D%16]}return C(B[1])+C(B[2])+C(B[3])}function rePos(G){var E=$("#dreispaltig_mitte").height();var C=$("#dreispaltig_mitte").offset().top;var F=$("#navigation_bottom").height();var D=$("#navigation_main_container").height();var B=$("#navigation_main_container").offset().top;var A=$(window).height();if(E+C<A){$("#dreispaltig_rechts").css({height:(A-C)+"px"});$("#navigation_bottom").css({top:(A-F)+"px"})}if($.browser.msie&&D+B<A){$("#navigation_main_container").css({height:A-B+"px"})}}$(document).ready(function(){if($(".currentpage").offset()){var F=$(".currentpage").offset().top;var G=$.cookie("oO");var D=$("#dreispaltig_mitte").height();var C=$("#dreispaltig_mitte").offset().top;var E=$("#navigation_bottom").height();var B=$(window).height();var A=17;if(!G){G=735-A}$.cookie("oO",F);$("body").css("background-position","0px "+(G-735+A)+"px");$("#dreispaltig_rechts").css({top:F+"px",left:$("#dreispaltig_rechts").offset().left,position:"absolute",height:(D+E)+"px"});$("#navigation_bottom").css({top:(D+F)+"px",left:$("#navigation_bottom").offset().left,position:"absolute"});$("#dreispaltig_mitte").css({top:F+"px",left:$("#dreispaltig_mitte").offset().left,position:"absolute",height:(D+E)+"px"});$(window).bind("resize",rePos);rePos()}});$(window).load(function(){if($(".currentpage").offset()){var D=["01","02","03","04","05","06","07","08","09","10","11","12"];var C=Math.floor(Math.random()*D.length);var B=$("body").css("background-image").replace(/\d{2}(?=\.(?:jpe?g|gif|png))/,D[C]);var F=$(".currentpage").offset().top;var A=17;var E=null;if($(".bodytext").css("background-color")){E=rgb2hex($(".bodytext").css("background-color"))}else{if($(".csc-textpic-imagewrap").css("background-color")){E=rgb2hex($(".csc-textpic-imagewrap").css("background-color"))}}$("body").css("background-image",B);$("body").animate({backgroundPosition:"(0px "+(F-735+A)+"px)"});if(E){$("#dreispaltig_mitte img[alt!='nomouseover']").not(".nomouseover").each(function(){var G=$(this);G.attr("id",G.attr("src"));G.attr("src","g.php?f="+E+"&i="+G.attr("src"))});$("#dreispaltig_mitte img[alt!='nomouseover']").not(".nomouseover").mouseover(function(H){var G=$(this);G.attr("src",G.attr("id"))}).mouseout(function(){var G=$(this);G.attr("id",G.attr("src"));G.attr("src","g.php?f="+E+"&i="+G.attr("src"))})}}$("#dreispaltig_mitte").css("visibility","visible")});