function showextendedmenu(menuitemid) { jpcOffset=$("#"+menuitemid+"").offset(); extenderLeft = jpcOffset.left + 1; $("#"+menuitemid+"extender").css('left', extenderLeft); $("#"+menuitemid+"extender").css('display', 'block'); } function rmvextendedmenu(menuitemid) { $("#"+menuitemid+"extender").css('display', 'none'); } function calculateContentHeight() { var contentHeight=94; var screenHeight=$(window).height(); var headerHeight=$("#header").height(); contentHeight=screenHeight-headerHeight; // height of the white space besides the header contentHeight-=230; // show 230px of the footer contentHeight-=94; // the height of the search box // divide the space by half ( top and bottom ) contentHeight/=2; contentHeight=Math.ceil(contentHeight); $("#content").css('marginTop' , contentHeight); contentHeight+=94; // add the height of the search box $("#content").height(contentHeight); } function setLoading() { var loadingContainer = $("
") .appendTo('body') .addClass('loadingContainer'); var loadingDiv = $("
") .appendTo('body') .addClass('divLoading') .html(''); } function removeLoading() { $(document).find("div.loadingContainer").each(function(){ $(this).remove(); }); $(document).find("div.divLoading").each(function(){ $(this).remove(); }); }