( function( $ ) {

	$(document).ready(function() {

	
		/* Lightboxing */
		$('a.lightbox').lightBox({fixedNavigation:true});
	
		/* Rollover / click behaviour for post summaries */
		jQuery('.newsPostSummary').click(function() {
			var href = jQuery(this).find("a").attr("href");
			var target = "";
			if(jQuery(this).find("a").attr("target") == "_blank"){
				target = jQuery(this).find("a").attr("target");
			}
			
			if(href) {
				if(target == "_blank"){
					window.open(href);
				}else{
					window.location = href;
				}
			}
			return false;
		});
		
		jQuery('.newsPostSummary').mouseover(function() {
			jQuery(this).addClass("newsPostSummaryOver").find("a").addClass("newsPostSummaryOver");
		});
		
		jQuery('.newsPostSummary').mouseout(function() {
			jQuery(this).removeClass("newsPostSummaryOver").find("a").removeClass("newsPostSummaryOver");
		});		
			
	
		// Preload some images
		$.preLoadImages(
			"/content/themes/logicenergy/images/gui/bg_learnMore_over.png"
		);
		
		
		
	

	});
} )( jQuery ); // Avoid collisions with other libraries - pass 'jQuery' as the argument

