$(document).ready(function(){
   /*
    $("li h3").click(function(){
        
        $('li[class="active"]').removeAttr('class').children('ul').hide();
        if ($(this).parent().attr("class","active").children('ul').length > 0 ) {
            $(this).parent().attr("class","active").children('ul').show();
            
            return false;
        } 
        
    });
    */
    function externalLinks()
    {
        if (!document.getElementsByTagName) return;
        var anchors = document.getElementsByTagName("a");
        for (var i=0; i<anchors.length; i++)
        {
            var anchor = anchors[i];
            if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "ext")
            {
               anchor.target = "_blank";
            }
        }
    }
    externalLinks();
    $(document).find(".datepicker").each(function (i) {
		$(".datepicker").datepicker({
			dateFormat: 'dd/mm/yy',
			minDate: 'null',
			showAnim: '', 
			showOn: 'both',
			buttonImage: '/images/calendar.gif',
			buttonImageOnly: true ,
			buttonText: 'Kies datum'
		});
	});
});

$(window).load(function(){
	
	var rightHeight = $("#content_center").outerHeight();
	var leftHeight = $("#content_left").outerHeight();
	
	if(leftHeight < rightHeight) {
		$("#content_left").height(rightHeight + 110);
	}
        
    
	
});
