jQuery.fn.equalCols = function(options){
	var defaults = { 
	    offset: 0 
	  };
	var options = $.extend({}, defaults, options); 
	var sortNumber = function(a,b){return b - a;};
	var heights = [];
	//Push each height into an array
	$(this).each(function(){
		heights.push($(this).height());
	});
	heights.sort(sortNumber);
	var maxHeight = heights[0];
	return this.each(function(){
		//Set each column to the max height
		var total = maxHeight-options.offset;
		$(this).css({'height': total});
	});
};

function embed_swf(file, id, width, height) {

  var flashvars = false;
  var params = {
    wmode: 'opaque'
  };
  var attributes = {
    id: id,
    name: "flashcontent_"+id
  };
  swfobject.embedSWF(file, id, width, height, "9.0.0","", flashvars, params, attributes);
};
