/**
 * This file contains javascript needed by the system and modules,
 * and offers general browser fixes.
 * Thus it should never be changed on a project basis
 */

$(document).ready(function(){
	
	/**
	 * form module (handle static non-ajax forms)
	 */
	$('.js_form').each(function(){
		$(this).append(decodeURI('%3Cinput%20type=%22hidden%22%20name=%22ajax%22%20value=%22oke%22%20/%3E'));
		if ($(this).hasClass('js_labelless'))
		{
//			$(this).attr('onsubmit', function(){
//				$(this).find('.js_hint').val('');
//			});
			$(this).submit(function(){
				$(this).find('.js_hint').val('');
			});
		}
	});
	if ($('.js_bedankt').length > 0)
	{
		if ( typeof _gaq == 'object' )
			_gaq.push(['_trackPageview', location.pathname + '-bedankt']);
		else if ( typeof pageTracker == 'object' )
			pageTracker._trackPageview( location.pathname + '-bedankt' );
	}
});
