﻿if(typeof(jQuery)!=='undefined'&&window.jQuery){
	jQuery(function($){
		if(typeof(CANVAS)!=='undefined'&&window.CANVAS){
			var $D = $('#entityDescription'),$B=$('#showEntityDescription');
			var $H = $D.outerHeight();
			CANVAS.UI.Helpers.EqualizeWidths($('#activeAttributes div.attributeBox'));
			CANVAS.UI.Helpers.EqualizeHeights($('#activeAttributes div.attributeBox'));
			if(!($('#vibeAddOn').hasClass('list'))){
				//CANVAS.UI.Helpers.EqualizeHeights($('div.cs-grid-productinfo'));
				//CANVAS.UI.Helpers.EqualizeHeights('div.productResult');
			}
//			if($D.length > 0 && $D.html().length>0){
//				$D.animate({
//					height: '1em',
//					opacity: 0
//				},500,'easeOutExpo',function(){
//					$D.hide();
//					CANVAS.UI.Helpers.EqualizeHeights('.cs-column');
//				});
//				$B
//					.text('Show More Information')
//					.click(function(e){
//						e.preventDefault();
//						if($B.text()==='Show More Information'){
//							$D.animate({
//								height: $H,
//								opacity: 100
//							},500,'easeInExpo',function(){
//								$B.text('Hide This Information');
//								CANVAS.UI.Helpers.EqualizeHeights('.cs-column');
//							});
//						}else{
//							$D.animate({
//								height: 0,
//								opacity: 0
//							},500,'easeOutExpo',function(){
//								$B.text('Show More Information');
//								$D.hide();
//								CANVAS.UI.Helpers.EqualizeHeights('.cs-column');
//							});
//						}
//					});				
//			}else{
//				$B.hide();
//			}
		}
	});
}