var thur ="http://www.intniet.nl"; var settings; var settingsdb; $(document).ready(function(){ var total = $('#slider300x225 img').length; var rand = Math.floor(Math.random()*total); $('#slider300x225').nivoSlider({//http://nivo.dev7studios.com/support/jquery-plugin-usage/ startSlide:rand, directionNav:false, effect:'random', // Specify sets like: 'fold,fade,sliceDown' controlNav:false, // 1,2,3... navigation pauseOnHover:true, // Stop animation while hoveringlink pauseTime: 6000 }); var stotal = $('#slider225x300').length; var srand = Math.floor(Math.random()*stotal); $('#slider225x300').nivoSlider({//http://nivo.dev7studios.com/support/jquery-plugin-usage/ startSlide:rand, directionNav:false, effect:'random', // Specify sets like: 'fold,fade,sliceDown' controlNav:false, // 1,2,3... navigation pauseOnHover:true, // Stop animation while hoveringlink pauseTime: 6000 }); $('a.tTip').tinyTips('green', 'title'); $('img.tTip').tinyTips('green', 'title'); $("a.kalender").fancybox({ 'titleShow' : true, 'type' : 'iframe', 'height' : 520, 'width' : 615, 'padding' : 0, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'hideOnOverlayClick':true, 'overlayShow' : true }); $("a.routekaart").fancybox({// route auto en route bus 'titleShow' : true, 'type' : 'iframe', 'hideOnOverlayClick':true, 'padding' : 0, 'height' : 430, 'width' : 730, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : true }); $("a.tu_iframe_790x430").fancybox({ // popup voorwaarden 'titleShow' : true, 'type' : 'iframe', 'height' : 430, 'width' : 790, 'padding' : 0, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'hideOnOverlayClick':true, 'overlayShow' : true }); $("a.tu_iframe_400x175").fancybox({/*overzicht routes */ 'titleShow' : true, 'type' : 'iframe', 'height' : 175, 'width' : 400, 'padding' : 0, 'margin' : 0, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'hideOnOverlayClick' : true, 'overlayShow' : true }); $("a.tu_iframe_730x400").fancybox({// route kaart button popups 'titleShow' : true, 'type' : 'iframe', 'hideOnOverlayClick':true, 'padding' : 0, 'height' : 400, 'width' : 730, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : true }); $("a.rekenuit").fancybox({//rekenuit 'titleShow' : true, 'type' : 'iframe', 'hideOnOverlayClick':true, 'padding' : 0, 'height' : 360, 'width' : 680, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200, 'overlayShow' : true }); $("a.flashplat").fancybox({//plattegrond 'titleShow' : true, 'type' : 'swf', 'hideOnOverlayClick' : true, 'padding' : 0, 'overlayOpacity' : 0.6, 'overlayColor' : '#000', 'height' : 380, 'width' : 950, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200 }); $("a.flashpickup").fancybox({//plattegrond 'titleShow' : true, 'type' : 'swf', 'hideOnOverlayClick' : true, 'padding' : 0, 'overlayOpacity' : 0.6, 'overlayColor' : '#000', 'height' : 400, 'width' : 550, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200 }); $("a.ingezfoto").fancybox({//plattegrond 'titleShow' : true, 'type' : 'iframe', 'hideOnOverlayClick' : true, 'padding' : 0, 'overlayOpacity' : 0.6, 'overlayColor' : '#000', 'height' : 550, 'width' : 880, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200 }); $("a.fotofront").fancybox({//plattegrond 'titleShow' : true, 'type' : 'iframe', 'hideOnOverlayClick' : true, 'padding' : 0, 'overlayOpacity' : 0.6, 'overlayColor' : '#000', 'height' : 620, 'width' : 880, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200 }); $("a.youtube").fancybox({ 'titleShow' : true, 'overlayOpacity' : 0.9, 'overlayColor' : '#000', 'padding' : 0, 'titleShow' : true, 'type' : 'swf', 'height' : 360, 'width' : 480, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'overlayShow' : true }); document.getElementById('javascriptrequired').innerHTML=""; document.getElementById('javascriptrequired').style.visibility="hidden"; $('#tweet').click(function() { window.open(' https://twitter.com/share?text=Via%20%23Camping%20In%20%27t%20Niet: ' ,'popup','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=750,height=450,left=200,top=200,status'); }); $('#fbook').click(function() { var rf = encodeURIComponent(document.URL); var tit = encodeURIComponent(document.title); window.open('http://www.facebook.com/sharer.php?u='+rf+'&t='+tit ,'popup','resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=750,height=450,left=200,top=200,status'); }); var nrmfnts = $('div#cnt').css('font-size'); // font-size norm $(".fontnorm").click(function(){ $('div#cnt').css('font-size', nrmfnts); }); // font-plus $(".fontplus").click(function(){ var curf = $('div#cnt').css('font-size'); var curfNum = parseFloat(curf, 10); var newf = curfNum +1; $('div#cnt').css('font-size', newf); return false; }); //font-min $(".fontmin").click(function(){ var curf = $('div#cnt').css('font-size'); var curfNum = parseFloat(curf, 10); var newf = curfNum-1; $('div#cnt').css('font-size', newf); return false; }); });