
/*$(function(){
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});
});
/*$(document).ready(function() {
	// http://www.zachstronaut.com/posts/2009/01/18/jquery-smooth-scroll-bugs.html
	var scrollElement = 'html, body';
	$('html, body').each(function () {
		var initScrollTop = $(this).attr('scrollTop');
		$(this).attr('scrollTop', initScrollTop + 1);
		if ($(this).attr('scrollTop') == initScrollTop + 1) {
			scrollElement = this.nodeName.toLowerCase();
			$(this).attr('scrollTop', initScrollTop);
			return false;
		}
	});

	// Smooth scrolling for internal links
	$("a[href^='#']").click(function(event) {
		event.preventDefault();
		var $this = $(this),
		target = this.hash,
		$target = $(target);

		$(scrollElement).stop().animate({
			'scrollTop': $target.offset().top
		}, 500, 'swing', function() {
			window.location.hash = target;
		});
	});
});*/

$(document).ready(function(){
	//javascript for english form
	$("#li-5-7, #li-5-8").css("display", "none");
	
	$("#cf5_field_6-1").click(function(){
		if($(this).is(":checked")){
			$("#li-5-7, #li-5-8").css("display", "");
		}else{
			$("#li-5-7, #li-5-8").css("display", "none");
		}	
	});
	
	$("#cf5_field_6-2").click(function(){
		$("#li-5-7, #li-5-8").css("display", "none");
	});
	
	$("#li-5-6items input").click(function(){
		$(this).parent().find("input").not("#"+$(this).attr("id")).removeAttr("checked");	
	});
	
	//javascript for french form
	$("#li-6-7, #li-6-8").css("display", "none");		
	
	$("#cf6_field_6-1").click(function(){
		if($(this).is(":checked")){
			$("#li-6-7, #li-6-8").css("display", "");
		}else{
			$("#li-6-7, #li-6-8").css("display", "none");	
		}	
	});
	
	$("#cf6_field_6-2").click(function(){
		$("#li-6-7, #li-6-8").css("display", "none");
	});
	
	$("#li-6-6items input").click(function(){
		$(this).parent().find("input").not("#"+$(this).attr("id")).removeAttr("checked");	
	});
});
