jQuery(document).ready(

	/*
	This function gets loaded when all the HTML, not including the portlets, is
	loaded.
	*/

	function() {
		jQuery('img.icon[title=Web Content überarbeiten]').remove(); //remove Icon to edit articles

		/* display the searchfield in IE6 correctly - have to replace dirty browser detection! */
		if(jQuery.browser.msie && !window.XMLHttpRequest) {
			if((jQuery('#portlet-wrapper-77 input[type=text]')).length > 0) {
				jQuery('div#portlet-wrapper-77 input[type=text]').css({
					'height': '16px',
					'border': 'none',
					'padding': '4px 0px 4px 4px',
					'background': 'none'
				});
				jQuery('#portlet-wrapper-77 form > table:first-child tr td:first-child').css({
					'width': '241px',
					'background': 'url(/asfinag-theme/images/site/searchfield_new_300px.gif) no-repeat scroll 0px 1px transparent'
				});
			}
			if((jQuery('#portlet-wrapper-77 input[type=image]')).length > 0) {
				jQuery('#portlet-wrapper-77 input[type=image]').css({
					'position': 'relative',
					'right': '0px',
					'top': '-2px',
					'top': '0px'
				});
			}
		}
	}
);

Liferay.Portlet.ready(

	/*
	This function gets loaded after each and every portlet on the page.

	portletId: the current portlet's id
	jQueryObj: the jQuery wrapped object of the current portlet
	*/

	function(portletId, jQueryObj) {
	}
);

jQuery(document).last(

	/*
	This function gets loaded when everything, including the portlets, is on
	the page.
	*/
	
	function() {
	/*	jQuery('div.icon-actions span:first-child').remove(); */ //remove Icon to edit articles
	}
	
);