//window.$ = jQuery;
jQuery(document).ready(
function() {
  
});


//jQuery(document).ready(

/*
 This function gets loaded when all the HTML, not including the portlets, is
 loaded.
 */
function linkLocation(location) {
    window.location.href = location;
}
function changeTo(callerId, newSrc) {
    document.getElementById(callerId).src = newSrc;
}

//);
 
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() {
        }
        );

/*$.ready(function()
 {
 $('.hovered')
 .mouseover(function()
 {
 $(this).addClass('hover');
 })
 .mouseout(function()
 {
 $(this).removeClass('hover');
 });
 }*/