		jQuery(document).ready(function(){
			lazyload();
			setWidth();
			colorFade();
			imgHover();
			dWebScripts();
		});
		function lazyload(){
			$('img.lazy.first').lazyload({ threshold : 100, placeholder : http_base+"/images/spinner.gif"});
		}
		function colorFade(){
			$('html').colorBlend([{colorList:["#e9f6ff","#e8e7e3","#eaeae8","#f4ebec","#e5f0f6","#f7f3da","#f2e9e2","#f0eef1","#fcf1ef","#ebf5ed","#ffffea","#e5f0f6"], param:"background-color", fps:1000}]);
		}
		function resetWidth(){
			('#content').width(50000);
			return true;
		}
		function setWidth(){
			//resetWidth();
			var totalWidth=0;
			var Width=0;
			var i=0;
			$('*[className^="contentblock"]').each(function(){
				if($(this).css('display') != 'none'){
					var Width = $(this).width();
	  				totalWidth = totalWidth + Width;
	  				i++;
	  			}
			}); 
			//alert(totalWidth+220+(i*10));
			$('#content').width(totalWidth+100+(i*25));			
		}
		function imgHover(){
			 /** Uitleg: 
			  * Over plaatje heen transparant via css, click moet het plaatje eronder geen 
			  *	mousenter & transparantie meer hebben tot de muis eraf gaat, dit niet het 
			  *	geval wanneer er maar 1 slide is.
			  **/
			 $(".lazy").parent().bind("mouseenter", function() {
				 // Geen hover indien maar 1 plaatje
				 if($(this).children().size() >= 2){
		           $(this).addClass("transparant");
				 }else{
					$(this).removeClass("transparant");
			 }
		     });
		     $(".lazy").parent().bind("mouseleave", function() {
		    	 if($(this).children().size() >= 2){
		    		 $(this).removeClass("transparant");
		    	 }
		      });
		     $(".lazy").parent().bind("click", function(){
		    	 $(this).removeClass("transparant");
		     });
		}
		

		
		