$(function(){ 

  /* In-Field Label */
  
  $("label.infield").inFieldLabels(); 
  
  /* smartColumns - Dashboard */
  
	$('a[href^="http://"]')	.attr({ target: "_blank" });
	function smartColumns() {
		$("div.modules").css({ 'width' : "100%"});
		var colWrap = $("div.modules").width();
		var colNum = Math.floor(colWrap / 300);
		var colFixed = Math.floor(colWrap / colNum);
		$("div.modules").css({ 'width' : colWrap});
		$("div.modules div.module").css({ 'width' : colFixed});
	}	
	smartColumns();	
	$(window).resize(function () {
		smartColumns();
	}); 

});
