jQuery(document).ready( function(){
	
	/**
	 *
	 * Menu hovers
	 *
	**/
        jQuery("li.purple a.menu-item").hover(function() {  
                jQuery(this).stop().animate({ backgroundColor: "#532380", color:"white"}, 800);  
                },function() {  
                jQuery(this).stop().animate({ backgroundColor: "white", color:"#939292" }, 800);  
                });  

        jQuery("li.green a.menu-item").hover(function() {  
                jQuery(this).stop().animate({ backgroundColor: "#8dc63f", color:"white"}, 800);  
                },function() {  
                jQuery(this).stop().animate({ backgroundColor: "white", color:"#939292"}, 800);  
                });  

        jQuery("li.red a.menu-item").hover(function() {  
                jQuery(this).stop().animate({ backgroundColor: "#ef4035", color:"white"}, 800);  
                },function() {  
                jQuery(this).stop().animate({ backgroundColor: "white", color:"#939292" }, 800);  
                });  

        jQuery("a.hoofdmenu-item").hover(function() {  
                jQuery(this).stop().animate({ fontWeight: "bold" }, 800);  
                },function() {  
                jQuery(this).stop().animate({ fontWeight: "normal" }, 800);  
                }); 
                		
        jQuery("a.portfolio-menu-item").hover(function() {  
                jQuery(this).stop().animate({ backgroundColor: "#8dc63f", color:"white", paddingLeft: "0px", paddingRight: "0px"}, 800);  
                },function() {  
                jQuery(this).stop().animate({ backgroundColor: "white", color:"#8dc63f", paddingLeft: "0px", paddingRight: "0px" }, 800);  
                });  
				
				
		jQuery("a.blog-menu-item").hover(function() {  
                jQuery(this).stop().animate({ backgroundColor: "#F00", color:"white", paddingLeft: "0px", paddingRight: "0px"}, 800);  
                },function() {  
                jQuery(this).stop().animate({ backgroundColor: "white", color:"#F00", paddingLeft: "0px", paddingRight: "0px" }, 800);  
                });  	
                
if ( jQuery('#content-left').height() < jQuery('#content-right-single').height() ) {

	if ( jQuery(document).height() > jQuery(window).height() ) {
		//alert('show it');
		jQuery('#terugnaarboven').show();
	}
}
                

});

function checkreageer() {

	var ret=true;
	
	if ( document.getElementById('naam').value == '' ) {
		
		ret=false;
	}


	if ( document.getElementById('bericht').value == '' ) {
		
		ret=false;
	}

	
	if ( ret == false ) {
		alert('U dient alle velden in te vullen om te kunnen reageren.');
	}
	
	
	return ret;
}

function checkfields() {

	if ( document.getElementById('naam').value == '' || document.getElementById('naam').value == 'naam' ) { alert('Vul a.u.b. uw naam in.'); return false; 
	} else if ( document.getElementById('email').value == '' || document.getElementById('email').value == 'e-mail adres' ) { alert('Vul a.u.b. uw e-mail adres in.');  return false; 
	} else if ( document.getElementById('bericht').value == '' || document.getElementById('bericht').value == 'bericht' ) { alert('Vul a.u.b. uw bericht in.');  return false; } else {
	return true;
	}
}


function bgfix() {
	jQuery('#inner-wrapper').height(jQuery(document).height()); 
}


		// JS code: cufon 		
			Cufon.replace('.cufon');
		
		// JS code: bg probleem inner-wrapper 
		
			jQuery(document).ready(function () {
				jQuery('#inner-wrapper').height(jQuery(document).height());
			});

			$(window).scroll(function () { 
     			jQuery('#inner-wrapper').height(jQuery(document).height()); 
			});

			$(window).resize(function () { 
     			jQuery('#inner-wrapper').height(jQuery(document).height()); 
			});
		
		
	//supersize bg 
	
			jQuery(function($){
				jQuery.supersized({
				
					//Functionality
					slideshow               :   0,		//Slideshow on/off
					autoplay				:	0,		//Slideshow starts playing automatically
					start_slide             :   0,		//Start slide
					slide_interval          :   0,		//Length between transitions
					transition              :   0, 		//0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
					transition_speed		:	0,		//Speed of transition
					new_window				:	1,		//Image links open in new window/tab
					pause_hover             :   0,		//Pause slideshow on hover
					keyboard_nav            :   1,		//Keyboard navigation on/off
					performance				:	1,		//0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)

					//Size & Position
					min_width		        :   0,		//Min width allowed (in pixels)
					min_height		        :   0,		//Min height allowed (in pixels)
					vertical_center         :   0,		//Vertically center background
					horizontal_center       :   0,		//Horizontally center background
					fit_portrait         	:   0,		//Portrait images will not exceed browser height
					fit_landscape			:   0,		//Landscape images will not exceed browser width
					
					//Components
					navigation              :   1,		//Slideshow controls on/off
					thumbnail_navigation    :   1,		//Thumbnail navigation
					slide_counter           :   1,		//Display slide numbers
					slide_captions          :   1,		//Slide caption (Pull from "title" in slides array)
					slides 					:  	[		//Slideshow Images
														{image : '/img/background.jpg'}
												]
												
				}); 
		    });			
				

		// JS code: google analytics 
		

  			var _gaq = _gaq || [];
  			_gaq.push(['_setAccount', 'UA-19359215-1']);
  			_gaq.push(['_trackPageview']);

  			(function() {
    			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  			})();

		
		

