<!--
function createRequestObject(){
	if (navigator.appName == 'Microsoft Internet Explorer') {
		return new ActiveXObject('Microsoft.XMLHTTP');
	}	else {
		return new XMLHttpRequest();
	}
}

function ajax (obj, my_source){
 var http = createRequestObject();
 http.open('get', my_source);

 http.onreadystatechange = function(){
 	if (http.readyState == 4) {
 		document.getElementById(obj).innerHTML = http.responseText;
 	}
 }
	http.send(null);
}

function resizeWindow(){
 nWidth  = document.images[0].width;
 nHeight = document.images[0].Height;

 if (window.innerWidth) {
  window.innerWidth = nWidth;
  window.innerHeight = nHeight;
 }else if(document.all){
  window.resizeTo(nWidth, nHeight);
  nWidth  -= (document.body.clientWidth - nWidth);
  nHeight -= (document.body.clientHeight - nHeight);
  window.resizeTo(nWidth, nHeight);
 }
}
// -->

$(document).ready(function () {
    var type_click = function () {
        switch ($('input[name=user_type]:checked').val()) {
            case 'business':
                $('#btw_number').parent().show();
                $('#company_name').parent().show();
                break;
            default:
                $('#btw_number').parent().hide();
                $('#company_name').parent().hide();
                break;
        }
    }
    $('input[name=user_type]').click(type_click);
    type_click();
});

$(document).ready(function () {

/*	$(".kleurkiezer dd img").click(function() {
		$(this).after("<img src='../gfx/kleurkiezer_current.gif' alt='' class='selector' />");
	});*/

});