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) {
	}
);

jQuery(document).last(

	/*
	This function gets loaded when everything, including the portlets, is on
	the page.
	*/

	function() {
	}
);





////////////////////////////////
//TEST OF BROADCAST/////////////
////////////////////////////////


jQuery(document).ready(function(){
		
			/*	
			jQuery("#nav-one li").hover(
				function(){ jQuery("ul", this).fadeIn("fast"); }, 
				function() { } 
			*/	

			jQuery("#nav-one li a img").hover(
				function(){ 
					this.src = this.src.replace ( /\_off.jpg$/, '_on.jpg' );
				//	alert(this.src + "  on my click ONE");
					},					
				function(){
					this.src = this.src.replace ( /\_on.jpg$/, '_off.jpg' );

				//	alert(this.src + "  on my click TWO");
					}
			);	

		       jQuery("#nav-two li a img").hover(

				function(){
                                        this.src = this.src.replace ( /\_off.jpg$/, '_on.jpg' );
                 //                       alert(this.src + "  on my click ONE");
                                        },
                                function(){
                                        this.src = this.src.replace ( /\_on.jpg$/, '_off.jpg' );

                  //                      alert(this.src + "  on my click TWO");
                                        }



			);
	  	if (document.all) {
				jQuery("#nav-one li").hoverClass ("sfHover");
				jQuery("#nav-two li").hoverClass ("sfHover");	
				jQuery("#borderColor").click ("poop");
			}
	  });
	  
		jQuery.fn.hoverClass = function(c) {
			return this.each(function(){
				jQuery(this).hover( 
					function() { jQuery(this).addClass(c); },
					function() { jQuery(this).removeClass(c); }
				);
			});
		};	




