jQuery(document).ready(function()
{
	SetExternalLinks();
	equaliseDetailList();

});

function SetExternalLinks(){
	/*
	Purpose: checks all <a>'s in the doc, if it has a rel attribute of 'external', sets to open in new window
	usage: 
	*/
	$('a[rel=external]').click(function(){ window.open(this.href); return false; });
}

function equaliseDetailList() {
	for(i=0; i< $('.detail-list > li').length; i++) {
		if(i%2 == 0) {
			if($('.detail-list > li').eq(i).height() >= $('.detail-list > li').eq(i+1).height()) {
				$('.detail-list > li').eq(i+1).height($('.detail-list > li').eq(i).height());
			} else {
				$('.detail-list > li').eq(i).height($('.detail-list > li').eq(i+1).height());
			}
		}
	}
}

