/* *****************************************
//  WebTank javascript File
//  Title: ksg.js
//  File updated: 2012-01-02 18:04:08
// 
//  Do NOT manually edit this generated file
// **************************************** */


/* EXTEND */

Date.prototype.getDOY = function() {

	var onejan = new Date(this.getFullYear(),0,1);
	return Math.ceil((this - onejan) / 86400000);
	
}

//

$.extend( {

	getUrlVars: function() {
	
		var vars = [], hash;
		var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
		
		for(var i = 0; i < hashes.length; i++) {
		
			hash = hashes[i].split('=');
			
			vars.push(hash[0]);
			
			vars[hash[0]] = hash[1];
			
		}
		
		return vars;
	},
	
	getUrlVar: function( name ) {
		
		return $.getUrlVars()[name];
		
	}
	
} );

// VARS

var m = $.getUrlVar("m");

var menu_item_height = 20;
var amount = 165;
var color = 333333;

var submenu_item_padding = "2px 25px 2px 25px";
var selected = undefined;
var active = undefined;

var themesMenuOpen = false;

var today = new Date();
var daynum = today.getDOY();
var array = new Array();
var index = 0;

/* INIT */

$(window).load( function () {

	resize();
	
} );

$(window).resize( function() {

	resize();
	
} );

$(document).ready( function() {

	/* MENU */
	
	if( $("#menu").length != 0 ) {
	
		menu();
	
	}
	
	/* QUOTE HEADER */
	
	$(".product").each( function() {
	
		array.push( parseInt( $(this).attr("rel") ) );
	
	} );
				
	index = getNearestNumber( array, daynum ) + 1;
	
	//
	
	$("#quote_header .products .product:last-child img").load( function() {
	
		setTimeout ( "setCarousel()", 1000 );
		
	} );
	
	//
	
	if( $("#jcarousel").length != 0 ) {
	
		$("#jcarousel").jcarousel( {	
			scroll: 1,
			buttonNextHTML: null,
			buttonPrevHTML: null,
			initCallback: jcarousel_init
		} );
		
	}
	
	//
	
	if( $("#quote_header").length != 0 ) {
	
		$("#quote_header .products .product .quote").each( function(index) {
								
			$(this).css( {
				
				position: 'absolute',
				left: ( $("#header").width() - $(this).outerWidth() ) / 2,
				top: ( $("#header").height() - $(this).outerHeight() ) / 2
				
			} );
			
		} );
		
		$('#slides .item .caption .quote').css("visibility", "visible");
		$('#slides .item .caption .quotee').css("visibility", "visible");
		
		$("#slides > span").remove();
	
	}
	
	/* HEADER THEMES */
	
	if( $("#header_themes").length != 0 ) {
	
		$("#header_themes").hover(
								
			function() {
		
				
			
			},
			
			function() {
			
				if( themesMenuOpen ) {
			
					animateThemesMenu();
					
				}
				
			}
		
		);
		
	}
	
	/* HOMEPAGE TAB */
	
	if( $("#homepage_tab").length != 0 ) {
		
		$("#homepage_tab .tab_left .tab_bottom").hide();
		$("#homepage_tab .tab_right .tab_bottom").hide();
		$("#homepage_tab .tab_middle .tab_top").addClass("active");
		
		$("#homepage_tab .tab_left .tab_top").hover(function(){
			
			$("#homepage_tab .tab_middle .tab_bottom").hide();
			$("#homepage_tab .tab_right .tab_bottom").hide();
			$("#homepage_tab .tab_left .tab_bottom").show();
			$("#homepage_tab .tab_middle .tab_top").removeClass("active");
			$("#homepage_tab .tab_right .tab_top").removeClass("active");
			$("#homepage_tab .tab_left .tab_top").addClass("active");
		
		},function(){

		
		});
		
		$("#homepage_tab .tab_middle .tab_top").hover(function(){
			
			$("#homepage_tab .tab_left .tab_bottom").hide();
			$("#homepage_tab .tab_right .tab_bottom").hide();
			$("#homepage_tab .tab_middle .tab_bottom").show();
			$("#homepage_tab .tab_left .tab_top").removeClass("active");
			$("#homepage_tab .tab_right .tab_top").removeClass("active");
			$("#homepage_tab .tab_middle .tab_top").addClass("active");
		
		},function(){

		
		});
		
		$("#homepage_tab .tab_right .tab_top").hover(function(){
			
			$("#homepage_tab .tab_middle .tab_bottom").hide();
			$("#homepage_tab .tab_left .tab_bottom").hide();
			$("#homepage_tab .tab_right .tab_bottom").show();
			$("#homepage_tab .tab_middle .tab_top").removeClass("active");
			$("#homepage_tab .tab_left .tab_top").removeClass("active");
			$("#homepage_tab .tab_right .tab_top").addClass("active");
		
		},function(){

		
		});
	
	}

	/* ADD THIS WIDGET */
	
	var delay = 400;
							
	function hideMenu() {
		if(!$('.custom_button').data('in') && !$('.hover_menu').data('in') && !$('.hover_menu').data('hidden')) {
			$('.hover_menu').fadeOut('fast');
			$('.custom_button').removeClass('active');
			$('.hover_menu').data('hidden', true);
		}
	}
	
	if( $('.custom_button').length != 0 ) {
	
		$('.custom_button, .hover_menu').mouseenter(function() {
		
			$('.hover_menu').fadeIn('fast');
			$('.custom_button').addClass('active');
			$(this).data('in', true);
			$('.hover_menu').data('hidden', false);
		
		}).mouseleave(function() {
		
			$(this).data('in', false);
			setTimeout(hideMenu, delay);
		
		});
	
	}

	/* EMPLOYEES */
	
	if( $(".employees").length != 0 ) {
	
		$("a[class^='photobook_image']").fancybox();
		
		$('.photobook .image:not(:first-child)').hide();
		
		$(".employees .employee").hover(
		
			function() {
				
				$(this).find(".image").children("a").children("img").css("border-bottom", "4px solid #FF0000");
				$(this).find(".title").css("color", "#FF0000");
					
			},
			
			function() {
	
				$(this).find(".image").children("a").children("img").css("border", "1px solid #d2d2d2");
				$(this).find(".title").css("color", "#0098b8");
			
			}
					
		);
		
		$(".employees .employee:even").css("float", "right");
		
	}
	
	/* HOMEPAGE EMPLOYEES */
	
	if( $("#homepage_employees").length != 0 ) {
	
		$("#homepage_employees .employee").hover(
								
			function() {
				
				$(this).children(".left").children("a").children("img").css("border-bottom", "4px solid #FF0000");
				$(this).children(".right").children(".information").children(".title").children("a").css("color", "#FF0000");
					
			},
			
			function() {
	
				$(this).children(".left").children("a").children("img").css("border-bottom", "1px solid #d2d2d2");
				$(this).children(".right").children(".information").children(".title").children("a").css("color", "#0098b8");
			
			}
					
		);
		
	}
	
	/* SUBMENU */
	
	if( $(".menu_item_children").length != 0 ) {
	
		$(".menu_item_children a").hover(
								
		  function() {
		  
			$(this).find(".menu_item_child").css("background", "#FF0000");
			$(this).find(".menu_item_child .menu_title").css("color", "#FFFFFF");
			
			$(this).find(".menu_item_child_selected").css("background", "#FF0000");
			$(this).find(".menu_item_child_selected .menu_title").css("color", "#FFFFFF");
			
		  }, 
		
		  function() {
		  
			$(this).find(".menu_item_child").css("background", "#FFFFFF");
			$(this).find(".menu_item_child .menu_title").css("color", "#333333");
			
			$(this).find(".menu_item_child_selected").css("background", "#FF0000");
			$(this).find(".menu_item_child_selected .menu_title").css("color", "#FFFFFF");
			
		  }
		  
		);
		
	}
	
} );

// FUNCTIONS

function animateThemesMenu() {
							
	if( !themesMenuOpen ) {
	
		$('#header_themes .themes_menu').animate( {
		
				opacity: 1,
				height: 'toggle'
				
			}, 
			
			500, 
			
			function() {
		
				
		
			}
			
		);
		
		//

		$("#quote_header_controls").css("cssText", "position: absolute; top: 110px; left: 0px; z-index: 20; width: 950px; height: 60px;");
		$("#header_themes").css("cssText", "position: absolute; bottom: 0px; right: 0px; z-index: 30; width: 314px; height: 280px;");
		
		//
										
		themesMenuOpen = true;
	
	} else {
		
		$('#header_themes .themes_menu').animate( {
		
				opacity: 0,
				height: 'toggle'
				
			}, 
			
			500, 
			
			function() {
			
				
		
			}
			
		);
		
		//
		
		$("#header_themes").css("cssText", "position: absolute; bottom: 0px; right: 0px; z-index: 20; width: 314px; height: 280px;");
		$("#quote_header_controls").css("cssText", "position: absolute; top: 110px; left: 0px; z-index: 30; width: 950px; height: 60px;");
		
		//
		
		themesMenuOpen = false;
	
	}
	
}

function menu() {
	
	if( $("#menu .menu #ul-1- > ul > li > .topA").length != 0 ) {
		
		$("#menu .menu #ul-1- > ul > li").each( function(index) {
				
			$(this).css("cssText", "height: 24px !important; padding: 4px 25px 0 25px !important; line-height: " + menu_item_height + "px !important; background: url('./images/editorial/id=342.png') top right no-repeat;");
		
		} );
		
	}
	
	//
	
	if( $("#menu .menu #ul-1- > ul > li").length > 0 ) {
				
		$("#menu .menu #ul-1- > ul > li").each( function(index) {
		
			$(this).hover(level1MenuMouseOver, level1MenuMouseOut);
			
		} );
		
	}
	
	//
	
	selected = $("a[id=a-1-" + m + "]");
	
	if( selected.length > 0 ) {
	
		$("#menu .menu #ul-1- > ul > li").has(selected).css("cssText", "float: left; height: auto !important; margin-top: 0px !important; padding: 0px !important; background: none;");
		
		$("#menu .menu #ul-1- > ul > li").has(selected).children("a").css("cssText", "display: block; padding: 7px 25px 6px 25px !important; background: url('./images/editorial/id=362.png') 0px 0px repeat-x;");
	
	}
	
	//
	
	hideMenuItems();
	
	//
	
	$("#menu .menu #ul-1- > ul").css("display", "block");
	
}

function hideMenuItems() {

	$("a[id=a-1-50]").css("cssText", "display: none !important;");
	$("a[id=a-1-50]").parent().css("cssText", "display: none !important;");
	$("a[id=a-1-51]").css("cssText", "display: none !important;");
	$("a[id=a-1-51]").parent().css("cssText", "display: none !important;");
	$("a[id=a-1-52]").css("cssText", "display: none !important;");
	$("a[id=a-1-52]").parent().css("cssText", "display: none !important;");
	$("a[id=a-1-84]").css("cssText", "display: none !important;");
	$("a[id=a-1-84]").parent().css("cssText", "display: none !important;");

}

function hideSubmenu() {

	$("#middle .submenu").hide();

}

function setMenuOver( element ) {
	
	var selected = $("a[id=a-1-" + m + "]");
	
	if( selected.length > 0 ) {
	
		$("#menu .menu #ul-1- > ul > li").has(selected).css("cssText", "height: 24px !important; padding: 4px 25px 0 25px !important; background: url('./images/editorial/id=342.png') top right no-repeat;");
		
		$("#menu .menu #ul-1- > ul > li").has(selected).children("a").css("cssText", "");
	
	
	}
	
	//
	
	$(element).css("cssText", "float: left; height: auto !important; margin-top: 0px !important; padding: 0px !important; background: none;");

	$(element).children("a").css("cssText", "display: block; padding: 7px 25px 6px 25px !important; background: url('./images/editorial/id=362.png') 0px 0px repeat-x;");
	
	//
	
	hideMenuItems();
	
}

function setMenuOut( element ) {
	
	$(element).children("a").css("cssText", "height: 24px !important; padding: 4px 25px 0 25px !important; background: url('./images/editorial/id=342.png') top right no-repeat;");
	
	$(element).children("a").css("cssText", "");
	
	//
	
	$("#menu .menu #ul-1- > ul > li").each( function(index) {
		
		$(this).css("cssText", "height: 24px !important; padding: 4px 25px 0 25px !important; background: url('./images/editorial/id=342.png') top right no-repeat;");
	
	} );
	
	//
	
	var selected = $("a[id=a-1-" + m + "]");
	
	if( selected.length > 0 ) {
	
		$("#menu .menu #ul-1- > ul > li").has(selected).css("cssText", "float: left; height: auto !important; margin-top: 0px !important; padding: 0px !important; background: none;");
		
		$("#menu .menu #ul-1- > ul > li").has(selected).children("a").css("cssText", "display: block; padding: 7px 25px 6px 25px !important; background: url('./images/editorial/id=362.png') 0px 0px repeat-x;");
	
	}
	
	//
	
	hideMenuItems();
	
}

function level1MenuMouseOver() {
	
	/* MENU_LEVEL_0 */
	
	setMenuOver( $(this) );
	
	/* MENU_LEVEL_1 */
	
	var a = $(this).children("a");
	var ul = $(this).children("ul");
	var li = ul.children("li");
	
	if( ul.length > 0 ) {
	
		ul.css("cssText", "display: block; position: absolute; top: 30px; left: -45px; z-index: 2000; width: 930px; height: 160px; padding: 10px !important; background: url('./images/editorial/id=366.png') repeat-x;");
	
	}
	
	//
	
	var value_0 = $(".menu").position().left;
	var value_1 = $(this).position().left;
	var value_2 = 15;
	
	var value = value_0 + value_1 + value_2;
	
	if(li.length > 0) {
	
		li.css("cssText", "display: block !important; height: " + menu_item_height + "px !important; margin-left: " + value + "px !important; width: 300px !important; line-height: " + menu_item_height + "px !important; background: url('./images/editorial/id=371.png');");
		li.children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #FFFFFF !important;");
		
		/* MENU_LEVEL_2 */
		
		li.each( function(index) {
			
			if( $(this).children("ul").length > 0 ) {
				
				if( $(this).children(".icon").length == 0) {
				
					$(this).append("<div class='icon'><img src='./images/editorial/id=373.png' /></div>");
				
					$(this).children(".icon").css("cssText", "margin: -13px 0 0 -14px");

				}
				
				$(this).children("ul").css("cssText", "display: none !important;");
				
			}
			
			$(this).hover(level2MenuMouseOver, level2MenuMouseOut);
			
		} );
		
		//
		
		setElement( li.children("a") );
		
	}
	
}

function level1MenuMouseOut() {
	
	/* MENU_LEVEL_0 */
	
	setMenuOut( $(this) );
	
	/* MENU_LEVEL_1 */
	
	var ul = $(this).children("ul");

	if( ul.length > 0 ) {
	
		ul.css("cssText", "display: none;");
	
	}
	
	//
	
	var li = ul.children("li");
	
	li.children(".icon").remove();

}

function level2MenuMouseOver() {

	$(this).children("a").parent().parent().parent().children("a").css("cssText", "display: block; padding: 7px 25px 6px 25px !important; color: #" + color + " !important; background: url('./images/editorial/id=362.png') 0px 0px repeat-x;");
	
	//
	
	var ul = $(this).children("ul");
	var li = ul.children("li");
	
	if( ul.length > 0 ) {
	
		var left = parseInt( $(".menu").position().left + $(this).parent().parent().position().left + amount );
		
		ul.css("cssText", "position: absolute; top: 10px; left: " + left + "px; z-index: 3000; width: 300px !important; height: 160px !important; padding-left: 25px !important; border-left: 1px solid #E98B88 !important;");
		
	}
	
	//
	
	var value = 25;
		
	if(li.length > 0) {
	
		li.css("cssText", "display: block !important; height: " + menu_item_height + "px !important; margin-left: " + value + "px !important; width: 300px !important; line-height: " + menu_item_height + "px !important; background: url('./images/editorial/id=371.png');");
		li.children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #FFFFFF !important;");
		
		/* MENU_LEVEL_3 */
		
		li.each( function(index) {
			
			if( $(this).children("ul").length > 0 ) {
				
				if( $(this).children(".icon").length == 0) {
				
					$(this).append("<div class='icon'><img src='./images/editorial/id=373.png' /></div>");
					
					$(this).children(".icon").css("cssText", "margin: -14px 0 0 -14px");
					
				}
								
				$(this).children("ul").css("cssText", "display: none !important;");
				
			}
			
			//
			
			$(this).hover(level3MenuMouseOver, level3MenuMouseOut);
			
		} );
		
		
		//
		
		setElement( li.children("a") );
		
	}

}

function level2MenuMouseOut() {
	
	var ul = $(this).children("ul");

	if( ul.length > 0 ) {
	
		ul.css("cssText", "display: none !important;");	
		
	}
	
	//
	
	var li = ul.children("li");
	
	li.children(".icon").remove();
	
}

function level3MenuMouseOver() {

	$(this).children("a").parent().parent().parent().children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #" + color + " !important;");
	
	//
	
	$(this).children("a").parent().parent().parent().children(".icon").children("img").attr("src", "./images/editorial/id=381.png");
	
	//
	
	var ul = $(this).children("ul");
	var li = ul.children("li");
	
	if( ul.length > 0 ) {
		
		var left = parseInt( $(".menu").position().left + $(this).parent().parent().position().left + amount );
		
		ul.css("cssText", "position: absolute; top: 0px; left: " + left + "px; z-index: 4000; width: 300px !important; height: 160px !important; padding-left: 25px !important; border-left: 1px solid #E98B88 !important;");
		
	}
	
	//
	
	var value = 25;
	
	if(li.length > 0) {
	
		li.css("cssText", "display: block !important; height: " + menu_item_height + "px !important; margin-left: " + value + "px !important; width: 300px !important; line-height: " + menu_item_height + "px !important; background: url('./images/editorial/id=371.png');");
		li.children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #FFFFFF !important;");
		
		/* MENU_LEVEL_3 */
		
		li.each( function(index) {
			
			if( $(this).children("ul").length > 0 ) {
				
				$(this).children("ul").css("cssText", "display: none !important;");
				
			}
			
			//
			
			$(this).hover(level4MenuMouseOver, level4MenuMouseOut);
			
		} );
		
		
		//
		
		setElement( li.children("a") );
		
	}
	
}

function level3MenuMouseOut() {

	var ul = $(this).children("ul");

	if( ul.length > 0 ) {
	
		ul.css("cssText", "display: none !important;");	
		
	}

}

function level4MenuMouseOver() {

	$(this).children("a").parent().parent().parent().children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #" + color + " !important;");
	
	$(this).children("a").parent().parent().parent().children(".icon").children("img").attr("src", "./images/editorial/id=381.png");
	
}

function level4MenuMouseOut() {

	
	
}

function setElement( element ) {

	$(element).mouseover( function() {
			
		resetElements( $(this) );
		
		//
		
		$(this).css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #" + color + " !important;");
		
		$(this).parent().children(".icon").children("img").attr("src", "./images/editorial/id=381.png");
		
	} );
	
	$(element).mouseout( function() {
	
		$(this).css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #FFFFFF !important;");
		
		$(this).parent().children(".icon").children("img").attr("src", "./images/editorial/id=373.png");
		
	} );

}

function resetElements( element ) {

	element.parent().parent().children("li").each( function(index) {
		
		$(this).children("a").css("cssText", "display: block !important; width: auto; line-height: " + menu_item_height + "px !important; color: #FFFFFF !important;");
		
		$(this).children(".icon").children("img").attr("src", "./images/editorial/id=373.png");
	
	} );

}

//

function getNearestNumber( a, n ) {

	if((l = a.length) < 2)
		return l - 1;
	for(var l, p = Math.abs(a[--l] - n); l--;)
		if(p < (p = Math.abs(a[l] - n)))
			break;
	return l + 1;

}

function jcarousel_init( carousel ) {
	
	$("#jcarousel_hidden").bind("click", function() {
    	
    	carousel.scroll( index );
    	
        return false;
        
    } );
	
   	$("#jcarousel_previous").bind("click", function() {
    
        carousel.prev();
        
        return false;
        
    } );
    
    $("#jcarousel_next").bind("click", function() {
        
        carousel.next();
        
        return false;
        
    } );
    
}

function setCarousel() {
	
	$("#jcarousel_hidden").click();
	
}

//

function resize() {
	
	if( $("#footer").length > 0 ) {
		
		var CONTENT_HEIGHT = $("#top").height() + $("#middle").height() + 50;
		
		if( $(window).height() >= ( CONTENT_HEIGHT + $("#footer").height() ) ) {

			if( CONTENT_HEIGHT > $(window).height() ) {
		
				$("#footer").css("top", CONTENT_HEIGHT + "px");
				
			} else {
				
				$("#footer").css("top", ( $(window).height() - $("#footer").height() ) + "px");
				
			}
		
		} else if( ( CONTENT_HEIGHT + $("#footer").height() ) > $(window).height() ) {
						
			$("#footer").css("top", CONTENT_HEIGHT + "px");
		
		}
		
	}
	
	//
	
	$("#footer").show();
	
}

//

function contentTab(){
							
	$("#content_tab .tab_left .tab_bottom").hide();
	$("#content_tab .tab_right .tab_bottom").hide();
	$("#content_tab .tab_middle .tab_top").addClass("active");
	
	$("#content_tab .tab_left .tab_top").hover(function(){
		
		$("#content_tab .tab_middle .tab_bottom").hide();
		$("#content_tab .tab_right .tab_bottom").hide();
		$("#content_tab .tab_left .tab_bottom").show();
		$("#content_tab .tab_middle .tab_top").removeClass("active");
		$("#content_tab .tab_right .tab_top").removeClass("active");
		$("#content_tab .tab_left .tab_top").addClass("active");
	
	},function(){

	
	});
	
	$("#content_tab .tab_middle .tab_top").hover(function(){
		
		$("#content_tab .tab_left .tab_bottom").hide();
		$("#content_tab .tab_right .tab_bottom").hide();
		$("#content_tab .tab_middle .tab_bottom").show();
		$("#content_tab .tab_left .tab_top").removeClass("active");
		$("#content_tab .tab_right .tab_top").removeClass("active");
		$("#content_tab .tab_middle .tab_top").addClass("active");
	
	},function(){

	
	});
	
	$("#content_tab .tab_right .tab_top").hover(function(){
			
		$("#content_tab .tab_middle .tab_bottom").hide();
		$("#content_tab .tab_left .tab_bottom").hide();
		$("#content_tab .tab_right .tab_bottom").show();
		$("#content_tab .tab_middle .tab_top").removeClass("active");
		$("#content_tab .tab_left .tab_top").removeClass("active");
		$("#content_tab .tab_right .tab_top").addClass("active");
	
	},function(){
		
		
	
	});
	
};

//

function setRollOversEmployee() {	
							
	$("#content_employees .employee").hover(
	
		function() {
			
			$(this).find("img").css("border-bottom", "4px solid #FF0000");
			$(this).children("a").children(".info").children("h3").css("color", "#FF0000");
				
		},
		
		function() {

			$(this).find("img").css("border", "1px solid #d2d2d2");
			$(this).children("a").children(".info").children("h3").css("color", "#0098b8");
		
		}
				
	);
};

//

function updateRadioButton( element ) {
						
	if( $(element).attr("title") == "trainingen" ) {
								
		$(element).children(".image").children("img").attr("src", "./images/editorial/id=343.png");
		
		$(".options .website").children("a").children(".image").children("img").attr("src", "./images/editorial/id=344.png");
		
		//
		
		$("#form_search_type").attr("value", "trainingen");
										
	} else if( $(element).attr("title") == "website" ) {
	
		$(element).children(".image").children("img").attr("src", "./images/editorial/id=343.png");
		
		$(".options .trainingen").children("a").children(".image").children("img").attr("src", "./images/editorial/id=344.png");
		
		//
		
		$("#form_search_type").attr("value", "website");
										
	}
	
}	

//

function checkGender() {
						
	var valid = true;
	
	if( $("#signup_form input[name=form_participant_gender]:checked").val() == undefined ) {
	
		valid = false;
	
	}
	
	if( $("#signup_form input[name=form_contact_gender]:checked").val() == undefined ) {
									
		valid = false;
	
	}
	
	if( $("#signup_form input[name=form_billing_gender]:checked").val() == undefined ) {
									
		valid = false;
	
	}
	
	//
	
	if( !valid ) {
	
		alert("U heeft het formulier nog niet volledig ingevuld.");
	
	} else {
	
		return true;
	
	}
	
}

//

function scrollTop() {
						
	scroll(0, 0);
	
}

