
	function do_footer()
	{
		doc_h =  $(document).height();
		foot_y = findPosY( $('#showFooter')[0] );
		foot_h = $('#showFooter').height();
		
		main_h = $('#mainWrapper').height();
		main_y =  findPosY( $('#mainWrapper')[0] );
		
		if ( doc_h > (foot_y - foot_h) ){
			$('#mainWrapper').height( main_h + main_y + doc_h - (foot_h +foot_h + foot_y) - 1 );
		}
	}
	
	$(document).ready(function(){
		
		$('#broadcast_now').mouseover(function(){ $(this).attr('src', www_root + 'public/images/broadcast_now_on.png'); });
		$('#broadcast_now').mouseout(function(){ $(this).attr('src', www_root + 'public/images/broadcast_now.png'); });
		
		$('#user_action').mouseover(function(){ $(this).attr('src', www_root + 'public/images/' + $(this).attr('title') + '_on.png'); });
		$('#user_action').mouseout(function(){ $(this).attr('src', www_root + 'public/images/' + $(this).attr('title') + '.png'); });
	});
	
  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curtop += obj.y;
    return curtop;
  }