/* Hide Site Until All Content Pieces Load */
jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],
{
    random: function(a, i, m, r) {
        if (i == 0) {
            jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
        };
        return i == jQuery.jQueryRandom;
    }
})

if($('#Pages, #Home')!==null){
$('#Pages, #Home').css('display', 'none');
}

/* Immediately Load JS */
if($('#readyTest')!==null){
$('#readyTest').corner();
}


/* Only load JS when DOM is fully loaded */
$(document).ready(function(){ 
        /* PNG Fix for IE 5.5/6 */
        $(document).pngFix();


        /* Hide Site Until All Content Pieces Load */
        if($('#Pages, #Home')!==null){
        $('#Pages, #Home').css('display', '');
        }
    }); 


$(function(){
$('#webapp7430pagination li a').addClass('cssbutton').addClass('myCorner');
var current_page = $('.pag-current').html();
var new_style = '<a href="">'+current_page+'</a>';
$('.pag-current').html(new_style);
$('.pag-current a').addClass('cssbutton').addClass('myCorner').click(function(e){e.preventDefault();});


/* add class to eliminate right border from last item in footer links nav*/
if($('#footer li:last')!==null){
$('#footer li:last').addClass('last');
}

/* rounded corners */
if($('.myCorner')!==null){
$('.myCorner').corner("4px");
}

});


// fired right away
$('#Pages, #Home').css('display', 'none');

$(document).ready(function() {
   // fired on DOM ready

}); 

