	$(document).ready(
		
		function()
		{

			// Fetch forms defaultvalues
			$.each(
				$("input:text.app-cmd-defaultvalue,textarea.app-cmd-defaultvalue"),
				function() { makeDefaultValue(this); }
			);

			// Fecth image popups
			$.each( $(".app-cmd-overlay-image"), function(){
				var src = $(this).attr('rel');
				if (src) {
					$(this).css('cursor','pointer').bind('click', function(){App.showOverlayImage(src, 700, 500);} );
				}
			});
			
		}
		
	);
	
	// report js errors - we looove different browseres - wiat a minute - we don't :o) 
	window.onerror = function(  msg, url, line )
	{
		if ( typeof(url) == 'undefined' || url == '' || url.indexOf("http://www.amio") == -1 ) return;
		$.post('/_aj'+'ax/appli'+'cation/report_js'+'_error.p'+'hp', { msg: msg, url: url, line: line } );
	};
