﻿var speed = 300;
function hover() {
	$('.cplist').find('a').hover(function(){										  
			var father = $(this).parent().parent();
			var f_l =father.find('a').length;
			//father.find('a.on').animate({ height: 35 }, {duration:speed,queue:false});
			father.find('a').removeClass();
			$(this).addClass('on');
			
			/*for(i=0;i<f_l;i++) {
				if(father.find('a:eq('+i+')').height()>35){
					father.find('a:eq('+i+')').stop();
					father.find('a:eq('+i+')').animate({ height: 35 }, {duration:speed,queue:false});
					}
				}*/
			
			father.find('a').animate({ height: 33 }, {duration:speed,queue:false});
			//father.find('a.not(.on .cpintro)').fadeOut("slow"); 
			$(this).stop();
			$(this).animate({ height: 117 },speed);	
			
			/*if($(this).find('.cpintro').is(':visible')){
				
				
				
				}
			else{
			
			$(this).find('.cpintro').fadeIn("slow");
			}*/
			//var father.find('a').length;
			//alert(father.find('a').height())			
			
			
			
			//}
			
		/*if($(this).find('.cpintro').height()==0){		
			mh.stop();
			$('.cplist a').find('.cpintro').stop();
			
			$('.cplist a').find('.cpintro').animate({ height: 0 }, speed);	
			mh.animate({ height: 80 }, speed);	
			
		}*/
		
		
										  })
}
	
$(function(){

	hover();
});
