jQuery.noConflict();

/*
	# ExtraContent (jQuery) #
	
	AUTHOR:	Adam Merrifield <http://adam.merrifield.ca>
			Giuseppe Caruso <http://www.bonsai-studio.net/>
	VERSION: r1.4.2
	DATE: 12-16-10 09:40

	USAGE:
	- be sure to include a copy of the jQuery libraray in the <head>
		before the inclusion of this function
	- noConflict mode is optional but highly recommended
	- call this script in the <head>
	- change the value of ecValue to match the number of ExtraContent
		areas in your theme
*/
jQuery(document).ready(function(){
	var extraContent =  (function() {
		// change ecValue to suit your theme
		var ecValue = 4;
		for (i=1;i<=ecValue;i++)
		{
			jQuery('#myExtraContent'+i+' script').remove();
			jQuery('#myExtraContent'+i).appendTo('#extraContainer'+i);
		}
	})();
});

//toolbar seperator & css exceptions
  jQuery(document).ready(function() {
    jQuery("#toolbar ul li a").prepend("<span></span>");
    jQuery("#toolbar > ul > li:last").addClass("red");
    jQuery("#toolbar ul li a span:first").addClass("noLine");
    jQuery("#content div.blog-entry-body:last").addClass("noBottom");
    //$("#blog-archives").before("<h3>nieuwsarchief</h3>");
    jQuery("#b2b").click(function(){
    	jQuery("#b2bForm").animate({top:'25px'}, 1000)
    });
    jQuery("#b2bForm img").click(function(){
    	jQuery("#b2bForm").animate({top:'-140px'}, 500)
    });
  });
  
//menu builder
jQuery(document).ready(function() {

	jQuery("#toolbar li").has("ul").addClass("hasChild"); /* Adds class to any nav items with child li items */

	jQuery("#toolbar li li li:first-child").each(function(){jQuery(this).addClass("firstMenuItem"); }); /* Adds class to first menu item of sub menu */
	jQuery("#toolbar li li:last-child").each(function(){jQuery(this).addClass("lastMenuItem"); }); /* Adds class to last menu item of sub menu */

	jQuery("#toolbar ul li").hover(function() { 
					jQuery(this).find(">ul").stop('true','true').animate({opacity: 'toggle', height: 'toggle'}, 300); //Drop down the sub nav on hover
	});
				
});
//end menubuilder
