// JavaScript Document window.onerror = stopError; function stopError() { // return true; } function Show_afbeelding(photo_id,album_id){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); popupWin.location = 'photo_popup.php?photo_id='+photo_id+'&album_id='+album_id; } function Show_nieuwsphoto(afbeelding){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); popupWin.location = 'photo_popup.php?afbeelding='+afbeelding; } function Popup_window(url){ var leftPos = (screen.availWidth-640) / 2; var topPos = (screen.availHeight-480) / 2; popupWin = window.open(url,'','width=640,height=480, status=no,scrollbars=yes,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos); } function isValidEmail(str) { var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i if (filter.test(str)){ return true; } else { return false; } } function isValidLink(str) { var filter = /^(file|http):\/\/\S+\.([a-z]{2,4})$/i if (filter.test(str)){ return true; } else { return false; } } function isDefined(obj){ varToStr=eval("'"+obj+"'"); if(varToStr=="undefined") return false; else return true; } /*function doPrint(page){ text = "Print deze pagina\n"; text += document.getElementById(page).innerHTML; text = text.replace("doPrint('"+page+"')","print()"); text = text.replace("popupMail()",""); text += "
Venster sluiten
"; text += ""; printWin = window.open('','','width=600,height=420,scrollbars=yes,resizable=yes,titlebar=0'); printWin.document.write(text) printWin.document.close() printWin.print() }*/ function doPrint(_base, _text, _logo, _adres) { if(document.getElementById(_text)) { tekst = document.getElementById(_text).innerHTML; } else { alert("Container niet gevonden"); } tekst = "Printvriendelijke versie"+_logo+"

"+tekst+"


"+_adres+"



Pagina printen    Venster sluiten
"; printWin = window.open('','','width=700,height=600,scrollbars=yes,resizable=yes,titlebar=0'); printWin.document.write(tekst); printWin.document.close(); printWin.print(); } var today = new Date(); var expiry = new Date(today.getTime() + 300 * 24 * 60 * 60 * 1000); function getCookie(name) { var name = "SOD___"+name; var index = document.cookie.indexOf(name + "="); if (index == -1) return null; index = document.cookie.indexOf("=", index) + 1; var endstr = document.cookie.indexOf(";", index); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(index, endstr)); } function setCookie(name, value) { var name = "SOD___"+name; if (value != null && value != "") { document.cookie = name + "=" + escape(value) + "; expires=" + expiry.toGMTString(); document.cookie = document.cookie; } } /* Jquery functions */ var ajaxMenu = false; var ajaxLoaded = false; function getButtonGroup(id) { var $holder = $('#'+id); var $button = $holder.parent('ul').parent('li'); $holder.html('loading teams..'); $.ajax({ type: "POST", url: 'index.php?ajax=true', data: { 'holder': id} , success: function(html) { ajaxLoaded = true; $holder.after(html).remove(); html = ''; $('#nav').superfish({ delay: 1000, speed: 250 }); $button.hover(); } }); } $(document).ready(function() { if (ajaxMenu) { $("li #sport").parent().parent().hover(function () { if (ajaxLoaded) return; getButtonGroup(ajaxMenu); }); } var links = 1; var results = []; $('#sponsorfade').children('br').each(function() { $(this).remove(); }); var elements = $("#sponsorfade").children(); $.map( elements , function(i, n){ if (i.tagName=='BR' || i.tagName=='H2' || i.tagName=='H3') return; if (links%2 === 0 ){ results.push(n); } links++; }); $.each( results , function(i,v){ if (i < 1) return; elements.slice(v, v+2).wrapAll(''); }); var timeout = setTimeout(removeFirst, 1); });