	
$(document).ready(function() {

	/* Expand single-collapse all others; panels with headers*/
	  $(".contentflap").hide();
	  $("#firstflap").show();
	  $(".headingflap").click(function()
	  {
		$(".contentflap").slideUp();
			$(this).next(".contentflap").slideToggle(500);
	  });

  /* Expand-collapse voor items in de rechtermenubalk */
	$(".msg_body").hide();
		$(".msg_head").toggle(function(){
			$(this).next(".msg_body").slideDown(100);
			}, function(){
		$(this).next(".msg_body").slideUp(300);
		}
	);

	/* voor items op product pagina's in het content panel */
	$(".msg_bodyrb").hide();
		$(".msg_headrb").toggle(function(){
			$(this).next(".msg_bodyrb").slideDown(100);
			}, function(){
		$(this).next(".msg_bodyrb").slideUp(300);
		}
	);

	// TOGGLE/SHOW divs using links(named with ..linx ;)
	$('[class^=toggle-item]').hide();
	$('[class^=linx]').click(function() {
		$('[class^=toggle-item]').hide();
		var $this = $(this);
		var x = $this.attr("className");
		$('.toggle-item-' + x).toggle();
		return false;
	});
	$('#hypdiv1').show();
});

/*Popup voor gebruik in a-hrefs*/
function Popup(pageURL, title) {
	var thewidth = screen.availWidth;
	var theheight= screen.availHeight;
	var targetWin = window.open (pageURL, title, 'toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=Yes, resizable=yes, copyhistory=no, width='+thewidth+', height='+theheight+', top=0, left=0');
}
	

