
jQuery(document).ready(function($) {
	$('span.bean_rating').each(function(){
		var value=parseFloat($(this).html());	
		$(this).html('');
		$(this).css('width',(value*24)+"px");
		});
	
	
	if($.browser.msie){
		var rc=$('.rc_main');
		rc.wrapInner('<div class="rc_content_ie"></div>');
		rc.prepend('<div class="rc_header"></div>');
		rc.append('<div class="rc_footer"></div>');
		rc.addClass('rc_ie');
	}else{
		$('.rc_main').wrapInner('<div class="rc_content"></div>');
	}
	
	$("#menu_footer>li.subparent>span").after('<span class="arrow" title="Click to view menu"></span>');
	
	 $("#menu_footer>li.subparent>span.arrow").click(function() { //When trigger is clicked...
 //Following events are applied to the subnav itself (moving subnav up and down)
 $(this).parent().find("ul.submenu").slideDown('slow').show(); //Drop down the subnav on click

 $(this).parent().hover(function() {
}, function(){
 $(this).parent().find("ul.submenu").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
 });

//Following events are applied to the trigger (Hover events for the trigger)
}).hover(function() {
 $(this).addClass("arrowhover"); //On hover over, add class "subhover"
 }, function(){ //On Hover Out
 $(this).removeClass("arrowhover"); //On hover out, remove class "subhover"
 });  


});
