$(document).ready(function(){
	/*
	$("#regionl").live("click",function(){
		$("#veranderRegioBoxke option").attr('selected', false);
		$("#veranderRegioBoxke option.alle").attr('selected', 'selected');
		return false;
	});
	*/
	$("#allKaart").addClass("all");
	$("#regioForm input").removeAttr('checked');
	$("#regioForm input.alle").attr('checked', 'checked');

	$("#regionl").live("mouseover",function(){
		$("#allKaart").addClass("all-h");
		$("#allKaart").removeClass("all");
		return false;
	});
	$("#regionl").live("mouseout",function(){
		$("#allKaart").removeClass("all-h");
		$("#allKaart").addClass("all");
		return false;
	});
	$("#zouteMap,#zeedijkMap,#duinbergenMap,#knokkeMap,#oosthoekMap,#buitenMap").live("mouseover",function(){
		$("#allKaart").addClass("all");
		$("#allKaart").removeClass("all-h");
		return false;
	});
	$("#zouteMap,#zeedijkMap,#knokkeMap,#oosthoekMap,#buitenMap").live("mouseout",function(){
		$("#allKaart").addClass("all-h");
		$("#allKaart").removeClass("all");
		return false;
	});
	/**/
	$("#regionl, #regioForm input.alle").click(function(){
		location.reload();
	});
/*	$("#regioForm input.alle").toggle(function(){
		$("#regioForm input.1,#regioForm input.2,#regioForm input.3,#regioForm input.4,#regioForm input.5,#regioForm input.6,").removeAttr("checked");
	  }, function () {
		$("#regioForm input.1,#regioForm input.2,#regioForm input.3,#regioForm input.4,#regioForm input.5,#regioForm input.6,").removeAttr("checked");
	});
	$("#regioForm input.alle").live("mouseup",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#allKaartTemp").hasClass("all-T") == true){									
			$("#allKaartTemp").removeClass("all-T");
			//$("#regioForm input.1,#regioForm input.2,#regioForm input.3,#regioForm input.4,#regioForm input.5,#regioForm input.6").attr('checked',false);
			$("#regioForm input").attr('checked',false);
	  	} else {
			//$("#regioForm input.alle").attr('checked', false);
			$("#allKaartTemp").addClass("all-T");
			$("#regioForm input").attr('checked','checked');
			//$("#regioForm input.1,#regioForm input.2,#regioForm input.3,#regioForm input.4,#regioForm input.5,#regioForm input.6").attr('checked','checked');
	  }
	});
*/	
	$("#regioForm input.6").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#zouteKaart").hasClass("zoute") == true){									
			$("#zouteKaart").removeClass("zoute");
			$("#regioForm input.alle").removeAttr('checked');
	  	} else {
			//$("#regioForm input.alle").attr('checked', false);
			$("#zouteKaart").addClass("zoute");
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#regioForm input.5").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#zeedijkKaart").hasClass("zeedijk") == true){									
			$("#zeedijkKaart").removeClass("zeedijk");
			$("#regioForm input.alle").attr('checked', false);
			//$("#regioForm input.2").removeAttr('checked');
	  	} else {
			$("#zeedijkKaart").addClass("zeedijk");
			//$("#regioForm input.alle").attr('checked', false);
			//$("#regioForm input.2").attr('checked', 'checked');
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#regioForm input.4").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#oosthoekKaart").hasClass("oosthoek") == true){									
			$("#oosthoekKaart").removeClass("oosthoek");
			$("#regioForm input.alle").attr('checked', false);
	  	} else {
			//$("#regioForm input.alle").attr('checked', false);
			$("#oosthoekKaart").addClass("oosthoek");
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#regioForm input.3").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#knokkeKaart").hasClass("knokke") == true){									
			$("#knokkeKaart").removeClass("knokke");
			$("#regioForm input.alle").attr('checked', false);
	  	} else {
			//$("#regioForm input.alle").attr('checked', false);
			$("#knokkeKaart").addClass("knokke");
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#regioForm input.2").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#duinbergenKaart").hasClass("duinbergen") == true){									
			$("#duinbergenKaart").removeClass("duinbergen");
			$("#regioForm input.alle").attr('checked', false);
			//$("#regioForm input.5").attr('checked', false);
	  	} else {
			$("#duinbergenKaart").addClass("duinbergen");
			//$("#regioForm input.alle").attr('checked', false);
			//$("#regioForm input.5").attr('checked', 'checked');
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#regioForm input.1").live("click",function(){
		//alert ($("#regioForm input.6").is(':checked'));
		if ($("#buitenKaart").hasClass("buiten") == true){									
			$("#buitenKaart").removeClass("buiten");
			$("#regioForm input.alle").attr('checked', false);
	  	} else {
			//$("#regioForm input.alle").attr('checked', false);
			$("#buitenKaart").addClass("buiten");
			$("#regioForm input.alle").removeAttr('checked');
	  }/**/
	});
	$("#zouteMap").toggle(function(){
		$("#zouteKaart").addClass("zoute");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.6").attr('checked', 'checked');
		return false;
	  }, function () {
		$("#zouteKaart").removeClass("zoute");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.6").attr('checked', false);
		return false;
	});
	$("#zeedijkMap").toggle(function(){
		$("#zeedijkKaart").addClass("zeedijk");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.5").attr('checked', 'checked');
		//$("#regioForm input.2").attr('checked', 'checked');
		return false;
	  }, function () {
		$("#zeedijkKaart").removeClass("zeedijk");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.5k").attr('checked', false);
		//$("#regioForm input.2").attr('checked', false);
		return false;
	}); 
	$("#knokkeMap").toggle(function(){
		$("#knokkeKaart").addClass("knokke");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.3").attr('checked', 'checked');
		//$("#regioForm input.Buiten").attr('checked', false);
		return false;
	  }, function () {
		$("#knokkeKaart").removeClass("knokke");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.3").attr('checked', false);
		return false;
	}); 
	$("#duinbergenMap").toggle(function(){
		$("#duinbergenKaart").addClass("duinbergen");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.2").attr('checked', 'checked');
		//$("#regioForm input.Buiten").attr('checked', false);
		return false;
	  }, function () {
		$("#duinbergenKaart").removeClass("duinbergen");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.2").attr('checked', false);
		return false;
	}); 
	$("#oosthoekMap").toggle(function(){
		$("#oosthoekKaart").addClass("oosthoek");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.4").attr('checked', 'checked');
		return false;
	  }, function () {
		$("#oosthoekKaart").removeClass("oosthoek");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.4").attr('checked', false);
		return false;
	}); 
	$("#buitenMap").toggle(function(){
		$("#buitenKaart").addClass("buiten");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.1").attr('checked', 'checked');
		return false;
	  }, function () {
		$("#buitenKaart").removeClass("buiten");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.1").attr('checked', false);
		return false;
	}); 
/*
	$("#zouteMap66").live("click",function(){
		$("#zouteKaart").addClass("zoute");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.Zoute").attr('checked', 'checked');
		return false;
	});
	$("#zeedijkMap66").live("click",function(){
		$("#zeedijkKaart").addClass("zeedijk");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.Zeedijk").attr('checked', 'checked');
		$("#regioForm input.Albertstrand").attr('checked', 'checked');
		return false;
	});
	$("#oosthoekMap").live("click",function(){
		$("#oosthoekKaart").addClass("oosthoek");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.Oosthoek").attr('checked', 'checked');
		return false;
	});
	$("#knokkeMap66").live("click",function(){
		$("#knokkeKaart").addClass("knokke");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.Knokke-Heist").attr('checked', 'checked');
		$("#regioForm input.Buiten").attr('checked', false);
		return false;
	});
	$("#buitenMap").live("click",function(){
		$("#buitenKaart").addClass("buiten");
		$("#regioForm input.alle").attr('checked', false);
		$("#regioForm input.Buiten").attr('checked', 'checked');
		return false;
	});
	$("#zeedijkMap666").live("click",function(){
		$("#zeedijkKaart").addClass("zeedijk");
		$("#veranderRegioBoxke option").attr('selected', false);
		$("#veranderRegioBoxke option.Zeedijk").attr('selected', 'selected');
		return false;
	});
	$("#regio_r1_c1").live("click",function(){
		$("#regioKaart").removeAttr("class");
		$("#regioKaart").addClass("all");
		return false;
	});
*/

});

