window.onError = null; /* var myLinks = document.getElementsByTagName('a'); for(var i = 0; i < myLinks.length; i++){ myLinks[i].addEventListener('touchstart', function(){this.className = 'hover';}, false); myLinks[i].addEventListener('touchend', function(){this.className = '';}, false); } */ function init_scroll_arrows() { if (document.getElementById('scrollmenu')) { if ( parseInt(document.getElementById('scrollmenu').offsetHeight)+130 > parseInt(document.documentElement.clientHeight)) { document.getElementById('scrollerup').style.visibility='visible'; document.getElementById('scrollerdown').style.visibility='visible'; } } } window.onresize = init_scroll_arrows; var aktiv; function scroll_menu(status) { if (status=='scroll_up') { aktiv = window.setInterval("scroll_up()", 100); } else if (status=='scroll_down') { aktiv = window.setInterval("scroll_down()", 100); } else if (status=='stop') { window.clearInterval(aktiv); } } function scroll_up() { var toppos = parseInt(document.getElementById('scrollmenu').style.top); if (toppos <= 0 ) { toppos -=5; document.getElementById('scrollmenu').style.top = toppos+'pt'; } } function scroll_down() { var toppos = parseInt(document.getElementById('scrollmenu').style.top); if (toppos <0 ) { toppos +=5; document.getElementById('scrollmenu').style.top = toppos+'pt'; } } function menu_karton_selected(obj) { var obj2; obj2 = document.getElementById('MENU_DETAILS'); if ((obj.options[obj.selectedIndex].value)>0) { obj2.innerHTML = document.getElementById('MENU_DETAILS_'+obj.options[obj.selectedIndex].value).innerHTML; obj2.style.display='block'; } else { if (obj2.style.display=='block') obj2.style.display='none'; } } function registration_course_selected(obj) { var obj2; obj2 = document.getElementById('SELECTED_COURSE_DETAILS'); if ((obj.options[obj.selectedIndex].value)>0) { obj2.innerHTML = document.getElementById('COURSE_DETAILS_'+obj.options[obj.selectedIndex].value).innerHTML; obj2.style.display='block'; } else { if (obj2.style.display=='block') obj2.style.display='none'; } } function checktopframe(obj) { if (self != opener) { opener.location.href = obj.href; opener.focus(); self.close(); return false; } return true; } function set_link_pos(id) { var obj = document.getElementById(id); wait window.scrollTo(0,obj.offsetTop); return false; } function check_radio(names,field_to_aktivate) { var radioitems; radioitems = document.getElementsByName(names); var radio_aktivated = 0; for (var i=0; i maxlimit) { field.value = field.value.substring(0, maxlimit); } charnum = maxlimit-field.value.length; if (charnum>0) { document.getElementById(divfield).innerHTML='Noch '+charnum+' Zeichen'; } else { document.getElementById(divfield).innerHTML='Achtung:
Maximal zulässige Textlänge ('+maxlimit+' Zeichen) erreicht !!! Weitere Eingaben werden später nicht verarbeitet !!!'; } } function hide_obj(obj) { obj.style.visibility = 'hidden'; } function show_obj(obj) { obj.style.visibility = 'visible'; } function change_show_status(divname) { var obj; obj = document.getElementById(divname); if (obj.style.visibility=='hidden') show_obj(obj); else hide_obj(obj); } function bannerDisplay() { var bannerDisplayVal = ''; if ($("#banner").css('display')=='block') { bannerDisplayVal ='none'; } else { bannerDisplayVal ='block'; } $("#banner").animate({opacity: "toggle",height: "toggle", }, 300, "linear"); $.post('http://www.a-s-b.eu/index.html', { 'bannerDisplay': bannerDisplayVal , 'AJAX': '1' } ); } function process(data) { var newRating; if (data=='exhausted') { alert("Sie haben dieses Video bereits bewertet!"); } else if (data=='good') { newRating = parseInt($("#rateGoodAmount").text()) + 1; $("#rateGoodAmount").html(newRating); } else if (data=='bad') { newRating = parseInt($("#rateBadAmount").text()) + 1; $("#rateBadAmount").html(newRating); } } function rateVideo(rating,videoid) { var sid = 'e0fc5d0e4dafc95cfaec3a1cde35e595'; if (rating=='good' || rating=='bad') { $.post('http://www.a-s-b.eu/videogalerie.html', { 'RATEVIDEO': rating , 'AJAX': '1', 'VIDEO_ID': videoid, 'PHPSESSID': sid }, function(data) { process(data); } ); } } function setBannerVideo(videoid) { }