$(function(){$('#slideshow ul').cycle({timeout:8000,fx:'fade',pager:'#pager',pause:0,pauseOnPagerHover:0})});Cufon.replace('h1, h2, h3, h4, h5, .jqueryslidemenu ul li a.top, #icons li span, .contactform input.cms_submit, ul.submenu li a, #inloggen fieldset legend, p.simple,',{hover:true});$(document).ready(function(){$(".toggle_content").hide();$("h5.toggle").click(function(){$(this).toggleClass("active").next().slideToggle("slow")})});$(window).load(function(){slideCycle()});var bOpen=false;$(function(){$(".item").lazyload({placeholder:"assets/images/x.gif",effect:"fadeIn"})});$(document).ready(function(){$('#footer-content form label input').focus(function(){$(this).prev().fadeTo(150,0.35);$(this).keydown(function(){$(this).css('background-repeat','repeat')})});$('#footer-content form label input').blur(function(){if($(this).val()==''){$(this).css('background-repeat','no-repeat');$(this).prev().fadeTo(150,1)}})});$(document).ready(function(){$("#login-wrapper").css('height','137px');$("a#klantlogin").toggle(function(){$("#login-wrapper").animate({top:"0px"},{queue:false,duration:700,easing:'easeInOutQuart'})},function(){$("#login-wrapper").animate({top:"-137px"},{queue:false,duration:300,easing:'easeInOutQuart'})})});function slideCycle(){$('#items').after('<div id="nav">').cycle({fx:'fade',timeout:7000,speed:600,pager:'#nav'})}function slideCycle(){$('#loader').fadeOut(300,function(){$('#items').cycle({fx:'fade',timeout:5000,speed:900,pager:'#nav'});$('#items .item a.big').click(function(e){var nHeightDiv=$('#items').height();if(nHeightDiv>271){var sLink=$(this).attr('href');window.location.href=sLink}else{var nHeight=$(this).children('img').height();$('#items').cycle('pause');$('#slider #nav,#items .item .hint').hide();$('#items').animate({height:nHeight},300,function(){$('#close').show()})}return false});$('#items').fadeIn(300);$('#nav').fadeIn(300)});closeSlideCycle()}function closeSlideCycle(){$('#close, #container').click(function(e){$('#items').animate({height:271},300,function(){$('#close, #overlay_slideshow').hide();$('#slider #nav,#items .item .hint').show();$('#items').cycle('resume')})})}function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external")anchor.target="_blank"}}window.onload=externalLinks;writeResolutionCookie();function writeResolutionCookie(){var date=new Date();date.setTime(date.getTime()+(60*60*1000));var the_cookie_date=date;var the_cookie="cmsms_statistics_module_resolution="+screen.width+"x"+screen.height;var the_cookie=the_cookie+";expires="+the_cookie_date;document.cookie=the_cookie;var bn=navigator.appName;if(bn.substring(0,9)=="Microsoft"){bn="MSIE"};var cd=(bn=="MSIE")?screen.colorDepth:screen.pixelDepth;if(cd!="undefined"){var the_depthcookie="cmsms_statistics_module_colordepth=";the_depthcookie=the_depthcookie+cd;the_depthcookie=the_depthcookie+";expires="+the_cookie_date;document.cookie=the_depthcookie}}
