var flashvars = {};
var params = {};
var attributes = {};

function applyMaxHeight(selector, targetHeight){
	var maxHeight = targetHeight;
	$(selector).each(function(i){
		if($(this).height() > maxHeight) {
			maxHeight = $(this).height();
		}
	});
	$(selector).css("min-height",maxHeight);
}

attributes = { id: "weLoveBanner", name: "weLoveBanner" };
swfobject.embedSWF("swf/WeLoveBanner.swf", "flashAlt", "856", "260", "9.0.0", "swf/expressInstall.swf", flashvars, params, attributes);

params = { bgcolor: "#000000" };
attributes = { id: "flashContent", name: "flashContent" };
swfobject.embedSWF("swf/wltw_whatAreYouGoodAt.swf", "flashContent", "520", "348", "9.0.0", "includes/js/expressInstall.swf", flashvars, params, attributes);

if( stepcarousel != undefined ){
	stepcarousel.setup({
		galleryid: 'mygallery', //id of carousel DIV
		beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
		panelclass: 'panel', //class of panel DIVs each holding content
		autostep: {enable:false, moveby:1, pause:6000},
		panelbehavior: {speed:300, wraparound:true, persist:true},
		defaultbuttons: {enable: false, moveby: 1, leftnav: ['', -5, 80], rightnav: ['', -20, 80]},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	})
}

$(document).ready(function(){
	
	$(".basicAccordion").accordion({
		active: ".selected", // none selected when page is refreshed
		autoHeight: false,
		collapsible: true
	});

	applyMaxHeight(".caseStudy span.inside", 123);
	
});


