// remove padding from empty itemHighlight divs
//$ ("div.itemHighlight:not(:has(h2))").css("padding","0");

//add border top if any extracontent
$ ("#nid-extracontent:has(h2)").css("border-top","1px solid #ddd");

// change innerCallOut h2s to p tags
jQuery('div.innerCallOut h2').each(function(i){
  jQuery(this).replaceWith("<p>" + jQuery(this).html() + "<\/p>");
});

// if introText contains an image, reduce the width the h1
var el = $("span.introText:has(img)");
if(el.length > 0)
	$('h1'
).addClass('shorter');

// if itemHighlight contains an image, increase the ul margin
var el = $(".itemHighlight:has(img)");
if(el.length > 0)
	$('ul'
).addClass('img');
