function showhidequestions(){
	var this1 = document.getElementById('informatie_choice');
	var a = this1.options[this1.selectedIndex].value;
	jQuery('.all_questions').addClass('hidden');
	if(a == 1){
		jQuery('#question_brochure').removeClass('hidden');
		jQuery('#question_special').removeClass('hidden');
		jQuery('#question_opinion').removeClass('hidden');
		jQuery('#question_miss').removeClass('hidden');
		
	}
	if(a == 2){
		jQuery('#question_brochure').removeClass('hidden');
		jQuery('#question_special').removeClass('hidden');
		jQuery('#question_phone').removeClass('hidden');
		jQuery('#question_opinion').removeClass('hidden');
		jQuery('#question_miss').removeClass('hidden');
		
	}
	if(a == 3){
		jQuery('#question_brochure').removeClass('hidden');
		jQuery('#question_special').removeClass('hidden');
		jQuery('#question_people').removeClass('hidden');
		jQuery('#question_opinion').removeClass('hidden');
		jQuery('#question_miss').removeClass('hidden');
		
	}
	if(a == 4){
		jQuery('#question_horeca').removeClass('hidden');
		jQuery('#question_catering').removeClass('hidden');
		jQuery('#question_special').removeClass('hidden');
		jQuery('#question_wishes').removeClass('hidden');
		jQuery('#question_opinion').removeClass('hidden');
		jQuery('#question_miss').removeClass('hidden');
		
	}
}
function ShowPrintPopup(id){
	
}
function popup(adresa, w, h, scr){
	var l=(screen.availWidth-w)/2 , t=(screen.availHeight-h)/2;
	win=window.open(adresa,"_blank","width="+w+",height="+h+",left="+l+",top="+t+",statusbar=no,toolbar=no,scrollbars="+scr+",navbar=no");
	win.focus();
	}

	function slideSwitch() {
	    var $active = jQuery('#slideshow IMG.active');
	
	    if ( $active.length == 0 ) $active = jQuery('#slideshow IMG:last');
	
	    var $next =  $active.next().length ? $active.next()
	        : jQuery('#slideshow IMG:first');
	
	    $active.addClass('last-active');
	
	    $next.css({opacity: 0.0})
	        .addClass('active')
	        .animate({opacity: 1.0}, 1000, function() {
	            $active.removeClass('active last-active');
	            $active.css({opacity: 0.0});
	        });
	}

jQuery(document).ready(function() {
	jQuery('.art_content').find('.art_left_photo').parent().find('ul').css('list-style-position','inside');
	jQuery('.art_content').find('.art_left_photo').parent().find('ol').css('list-style-position','inside');
	//list-style-position:inside;

	var main_middle_container_left_column_height = jQuery("div.main_middle_container_left_column").height();
	var main_middle_container_center_column_height = jQuery("div.main_middle_container_center_column").height();
	var main_left_gradient_height = jQuery(".left_gradient").height();
	
//	if(main_middle_container_center_column_height < main_left_gradient_height){
//		jQuery("div.main_middle_container_center_column").height(main_left_gradient_height);
//	}
//	
//	if((main_middle_container_left_column_height>0) && (main_middle_container_center_column_height>0)){
//		if(main_middle_container_left_column_height > main_middle_container_center_column_height){
//			jQuery("div.main_middle_container_center_column").height(main_middle_container_left_column_height);
//		}else{
//			jQuery("div.main_middle_container_left_column").height(main_middle_container_center_column_height);
//		}
//	}

	jQuery("div.block").each(function(){
		
		var cBlockWidth = jQuery(this).width();
		/*body*/
		var leftBodyBlockWidth = jQuery(this).children("div.block_body").children("div.block_left_body").width();
		var rightBodyBlockWidth = jQuery(this).children("div.block_body").children("div.block_right_body").width();
		jQuery(this).children("div.block_body").children("div.block_middle_body").width(parseInt(cBlockWidth - leftBodyBlockWidth - rightBodyBlockWidth));
		
		/*head*/
		var leftHeadBlockWidth = jQuery(this).children("div.block_head").children("div.block_left_head").width();
		var rightHeadBlockWidth = jQuery(this).children("div.block_head").children("div.block_right_head").width();
		jQuery(this).children("div.block_head").children("div.block_middle_head").width(parseInt(cBlockWidth - leftHeadBlockWidth - rightHeadBlockWidth));
		
		/*footer*/
		var leftFooterBlockWidth = jQuery(this).children("div.block_footer").children("div.block_left_footer").width();
		var rightFooterBlockWidth = jQuery(this).children("div.block_footer").children("div.block_right_footer").width();
		jQuery(this).children("div.block_footer").children("div.block_middle_footer").width(parseInt(cBlockWidth - leftFooterBlockWidth - rightFooterBlockWidth));
		
	});
	
	jQuery("div.block").each(function(){
		
		var cBlockWidth = jQuery(this).width();
		/*body*/
		var leftBodyBlockWidth = jQuery(this).children("div.block_body").children("div.block_left_body_transparent").width();
		var rightBodyBlockWidth = jQuery(this).children("div.block_body").children("div.block_right_body_transparent").width();
		jQuery(this).children("div.block_body").children("div.block_middle_body_transparent").width(parseInt(cBlockWidth - leftBodyBlockWidth - rightBodyBlockWidth));
		
		/*head*/
		var leftHeadBlockWidth = jQuery(this).children("div.block_head").children("div.block_left_head").width();
		var rightHeadBlockWidth = jQuery(this).children("div.block_head").children("div.block_right_head").width();
		jQuery(this).children("div.block_head").children("div.block_middle_head").width(parseInt(cBlockWidth - leftHeadBlockWidth - rightHeadBlockWidth));
		
		/*footer*/
		var leftFooterBlockWidth = jQuery(this).children("div.block_footer").children("div.block_left_footer").width();
		var rightFooterBlockWidth = jQuery(this).children("div.block_footer").children("div.block_right_footer").width();
		jQuery(this).children("div.block_footer").children("div.block_middle_footer").width(parseInt(cBlockWidth - leftFooterBlockWidth - rightFooterBlockWidth));
	});

	jQuery("#contact_block_left").css("position", "absolute");
	//jQuery("#contact_block_left").css("bottom", parseInt(jQuery("#contact_block_left").height()));
	jQuery("#contact_block_left").css("bottom", 230);
	if(jQuery('#choose_mood_container').length>0){
		var cbl = parseInt(jQuery("#contact_block_left").height());
		var margins = cbl-57;
		if(margins > 175){
			jQuery("#contact_block_left").find('div.block_left_body_transparent').css('height',margins);
			jQuery("#contact_block_left").find('div.block_right_body_transparent').css('height',margins);
		}
		var cmc = parseInt(jQuery("#choose_mood_container").height());
		jQuery('div.main_middle_container_left_column').css("height",(cmc+cbl+60));
	}

	if(jQuery.browser.msie){
		if (parseInt(jQuery.browser.version) < 8){
			jQuery(".main_middle_container_left_column").css("padding-top", "45px");
		}
	}
	
	
	jQuery('.art_thumb').click(function() {
	
			var x = jQuery(".right").height();
			//alert(x);
		  
		  my_class = jQuery(this).attr('class');  
		
		  new_src = jQuery(this).attr('src');
		  par1 = jQuery(this).parent();
		  //par1 = jQuery(this).parent().parent();
		  jack = jQuery(par1).find('.art_main');
		  mack = jQuery(par1).find('.first'); 
		  old_src = jQuery(jack).attr('src');
		  
		  jQuery(jack).attr('src',new_src);
		  
		  if(my_class.search(/no_href/i)==-1)
			  jQuery(mack).attr('href',new_src.replace('200,200','800,600'));
		  
		  jQuery(this).attr('src',old_src);
		  
		  var x2 = jQuery(".right").height();
		  //alert(x2);
		  if (x2 < x)
		  	jQuery(".right").height(x);
		  		  
	});
	
	jQuery('.art_thumb2').click(function() {
	
			var x = jQuery(".right").height();
			//alert(x);
		  
		  my_class = jQuery(this).attr('class');  
		
		  new_src = jQuery(this).attr('src');
		  par1 = jQuery(this).parent();
		  //par1 = jQuery(this).parent().parent();
		  jack = jQuery(par1).find('.art_main');
		  mack = jQuery(par1).find('.first'); 
		  old_src = jQuery(jack).attr('src');
		  
		  jQuery(jack).attr('src',new_src);
		  
		  if(my_class.search(/no_href/i)==-1)
			  jQuery(mack).attr('href',new_src.replace('350,263','800,600'));
		  
		  jQuery(this).attr('src',old_src);
		  
		  var x2 = jQuery(".right").height();
		  //alert(x2);
		  if (x2 < x)
		  	jQuery(".right").height(x);
		  		  
	});

	
	jQuery("a.article").fancybox(
			{
				'titleShow'     		: false,
				'easingIn'				: 'easeOutBack',
				'easingOut'				: 'easeInBack',
				'hideOnContentClick'	: false

			}
	);
	
	jQuery('input[title!=""]').hint();
	/*
	jQuery("#slideshow img").each(function(){
		var thisID = jQuery(this).attr('id');
		if (thisID != "default"){
			jQuery(this).attr("style", "opacity: 0");
		}
	});*/
	/*jQuery('#slideshow').cycle({ 
    	fx:    'fade', 
    	cleartype: true, 
    	cleartypeNoBg: true,
    	speed:  2500 
 	});*/
	
	

});

	function hide_vraag(){
			jQuery(".data_container_right").empty();
			jQuery(".data_container_right").width(0);
			jQuery(".data_container_right").height(0);
			jQuery(".page_article_content").width(700);
			//alert(jQuery(".page_article_content").width());
			var maxHCaravans = 0;
			jQuery("div.caravans").each(function(){
				if (jQuery(this).height() > maxHCaravans){
					maxHCaravans = jQuery(this).height();
				}
			});
			//alert(maxHCaravans);
			jQuery("div.caravans").each(function(){
				if (jQuery(this).height() < maxHCaravans){
					jQuery(this).height(maxHCaravans);
				}
			});
	}

     function var_dump(data,addwhitespace,safety,level) {
        var rtrn = '';
        var dt,it,spaces = '';
        if(!level) {level = 1;}
        for(var i=0; i<level; i++) {
           spaces += '   ';
        }//end for i<level
        if(typeof(data) != 'object') {
           dt = data;
           if(typeof(data) == 'string') {
              if(addwhitespace == 'html') {
                 dt = dt.replace(/&/g,'&amp;');
                 dt = dt.replace(/>/g,'&gt;');
                 dt = dt.replace(/</g,'&lt;');
              }//end if addwhitespace == html
              dt = dt.replace(/\"/g,'\"');
              dt = '"' + dt + '"';
           }//end if typeof == string
           if(typeof(data) == 'function' && addwhitespace) {
              dt = new String(dt).replace(/\n/g,"\n"+spaces);
              if(addwhitespace == 'html') {
                 dt = dt.replace(/&/g,'&amp;');
                 dt = dt.replace(/>/g,'&gt;');
                 dt = dt.replace(/</g,'&lt;');
              }//end if addwhitespace == html
           }//end if typeof == function
           if(typeof(data) == 'undefined') {
              dt = 'undefined';
           }//end if typeof == undefined
           if(addwhitespace == 'html') {
              if(typeof(dt) != 'string') {
                 dt = new String(dt);
              }//end typeof != string
              dt = dt.replace(/ /g,"&nbsp;").replace(/\n/g,"<br>");
           }//end if addwhitespace == html
           return dt;
        }//end if typeof != object && != array
        for (var x in data) {
           if(safety && (level > safety)) {
              dt = '*RECURSION*';
           } else {
              try {
                 dt = var_dump(data[x],addwhitespace,safety,level+1);
              } catch (e) {continue;}
           }//end if-else level > safety
           it = var_dump(x,addwhitespace,safety,level+1);
           rtrn += it + ':' + dt + ',';
           if(addwhitespace) {
              rtrn += '\n'+spaces;
           }//end if addwhitespace
        }//end for...in
        if(addwhitespace) {
           rtrn = '{\n' + spaces + rtrn.substr(0,rtrn.length-(2+(level*3))) + '\n' + spaces.substr(0,spaces.length-3) + '}';
        } else {
           rtrn = '{' + rtrn.substr(0,rtrn.length-1) + '}';
        }//end if-else addwhitespace
        if(addwhitespace == 'html') {
           rtrn = rtrn.replace(/ /g,"&nbsp;").replace(/\n/g,"<br>");
        }//end if addwhitespace == html
        return rtrn;
     }//end function var_dump

	

