/*
* ECU Website Javascript Library [Intranet Generic]
* Scott Hall [Squiz.net.au]
* August 2009
* 
* Modification history:
* 
* 2009-11-13: Scott Hall
*             Updated show page info function
* 2009-11-05: Scott Hall
*             Added doc ready function for generic use and 'show-page-info' object manipulation
* 2009-10-01: Andrew Dunbar
*             Updated library to new formating.
*
*
*
* 
*/

/* START jQuery 'document ready' function for generic use *************************************** */
$j(document).ready(function(){

   // show page info pop up
   $j('a.show-page-info').click(function(){
      var documentWidth = $(document).width();
      var windowHeight = $(window).height();
      var popupWidth = 496;
      var popupHeight = 650;
      var posTop = 0 + windowHeight / 2 - popupHeight / 2;
      var posLeft = 0 + documentWidth / 2 - popupWidth / 2;
      newWindow = window.open(this.href,"mywindow","location=0,status=0,scrollbars=1,width="+popupWidth+",height="+popupHeight+",left="+posLeft+",top="+posTop);
      return false;
   });

   // hide reviewed string containing broken globals on login screen and simple edit
   $j("a.show-page-info:contains('%globals_')").parent().css("display","none");

   $j('#nav-global-tabbed li:last').addClass('last');

});
/* END jQuery 'document ready' function for generic use ***************************************** */