if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1 || navigator.userAgent.toLowerCase().indexOf('safari') > -1) {
   $(window).load(function(){
      if ($(".list").height()-54 > $(".themes").height()) {
         $(".themes").height($(".list").height()-54);
      } else {
         $(".list").height($(".themes").height()+54);
      }
   });
} else {
   $(document).ready(function(){
      if ($(".list").height()-54 > $(".themes").height()) {
      //   $(".themes").height($(".list").height()-54);
      } else {
         $(".list").height($(".themes").height()+54);
      }
   });
}


function toggle_forum(caller, ul_id) {
	ul = document.getElementById(ul_id);
	if(!ul) return;
	var new_value = '';
	var new_display = 'inline';
	height = ul.offsetHeight;
	switch(caller.alt) {
		case '+':
			caller.alt='-';
			new_value = MINUS_IMG;
			new_display = 'block';
			break;
		case '-':
			caller.alt = '+';
			new_value = PLUS_IMG;
			new_display = 'none';
			break;
		default:
			return;
	}
	caller.src = new_value;
	ul.style.display = new_display;
	(height == 0) ? $(".list").height($(".list").height() + ul.offsetHeight) : $(".list").height($(".list").height() - height);
}
