jQuery(document).ready(

	/*
	This function gets loaded when all the HTML, not including the portlets, is
	loaded.
	*/

	function() {

	}
);

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) {
		var test = jQuery("#layout-column_column-9 img").size();
		if (test == 0){
			jQuery("#banner").css('top', '0');
			jQuery("#content-wrapper").css('margin-top', '0');
			jQuery("#banner_header").css('display', 'none');
		}
	    
		jQuery("div.video-file").mouseover(function(){
		      jQuery(this).addClass("video-file-hover");
		}).mouseout(function(){
		   	  jQuery(this).removeClass("video-file-hover");
		});

	}
);

jQuery(document).last(

	/*
	This function gets loaded when everything, including the portlets, is on
	the page.
	*/

	function() {
	}
);