> v $(document).ready(function() { $("#cboxPhoto img").live("click", function(){ $.colorbox.next(); }); }); // sitemap $(document).ready(function() { $('#sitemap_click').click(function(e){ e.preventDefault(); $("#sitemap").toggle(function(){ $("html, body").animate({ scrollTop: $(document).height() }, 1000); }); }); }); // nieuws $(document).ready(function() { $('#nieuws .nieuwsbericht').click(function(){ link = $(this).find("a.link").attr('href'); if (link) { document.location.href = link; } }); }); // zoek $(document).ready(function() { $('#search input#zoek').click(function(){ if ($(this).val() == 'zoek...') { $(this).val(''); } }); $('#search input#zoek').blur(function(){ if ($(this).val() == '') { $(this).val('zoek...'); } }); }); // footer_v2: Window load event used just in case window height is dependant upon images. Beware of css margin-bottom use padding-bottom instead. window.$footer = '#footer_wrap_outer'; $(window).bind("load", function() { //setup the height and position for your sticky footer var footer_height = 0; footer_top = 0; rs = 'none'; $footer = $(window.$footer); $footer.show(); // iPad, iPod, iPhone fix function positionFooter(rs) { if (rs != 'search_activated') { footer_height = $footer.height(); footer_top = ($(window).scrollTop()+$(window).height()-footer_height)+"px"; footer_windowheight = $(window).height(); footer_bodyheight = $(document.body).height(); posfooter = $footer.css("position"); if (posfooter == 'absolute') { footer_bodyheight_corr = footer_bodyheight + footer_height; } else { footer_bodyheight_corr = footer_bodyheight; } if (footer_bodyheight_corr < footer_windowheight) { $footer.css({ position: "absolute" }).animate({ top: footer_top }, 0) } else { $footer.css({ position: "static" }) } } } positionFooter('load'); $(window).scroll(function() { positionFooter('scroll'); }); $(window).resize(function() { positionFooter('resize'); }); // extras $('#sitemap_click').click(function() { //positionFooter('sitemap_added'); }); $('#zoek').click(function() { positionFooter('search_activated'); }); }); $(document).ready(function() { $(window.$footer).hide(); // iPad, iPod, iPhone fix }); // END footer_v2: // close case $(document).ready(function() { $('.case_close_wrap').click(function(){ link = $(this).find("a.case_close").attr('href'); if (link) { document.location.href = link; } }); }); // cat_plus tiles $(document).ready(function() { $('.tile, .list').click(function(){ link = $(this).find("a.tile_url").attr('href'); if (link) { document.location.href = link; } }); }); $(document).ready(function() { $(function() { $('.list').hover(function() { $(this).find('.list_more').addClass('list_more_hover'); }, function() { $(this).find('.list_more').removeClass('list_more_hover'); }); }); }); //Equalize columns at toepassingen-page $(document).ready(function() { $('.case').each(function(){ var height = $(this).height(); $(this).find('.case_points_wrap, .case_text_wrap').height(height-12); $(this).find('.case_go_wrap').height(height); }); }); //-->