/* 
 * Product Detail User Interface
 * Allowed Functionality:
 * - TabTops
 * @required products.css
 */
//AC_FL_RunContent = 0;
$(function() {
    $(".tabtops").tabs();
    $('#faqs').accordion({
	header : 'dt',
	active : false,
	collapsible : true,
	change : function(event, ui){
	    ui.oldHeader.toggleClass('active');
	    ui.newHeader.toggleClass('active');
	}
    });
    if($('.ecohome #copy').length >0){
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '800',
			'height', '449',
			'src', 'http://www.ecologicalbuildingsystems.com/workspace/flash/pixelbrick/ebs',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'EBS',
			'bgcolor', '#ffffff',
			'name', 'EBS',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'http://www.ecologicalbuildingsystems.com/workspace/flash/pixelbrick/ebs',
			'salign', ''
			); //end AC code
	}
    }
//    $('#bd').ready(function(){
//	var tofix = $('#bd div.columnfix');
//	var divs = tofix.length > 0 ? tofix : $('#bd div').not('.yui-g');
//	$.each(divs, function fix(){
//	    var height = $(this).height();
//	    $(this).find('div.yui-u').height(height);
//	});
//    });
});
