1jQuery.noConflict(); 2jQuery(document).ready(function($) { 3 $(document).ready(function(){ 4 5 //JQuery ready is quicker than onload 6 $(".contenttable tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");}); 7 $(".contenttable tr:nth-child(odd)").addClass("alt"); 8 var jetzt = new Date(); 9 $.tools.dateinput.localize('de', { 10 months: 'Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember', 11 shortMonths: 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Okt,Nov,Dez', 12 days: 'Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag', 13 shortDays: 'So,Mo,Di,Mi,Do,Fr,Sa' 14 15 }); 16 $(":date").dateinput({ 17 format: 'dd. mmmm yyyy', 18 max: jetzt, 19 firstDay: 1, 20 lang: 'de' 21 }); 22 23 // KALENDER DATEINPUT Start 24 $(".formobjektCalenderSmall").dateinput({ 25 trigger: true, 26 lang: 'de', 27 firstDay: 1, 28 //min: -1, 29 format: 'dd.mm.yyyy' 30 31 }) 32 $(".formobjektCalenderSmall").bind("onShow onHide", function() { 33 $(this).parent().toggleClass("active"); 34 }); 35 $(function() { 36 // setup ul.tabs to work as tabs for each div directly under div.panes 37 $("ul.tabs").tabs("div.panesWrap > div", {history: true}); 38 }); 39 // KALENDER DATEINPUT ende 40 41 42 $(function(){ 43 $('a[href=#oben]').click(function(){ 44 $('html, body').animate({scrollTop:0}, 'slow'); 45 return false; 46 }); 47 }); 48 49 /*$( document.body ).click(function() { 50 console.info('geklickt'); 51 setTimeout(function() { 52 $( '#overlay' ).each(function( i ) { 53 54 if ( this.style.display !== 'none' ) { 55 $('iframe, iframe table, .elist').css('visibility', 'hidden'); 56 } else { 57 $('iframe, iframe table, .elist').css('visibility', 'visible'); 58 59 } 60 61 }); 62 }, 1000); 63 });*/ 64 65 66 //Suche jede zweite (2n) .contentblocksmall und füge die Klasse .contentblocksmallnone hinzu 67 $('.contentblocksmall:nth-child(2n)').addClass('contentblocksmallnone'); 68 69 slider = $('.bgSlider').bxSlider({ 70 mode: 'fade', 71 auto: true, 72 easing: 'linear', 73 pause: 10000, 74 speed: 1000, 75 nextSelector: '#slider-next', 76 prevSelector: '#slider-prev', 77 pagerSelector: '#bx-pager', 78 autoControls: true, 79 autoControlsSelector: '#bx-pager-auto', 80 startText:'', 81 stopText:'', 82 autoControlsCombine: 'false' 83 }); 84 85 var pausePlayButton = "<div id='playpausebuttonbg' title='Animationen anhalten' tabindex='0'><div id='playpausebutton' class='pause'></div></div>"; 86 $('#wrap01').prepend(pausePlayButton); 87 var togglePausePlay = function() { 88 if($('#playpausebutton').hasClass("pause")) 89 { 90 $('#playpausebutton').removeClass("pause") 91 $('#playpausebutton').addClass("play") 92 $('#playpausebuttonbg').attr("title", "Animationen fortsetzen"); 93 94 slider.stopAuto(); 95 } 96 else{ 97 $('#playpausebutton').removeClass("play") 98 $('#playpausebutton').addClass("pause") 99 $('#playpausebuttonbg').attr("title", "Animationen anhalten"); 100 101 slider.startAuto(); 102 } 103 return false; 104 }; 105 $('#playpausebuttonbg').click(togglePausePlay); 106 $('#playpausebuttonbg').keydown(function(e){ 107 if(e.which == 13) 108 { 109 togglePausePlay(); 110 } 111 }); 112 113 $('.bgSlider2').bxSlider({ 114 mode: 'fade', 115 auto: false, 116 easing: 'linear', 117 pause: 10000, 118 speed: 1000 119 120 }); 121 $('.bgSlider3').bxSlider({ 122 mode: 'fade', 123 auto: false, 124 easing: 'linear', 125 pause: 10000, 126 speed: 1000 127 128 }); 129 130 /*if($.cookie("css")) { 131 $("link").attr("href",$.cookie("css")); 132 } 133 134 $(document).ready(function() { 135 $("#kontrast a").click(function() { 136 $("link").attr("href",$(this).attr('rel')); 137 $.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'}); 138 return false; 139 }); 140 });*/ 141 142 // hide / show Kacheln 143 $("#schliessen").click(function(){ 144 $("#homelayout01, #homelayout02").fadeIn(1000); 145 $("#oeffnen").show(); 146 $(this).hide(); 147 }); 148 149 $("#oeffnen").click(function(){ 150 $("#homelayout01, #homelayout02").fadeOut(1000); 151 $("#schliessen").show(); 152 $(this).hide(); 153 }); 154 155 156 157 158 159 160 $(document).ready(function () { 161 var bodyWidth = jQuery(window).width(); 162 if(bodyWidth > 959) { 163 $('.dropdownSlide').css('display', 'none') 164 $(".menueId ul li").mouseenter(function() { 165 $(this).find(".dropdownSlide").stop(true, true).slideDown(400); 166 }).mouseleave(function() {
167 $(this).find(".dropdownSlide").stop(true, true).slideUp(200); 168 }); 169 170 $(".menueId ul li").keydown(function(e) { 171 if(e.keyCode == 13){ 172 $(document).find(".dropdownSlide").stop(true, true).slideUp(0); 173 $(this).find(".dropdownSlide").stop(true, true).slideDown(0); 174 } 175 176 }); 177 /* $(".menueId ul li ul li").find("ul").css('display', 'none') 178 $(".menueId ul li ul li").mouseenter(function() { 179 $(this).find("ul").stop(true, true).slideDown(400); 180 }).mouseleave(function() { 181 $(this).find("ul").stop(true, true).slideUp(200); 182 });*/} 183 }); 184 185 $(".activatesub").click(function(){ 186 $("#subnavi").addClass("show"); 187 $(".activesub").show(); 188 $(this).hide(); 189 }); 190 191 $(".activesub").click(function(){ 192 $("#subnavi").removeClass("show"); 193 $(".activatesub").show(); 194 $(this).hide(); 195 }); 196 // hide / show MainNavi 197 $(".nav_responsive_activate").click(function(){ 198 $("#responsiveSidemenue .mainMenueId, #responsiveSidemenue").removeClass("show"); 199 $("#wrap").removeClass("fade"); 200 $("body").removeClass("fadeb"); 201 $(".nav_responsive_active").show(); 202 $(this).hide(); 203 }); 204 205 $(".nav_responsive_active").click(function(){ 206 $("#responsiveSidemenue .mainMenueId, #responsiveSidemenue").addClass("show"); 207 $("body").addClass("fadeb"); 208 $("#wrap").addClass("fade"); 209 $(".nav_responsive_activate").show(); 210 $(this).hide(); 211 }); 212 /*$( "#wrap" ).click(function() { 213 $("#responsiveSidemenue .mainMenueId, #responsiveSidemenue").removeClass("show"); 214 $("body").removeClass("fadeb"); 215 $("#wrap").removeClass("fade"); 216 $(".nav_responsive_active").show(); 217 $(".nav_responsive_activate").hide(); 218 });*/ 219 220 $(document).ready(function () { 221 222 var bodyWidth = jQuery(window).width(); 223 if(bodyWidth < 959) { 224 $('.main a.nohref, .main .sub a.ebene2').removeAttr('href'); 225 226 $('.menueId ul li a').click(function() { 227 /*Anzhal der li zählen*/ 228 var list =$(this).next("ul").children("li").length; 229 /*Wenn es mehr als 0 li's gibt soll er ul und li auf display block machen */ 230 if (list>0){ 231 $(this).next("ul").toggle(); 232 $(this).next("ul").children("li").show(); 233 } 234 else { 235 236 } 237 }); 238 $('.menueId ul li ul li a').click(function() { 239 /*Anzhal der li zählen*/ 240 var ullist =$(this).find("ul li ul li").length; 241 /*Wenn es mehr als 0 li's gibt soll er ul und li auf display block machen */ 242 if (ullist>0){ 243 $(this).next("ul").toggle(); 244 $(this).next("ul").children("li").show(); 245 } 246 else { 247 248 } 249 }); 250 } 251 }); 252 253 254 255 //Caption brechnene start 256 $('#contentbereich .ce-gallery img').addClass('img'); 257 var image = document.getElementsByClassName('ce-gallery'); 258 259 for (var i =image.length-1 ; i >=0; i--) { 260 image[i].className += ' ce-gallery'+i; 261 var imageCounter = '#contentbereich .ce-gallery'+i; 262 var m= $('#contentbereich .ce-gallery'+i+' .img').outerWidth(); 263 //Beispiel für padding // .css('width',m -20) 264 $(imageCounter).find('.image-caption').css('width',m -10); 265 } 266 //Caption brechnene ende 267 268 269 270 271 /*----------------------Scroll-Button start------------------------*/ 272 jQuery('#scrollBottom').click(function( event ) { 273 var offset = jQuery(this).offset(); 274 var x = event.clientX - offset.left; 275 var y = event.clientY - offset.top; 276 if(y>0) { 277 $('html,body').animate({ scrollTop: 1000 }, 'slow', function () {}); 278 $("#scrollBottom img").css("transform","rotate(180deg)"); 279 } 280 else{ 281 $('html,body').animate({ scrollTop: 0 }, 'slow', function () {}); 282 $("#scrollBottom img").css("transform","rotate(360deg)"); 283 } 284 }); 285 286 287 288 /*$('#nachOben').hide(); 289 $(window).scroll(function(){ 290 var value = 100; //ab 100px soll Nach oben Link angezeigt werden 291 var scrolling = $(window).scrollTop(); 292 if (scrolling > value) { 293 $('#nachOben').fadeIn(); 294 } else { 295 $('#nachOben').fadeOut(); 296 } 297 });*/ 298 299 300 /*----------------------Scroll-Button end------------------------*/ 301 302 303 304 305 /* ### Menü FallBack ### */ 306 $('.menueId ul.navId ul li:nth-child(5n+6)').addClass('clearleft'); 307 308 /*---------News img display:none start---------*/ 309 var image = document.getElementsByClassName("newshome"); 310 for (var i =image.length-1; i >=3; i--) 311 { 312 image[i].className = "newshomeNone"; 313 } 314 /*---------News img display:none end---------*/ 315 316 317 /* minigal start */ 318 319 //Klasse .minigal wird mit Klasse .minigalXY erweitert 320 $(".minigal").attr('class', function(index) { 321 return 'minigal minigal' + index; 322 }); 323 324 $('.minigal').each(function(i) { 325
326 //Variablen werden gesetzt und hochgecountet 327 var prev = 'prev'+ i +' browse left'; 328 var next = 'next'+ i +' browse right'; 329 var selector = '.minigal' + i; 330 331 $('<div id="image_wrap'+ i +'"><a href="#" titel="#" rel="lightbox[bigImg'+ i +']" class="bigImg"><img src="fileadmin/templates/images/clear.gif" /></a></div>').prependTo($(selector)); 332 333 $(selector + " .ce-gallery").wrap('<div class="scrollWrap"><div class="scrollable"><div class="items"></div></div></div>'); 334 335 $('<a class="' + prev + '"></a>').insertBefore($(selector + ' .scrollable')); 336 $('<a class="' + next + '"></a>').insertAfter($(selector + ' .scrollable')); 337 $(selector + ' .scrollable').removeAttr("rel"); 338 $(selector + ' .scrollable a, ' + selector + ' .scrollable img').removeAttr("alt"); 339 $(selector + ' .scrollable').removeAttr("title"); 340 $(selector + ' .scrollable a').removeAttr("href"); 341 $(function() { 342 var count = $(selector+' .ce-row').length; 343 for(var c = 0; c<=count;c+=3){ 344 $(selector+' .ce-row').slice(c, c+3).wrapAll('<div class="itemsinnerwrap"></div>'); 345 } 346 347 //initalisierung für jedes einzelne Scrollable Objekt 348 $(selector+' .items').scrollable({vertical: true, prev: '.prev'+i, next: '.next'+i }); 349 350 $(selector+' .items img').click(function() { 351 // see if same thumb is being clicked 352 //if ($(this).hasClass("active")) { return; } 353 // calclulate large image's 354 var url = $(this).attr("src").replace("_t", ""); 355 // get handle to element that wraps the image and make it semi-transparent 356 var wrap = $(selector + ' #image_wrap'+i).fadeTo("fast", 0.7); 357 // the large image 358 var img = new Image(); 359 // call this function after it's loaded 360 img.onload = function() { 361 // make wrapper fully visible 362 wrap.fadeTo("fast", 1); 363 // change the image 364 wrap.find("img").attr("src", url); 365 }; 366 // begin loading the image 367 img.src = url; 368 // activate item 369 $(selector+' .items img').removeClass("active"); 370 371 $(this).addClass("active"); 372 $(selector+ ' #image_wrap'+i+' a.bigImg').each(function() { 373 var src = $(selector+ ' .active').attr('src'); 374 console.info(src); 375 $(this).attr('href', src); 376 var title = $(selector+ ' .active').attr('title'); 377 $(this).attr('title', title); 378 }); 379 // when page loads simulate a "click" on the first image 380 //}); 381 }).filter(":first").click(); 382 }); 383 }); 384 /* minigal end */ 385 386 387 // Dummy-Bild einf�gen 388 $("#contentbereich .teaserPicture a").each(function(){ 389 if ($(this).children().length == 0){ 390 $(this).append("<img src='fileadmin/templates/images/platzhalter.gif' />") 391 } 392 }); 393 394 395 // Dummy-Bild einf�gen 396 $("#homenews ul.bgSlider2 li.news .homekalenderpic").each(function(){ 397 if ($(this).children().length == 0){ 398 $(this).append("<img src='fileadmin/templates/images/platzhalter-home.gif' />") 399 } 400 }); 401 402 /*$(".menueId ul li ul li").find("ul").css('display', 'none') 403 $(".menueId ul li ul li").mouseenter(function() { 404 $(this).find("ul").stop(true, true).slideDown(400); 405 }).mouseleave(function() { 406 $(this).find("ul").stop(true, true).slideUp(200); 407 });*/ 408 409 410 $(document).ready(function () { 411 412 413 414 415 416 417 418 419 420 421 422 /* 423 $(function(){ 424 $(".jcarousel-clip").css('margin-left',(($(window).width()-1083)/ 2)+((1083*2)*-1)) 425 }); 426 427 $(window).resize(function() { 428 $(".jcarousel-clip").css('margin-left',(($(window).width()-1083)/ 2)+((1083*2)*-1)) 429 }); 430 */ 431 /* 432 $(function(){ 433 $(".jcarousel-prev").css('left',(($(window).width()-1089)/ 2)+5); 434 }); 435 436 $(window).resize(function() { 437 $(".jcarousel-prev").css('left',(($(window).width()-1089)/ 2)+5); 438 }); 439 440 $(function(){ 441 $(".jcarousel-next").css('right',(($(window).width()-1089)/ 2)+4); 442 }); 443 444 $(window).resize(function() {
445 $(".jcarousel-next").css('right',(($(window).width()-1089)/ 2)+4); 446 }); 447 */ 448 449 /*---------News img display:none start---------*/ 450 451 $( ".newsNone:first-child" ).addClass( "news" ); 452 $( ".news:first-child" ).removeClass( "newsNone" ); 453 454 /*---------News img display:none end---------*/ 455 456 }); 457 458 459 }); 460 461 462 463 464function createCookie(name,value,days){ 465 if (days){ 466 var date = new Date(); 467 date.setTime(date.getTime()+(days*24*60*60*1000)); 468 var expires = "; expires="+date.toGMTString(); 469 } 470 else var expires = ""; 471 document.cookie = name+"="+value+expires+"; path=/"; 472} 473 474function readCookie(name){ 475 var nameEQ = name + "="; 476 var ca = document.cookie.split(';'); 477 for(var i=0;i < ca.length;i++){ 478 var c = ca[i]; 479 while (c.charAt(0)==' ') c = c.substring(1,c.length); 480 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 481 } 482 return null; 483} 484 485function eraseCookie(name){ 486 createCookie(name,"",-1); 487} 488 489}); 490 491function MM_jumpMenu(targ,selObj,restore){ //v3.0 492 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 493 if (restore) selObj.selectedIndex=0; 494 } 495 496function AllMessages() { 497 for(var x=0;x<document.SEARCH.elements.length;x++) { 498 var y=document.SEARCH.elements[x]; 499 if(y.name!='ALLMSGS') y.checked=document.SEARCH.ALLMSGS.checked; 500 } 501} 502 503function MM_swapImgRestore() { //v3.0 504 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; 505} 506function MM_preloadImages() { //v3.0 507 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); 508 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) 509 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} 510} 511 512function MM_findObj(n, d) { //v4.01 513 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { 514 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} 515 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; 516 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); 517 if(!x && d.getElementById) x=d.getElementById(n); return x; 518} 519 520function MM_swapImage() { //v3.0 521 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) 522 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} 523} 524$(function(){ 525 $('a[href=#top]').click(function(){ 526 $('html, body').animate({scrollTop:0}, 'slow'); 527 return false; 528 }); 529});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.