jQuery(document).ready(function($) {
  // Rounded corners:
  
    $('#userStatusBar').corner({
        tl: { radius: 6 }, 
        tr: { radius: 6 }, 
        bl: { radius: 0 }, 
        br: { radius: 0 },
        autoPad: false}); 
    $('.loginMenu').corner({
        tl: { radius: 4 }, 
        tr: { radius: 4 }, 
        bl: { radius: 4 }, 
        br: { radius: 4 },
        autoPad: false}); 
    $('#infoTextBar').corner({
        tl: { radius: 0 }, 
        tr: { radius: 0 }, 
        bl: { radius: 6 }, 
        br: { radius: 6 },
        autoPad: false}); 
    $('.friend').corner({
        tl: { radius: 4 }, 
        tr: { radius: 4 }, 
        bl: { radius: 4 }, 
        br: { radius: 4 },
        autoPad: false}); 

});

var loadingAnimation = "<img class='loadingAnimation' src='themes/modern/images/loadingAnimation.gif' width=208 height=13 style='border:0px;'>";

$JQ.extend($JQ.noah, {
    addCurvyCornersToPresentationDivs: function()
    {
        $JQ('div.template').livequery(function(){$JQ(this).corner({
            tl: { radius: 6 }, 
            tr: { radius: 6 }, 
            bl: { radius: 0 }, 
            br: { radius: 0 },
            autoPad: false});}); 
        $JQ('div.forCurvyFooter').livequery(function(){$JQ(this).corner({
            tl: { radius: 0 }, 
            tr: { radius: 0 }, 
            bl: { radius: 6 }, 
            br: { radius: 6 },
            autoPad: false});}); 
    }
});




jQuery(document).ready(function () {
		jQuery("#footerWrap .alpha").each(function(){
				var left_height = jQuery(this).children(".box").height();
				var right_height = jQuery(this).next(".omega").children(".box").height();
				if( left_height > right_height ){ jQuery(this).next(".omega").children(".box").css('height',left_height )  }
				if( left_height < right_height ){ jQuery(this).children(".box").css('height',right_height ) }
     	});
     	
     	var max = null;
     	
     	jQuery(".row_wrap").each(function() {
     			jQuery(this).children('.trim').children('.entry').each(function() {
     					if ( !max || max.height() < jQuery(this).height() ){
     						max = jQuery(this);
     					}
     			});
     			var row_height = jQuery(max).height();
     			jQuery(this).children('.trim').children('.entry').height(row_height);
     			var max = null;
     	});
     	
     	jQuery('.category-image-block img').mouseover(function() {
     			jQuery(this).stop().fadeTo(400, 0.2);
     	});
     	jQuery('.category-image-block img').mouseout(function() {
     			jQuery(this).stop().fadeTo(500, 1.0);
     	});
     	
     	jQuery('.post-image-block img').mouseover(function() {
     			jQuery(this).stop().fadeTo(400, 0.2);
     	});
     	jQuery('.post-image-block img').mouseout(function() {
     			jQuery(this).stop().fadeTo(500, 1.0);
     	});
     	
     	jQuery('img.menu_class').click(function () {
     			jQuery('ul.the_menu').slideToggle('slow');
     	});
});
