jQuery(document).ready(function() {
	// Boostrap everything here!
	
	// create rounded buttons (if necessary)
	if (typeof RoundedButtonsCreator == 'object') RoundedButtonsCreator.run();
		
	// resize the menu menu panels
	menuResize();
	
	// call the onload function from functions.js
	doOnload();
	
	// initialize font size popup
	var oLettertypePopup = new Popup({
			sContent: 		'<img src="fileadmin/templates/skins/elanwonen/images/lettergrootte.png" />'
		}, '#fontSizeButton');
	
});

var fnOldOnload = window.onload;
window.onload = function()
{
	if (typeof fnOldOnload == 'function') fnOldOnload();

	// custom form elements (this one has to be in window.onload to play nicely with dbutton!)
	CustomFormElements.init({
		bInlineStyle			: false,
		sReplace				: 'radio,select',
		aIgnoreIds				: ['calmonth', 'calyear']
	});
	
	// add handlers to the radio buttons
	//jQuery('.search-form').each(function(iCounter, oSearchForm){jQuery(oSearchForm).find('a.radio, a.checkbox').bind('click', SearchForm.handleChange);});

};


