$j = jQuery.noConflict();
$j(document).ready(function() {
	if($j('.ih_controller_list').length) {
		var holderHeight = $j('.hoverer_content .topic_description_def').height();
		$j('.ih_right .hoverer_content').append($j('.ih_controller_list li .topic_description'));
		$j('.hoverer_content .topic_description').each(function(){
			if($j(this).height() < holderHeight){
				$j(this).height(holderHeight);
			}
		});
		Cufon.replace('.hoverer_content h2');
		$j('.ih_controller_list > li > a').hover(
			function(){
				$j(this).css('color','#ffffff');
				Cufon.replace('.ih_controller_list > li > a > span');
				$j('.hoverer_content .topic_description_def').css('visibility','hidden');
				if($j('.hoverer_content .topic_description').eq($j(this).parent().index()).height() <= holderHeight){
					$j('.hoverer_content .topic_description').eq($j(this).parent().index()).stop(true,true).fadeIn('def',function(){
						$j('.hoverer_content .topic_description_def').css('visibility','visible');
					});
				}
				else {
					$j('.hoverer_content .topic_description_def').stop(true,true).animate({height: $j('.hoverer_content .topic_description').eq($j(this).parent().index()).height()},'fast');
					$j('.hoverer_content .topic_description').eq($j(this).parent().index()).stop(true,true).fadeIn('def',function(){
						$j('.hoverer_content .topic_description_def').css('visibility','visible');
					});
				}
			},
			function(){
				$j(this).css('color','#d3bbd9');
				Cufon.replace('.ih_controller_list > li > a > span');
				if($j('.hoverer_content .topic_description_def').height() > holderHeight){
					$j('.hoverer_content .topic_description_def').stop(true,true).animate({height: holderHeight},'fast');
				}				
				$j('.hoverer_content .topic_description').eq($j(this).parent().index()).fadeOut('def');
				
			}
		);
	}
});
