	$(document).ready(function() {
		//$('#coda-slider-1').codaSlider();
		
		randomnumber=Math.floor(Math.random()*4)+1
		$('#coda-slider-1').codaSlider({
		        autoSlide: false,
		        autoSlideInterval: 4000,
		        autoSlideStopWhenClicked: true,
		        autoHeight: false,
		        firstPanelToLoad: randomnumber
		});
		
		//jQuery('#logocarousel').jcarousel();
		
		jQuery('#logocarousel').jcarousel({
			start: randomnumber,
			scroll: 1
		   });
				
		
		
		$("a[rel^='videogallery']").prettyPhoto();
		//$('#scroller ul li').addClass('rollover');
		if ($.browser.msie && $.browser.version.substr(0,1)<8) {
		
		} else {
			$('#scroller ul li').hover(function() {
			 	$(this).addClass('rollover');
			}, function() {
			  $(this).removeClass('rollover');
			});
		}		
		$('#logobar li img').each(function(i) {
			$(this).show("explode", 1000);
		});
		
		$('.slideshow').cycle({
				fx: 'curtainY', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
				timeout:  2000,
				random:  1 
		});
		
		$(".illustration2").click(function() {
			window.location="http://www.thewidgetcompany.com/watzijnwidgets/"
		});
		$(".illustration1").click(function() {
			window.location="http://www.thewidgetcompany.com/watzijnwidgets/devices/"
		});
		$(".illustration3").click(function() {
			window.location="http://www.thewidgetcompany.com/watzijnwidgets/platformen/"
		});
		
		
		
		$(".homepagebutton").click(function() {
				$.fancybox([
					'../images/cases/cinenews/screenshot01.png',
					'../images/cases/cinenews/screenshot02.png',
					'../images/cases/cinenews/screenshot03.png',
					'../images/cases/cinenews/screenshot04.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0,
					'showCloseButton' 	: true
				});
		});
		
		
		$(".cinenewsbutton").click(function() {
				$.fancybox([
					'../../images/cases/cinenews/screenshot01.png',
					'../../images/cases/cinenews/screenshot02.png',
					'../../images/cases/cinenews/screenshot03.png',
					'../../images/cases/cinenews/screenshot04.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0,
					'showCloseButton' 	: true,
					'modal'				: false
				});
		});
		
		$(".indexbutton").click(function() {
				$.fancybox([
					'../images/cases/cinenews/screenshot01.png',
					'../images/cases/cinenews/screenshot02.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".hyvesbutton").click(function() {
				$.fancybox([
					'../../images/cases/hyves/screenshot01.png',
					'../../images/cases/hyves/screenshot02.png',
					'../../images/cases/hyves/screenshot03.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".beurstrendsbutton").click(function() {
				$.fancybox([
					'../../images/cases/beurstrends/tv01.png',
					'../../images/cases/beurstrends/tv02.png',
					'../../images/cases/beurstrends/tv03.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".ovyuixx").click(function() {
				$.fancybox([
					'../../images/cases/9292ov/yuixx01.png',
					'../../images/cases/9292ov/yuixx02.png',
					'../../images/cases/9292ov/yuixx03.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".ovsamsungapp").click(function() {
				$.fancybox([
					'../../images/cases/9292ov/tv01.png',
					'../../images/cases/9292ov/tv02.png',
					'../../images/cases/9292ov/tv03.png',
					'../../images/cases/9292ov/tv04.png',
					'../../images/cases/9292ov/tv05.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".samsung-photoframebutton").click(function() {
				$.fancybox([
					'../../images/cases/samsung-photoframe/screenshot01.jpg',
					'../../images/cases/samsung-photoframe/screenshot02.jpg',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".buienradartvlink").click(function() {
				$.fancybox([
					'../../images/cases/buienradar/tv02.png',
					'../../images/cases/buienradar/tv01.png',
					'../../images/cases/buienradar/tv03.png',
					'../../images/cases/buienradar/tv04.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".just-eatbutton").click(function() {
				$.fancybox([
					'../../images/cases/just-eat/01.png',
					'../../images/cases/just-eat/02.png',
					'../../images/cases/just-eat/03.png',
					'../../images/cases/just-eat/04.png',
					'../../images/cases/just-eat/05.png',
					'../../images/cases/just-eat/06.png',
					'../../images/cases/just-eat/07.png',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".fundabutton").click(function() {
				$.fancybox([
					'http://www.thewidgetcompany.com/images/cases/funda/01.PNG',
					'http://www.thewidgetcompany.com/images/cases/funda/02.PNG',
					'http://www.thewidgetcompany.com/images/cases/funda/03.PNG',
					'http://www.thewidgetcompany.com/images/cases/funda/04.PNG',
					'http://www.thewidgetcompany.com/images/cases/funda/05.PNG',
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".nosbutton").click(function() {
				$.fancybox([
					'../../images/cases/nos/01.png',
					'../../images/cases/nos/02.png',
					
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".panoramabutton").click(function() {
				$.fancybox([
					'../../images/cases/panorama/01.png',
					'../../images/cases/panorama/02.png',
					'../../images/cases/panorama/03.png',
					'../../images/cases/panorama/04.png',
					
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".demorgenbutton").click(function() {
				$.fancybox([
					'../../images/cases/demorgen/01.png',
					'../../images/cases/demorgen/02.png',
					
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$(".pathethuisbutton").click(function() {
				$.fancybox([
					'http://www.thewidgetcompany.com/images/cases/pathethuis/01.png',
					'http://www.thewidgetcompany.com/images/cases/pathethuis/02.png',
					'http://www.thewidgetcompany.com/images/cases/pathethuis/03.png',
					'http://www.thewidgetcompany.com/images/cases/pathethuis/04.png',
					
				], {
					'padding'			: 0,
					'transitionIn'		: 'fade',
					'transitionOut'		: 'fade',
					'type'              : 'image',
					'changeFade'        : 0
				});
		});
		
		$("#whatarewidgetsMorelink").click(function() {
			$("#whatarewidgetsMorelink").hide();
			$("#whatarewidgetsMoretext").show();
			
			
		});
		
		$("#whatarewidgetsLesslink").click(function() {
			$("#whatarewidgetsMoretext").hide();
			$("#whatarewidgetsMorelink").show();
			
		});
		
		$("#widgetsforconsumersMorelink").click(function() {
			$("#widgetsforconsumersMorelink").hide();
			$("#widgetsforconsumersMoretext").show();
			
			
		});
		
		$("#widgetsforconsumersLesslink").click(function() {
			$("#widgetsforconsumersMoretext").hide();
			$("#widgetsforconsumersMorelink").show();
			
		});
		
		$("#widgetsforuMorelink").click(function() {
			$("#widgetsforuMorelink").hide();
			$("#widgetsforuMoretext").show();
			
			
		});
		
		$("#widgetsforuLesslink").click(function() {
			$("#widgetsforuMoretext").hide();
			$("#widgetsforuMorelink").show();
			
		});
		
		$("#voordelenMoreLink").click(function() {
			$("#voordelenMoreLink").hide();
			$("#voordelenMoretext").show();
			
		});
		
		$("#voordelenLesslink").click(function() {
			$("#voordelenMoretext").hide();
			$("#voordelenMoreLink").show();
			
		});
		
		
		$("#digitalmediaMorelink").click(function() {
			$("#digitalmediaMorelink").hide();
			$("#digitalmediaMoretext").show();
			
		});
		
		$("#digitalmediaLesslink").click(function() {
			$("#digitalmediaMoretext").hide();
			$("#digitalmediaMorelink").show();
			
		});
		
		$("#webwidgetsMorelink").click(function() {
			$("#webwidgetsMorelink").hide();
			$("#webwidgetsMoretext").show();
			
		});
		
		$("#webwidgetsLesslink").click(function() {
			$("#webwidgetsMoretext").hide();
			$("#webwidgetsMorelink").show();
			
		});
		
		$("#desktopwidgetsMorelink").click(function() {
			$("#desktopwidgetsMorelink").hide();
			$("#desktopwidgetsMoretext").show();
			
		});
		
		$("#desktopwidgetsLesslink").click(function() {
			$("#desktopwidgetsMoretext").hide();
			$("#desktopwidgetsMorelink").show();
			
		});
		
		$("#mobilewidgetsMorelink").click(function() {
			$("#mobilewidgetsMorelink").hide();
			$("#mobilewidgetsMoretext").show();
			
		});
		
		$("#mobilewidgetsLesslink").click(function() {
			$("#mobilewidgetsMoretext").hide();
			$("#mobilewidgetsMorelink").show();
			
		});
		
		$("#tvwidgetsMorelink").click(function() {
			$("#tvwidgetsMorelink").hide();
			$("#tvwidgetsMoretext").show();
			
		});
		
		$("#tvwidgetsLesslink").click(function() {
			$("#tvwidgetsMoretext").hide();
			$("#tvwidgetsMorelink").show();
			
		});
		
		$("#platformkeuzeMoreLink").click(function() {
			$("#platformkeuzeMoreLink").hide();
			$("#platformkeuzeMoretext").show();
			
		});
		
		$("#platformkeuzeLessLink").click(function() {
			$("#platformkeuzeMoretext").hide();
			$("#platformkeuzeMoreLink").show();
			
		});
		$("#productdevelopmentMoreLink").click(function() {
			$("#productdevelopmentMoreLink").hide();
			$("#productdevelopmentMoreText").show();
			
		});
		
		$("#productdevelopmentLessLink").click(function() {
			$("#productdevelopmentMoreText").hide();
			$("#productdevelopmentMoreLink").show();
			
		});
		
		$("#beurstrendsMorelink").click(function() {
			$("#beurstrendsMorelink").hide();
			$("#beurstrendsMoretext").show();
			
		});
		
		$("#beurstrendsLesslink").click(function() {
			$("#beurstrendsMoretext").hide();
			$("#beurstrendsMorelink").show();
			
		});
		
		$("#succesfactsWidgetlink").click(function() {
			$("#succesfactsWidgetlink").hide();
			$("#succesfactsWidgetMoretext").show();
			
		});
		
		
		jQuery('#mycarousel').jcarousel({
			scroll: 5
		});
		jQuery('#buienradar_caroussel').jcarousel();
		
		
	 
	  $(".scroll").click(function(event){
	         //prevent the default action for the click event
	         event.preventDefault();
	  
	         //get the full url - like mysitecom/index.htm#home
	         var full_url = this.href;
	  
	         //split the url by # and get the anchor target name - home in mysitecom/index.htm#home
	         var parts = full_url.split("#");
	         var trgt = parts[1];
	  
	         //get the top offset of the target anchor
	         var target_offset = $("#"+trgt).offset();
	         var target_top = target_offset.top;
	  
	         //goto that anchor by setting the body scroll top to anchor top
	         $('html, body').animate({scrollTop:target_top}, 2200);
	   });
	   
	  
	   
		
	});
	var RecaptchaOptions = {
	   theme : 'clean',
	   lang : 'nl'
	};
		
	
