jQuery(function(){
	// rollover
	jQuery('.imgover').each(function(){
		this.osrc = jQuery(this).attr('src');
		this.rollover = new Image();
		this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_ojQuery1");
	}).hover(function(){
		jQuery(this).attr('src',this.rollover.src);
	},function(){
		jQuery(this).attr('src',this.osrc);
	});
	// scroll
	jQuery('a[@href^=#]').click(function() {
		var jQueryt = jQuery(this.hash);
		if (this.hash.length > 1 && jQueryt.size()) {
			jQuery.scrollTo(jQueryt, 400);
			return false;
		}
	});
	jQuery("div.topHeader div.rightHeader div.blockSearch input#CustomSearchForm_SearchForm_Search").val('Zoeken...');
	jQuery('div.rightHeader div.blockSearch input#CustomSearchForm_SearchForm_action_results').val('');
	jQuery('input#CustomSearchForm_SearchForm_Search').focus(function () {
		this.select();
	});
});

jQuery(function(){
	jQuery('dl.coupleQA').each(function(i){
		jQuery(this).children('dt').click(function(){
			/*var status = jQuery(this).hasClass('showFAQ');
			if(status){ 
				jQuery(this).removeClass('showFAQ');
				jQuery(this).parent().children().removeClass('showFAQ');
			}else{
				jQuery(this).addClass('showFAQ');
				jQuery(this).parent().children().addClass('showFAQ');
			}*/
			//alert(jQuery(this).parent().children('dd').text());
			jQuery(this).parent().children('dd').slideToggle("slow");
		});
	});
});

jQuery(document).ready(function() {	
	jQuery("<label for='CustomSearchForm_SearchForm_action_results' class='labelAdvanceSearch'>Zoekterm:</label>").insertBefore("div.blockAdvandeSearch div.blockSearch form#CustomSearchForm_SearchForm fieldset div#Search.field div.middleColumn");
	btnSubmit = jQuery("div.blockAdvandeSearch div.blockSearch form#CustomSearchForm_SearchForm fieldset input#CustomSearchForm_SearchForm_action_results.action").val('Zoeken');	
	jQuery(btnSubmit).insertAfter("div.blockAdvandeSearch div.blockSearch form#CustomSearchForm_SearchForm fieldset div#Search.field div.middleColumn");
});
