// conflict handeling met Prototype library
jQuery.noConflict(); 

	/* tooltip
	jQuery(function(){	
		jQuery('a.tooltip').Tooltip({
			track: true,
			showURL: false,
			delay: 0
		});
	});		
	*/
	// juiste velden weergeven bij inschrijf categorie keuze
	function makeSublist(parent,child)
	{
		jQuery("body").append("<select style='display:none' id='" + parent + child + "'></select>");
		jQuery('#' + parent + child).html(jQuery("#" + child + " option"));
		
		// hier wordt de waarde aangepast
		jQuery('#' + parent).change(function()
		{
			var parentValue = jQuery('#' + parent).attr('value');
			jQuery('#' + child).html(jQuery("#" + parent + child + " ." + parentValue).clone());
		});
	}


jQuery(document).ready(function()
{
	makeSublist('categorie','prijsVan');	
	makeSublist('categorie','prijsTot');
	
	jQuery("#house-image").html("<img src=\"http://www.propper.nl/images/layout/default_kantoor.jpg\" />");
	
	jQuery("a.tooltip").mouseover(function() 
	{	
		var current = jQuery(this);
		var title = current.attr("title");
		jQuery("#house-image").html("<img src=\"" + title + "\" />");
		
	}).mouseout(function() { jQuery("#house-image").html(""); });
	
});


