
/* 
 * Conditional IE6 fun
 *************************************************************/

/*@cc_on 
	@if (@_win32)
		try {document.execCommand('BackgroundImageCache', false, true);}catch(e){}
	@end
	@if (@_jscript_version >= 5.5 && @_jscript_version <= 5.7)
    	document.documentElement.className += ' ie6';
	@end
@*/


/* 
 * Core Javascript initiated on load
 *************************************************************/

$(function() {
	
	/* 
	 * General DOM  stuff
	 *************************************************************/
	
	/* feature click */
	
	$("#feature.link, #content-entries ul li")
		.click(function() {window.location.href = $('.link a', this).attr("href");})
		.css("cursor", "pointer");
		
	/* index items equal heights */
	
	equalHeights($("#content-entries ul li .content"));
	

});


/* 
 * Function for equalling element heights
 *************************************************************/

function equalHeights(elements) {
	
	var tallest = 0;
	var property = ($.browser.msie) ? "height" : "min-height";

	$(elements).each(function() {
		var height = $(this).height();
		if(height > tallest) tallest = height;

	});

	$(elements).css(property, tallest);
	
}