$(document).ready(function(){
	// Assign css width/height to specially classed elements
	$("div[class*='jq-width-']").each(function(){
		var dim_data = $(this).attr('class').match(/jq\-width\-(\d+)/);
		$(this).css('width',dim_data[1]+'px');
	});

	// Assign css width/height to specially classed elements
	$("div[class*='jq-height-']").each(function(){
		var dim_data = $(this).attr('class').match(/jq\-height\-(\d+)/);
		$(this).css('height',dim_data[1]+'px');
	});
	
	// Boomtown specs tables with colspans
	$('.specs td[colspan=4]').addClass('subhead');
	
	$('#accordion').accordion({
		active:0,
		autoHeight:false
	});
	
	$("a.new-win").click(function(){
		window.open($(this).attr('href'));
		return false;
	});
	
});