$(document).ready(function() {
	$('.toolkit_side_banner').click(function() {
		$(this).children('img').attr('src', 'images/lower-level-banner-2.gif');
	});

	if ($(".fancybox").length) {
		$(".fancybox").fancybox({
			'width': 940,
			'height': 635,
			'padding': 0,
			'hideOnOverlayClick': false,
			'autoScale': false,
			'overlayOpacity': 0.8,
			'showCloseButton': false,
			'titleShow': false,
			'transitionIn': 'none',
			'transitionOut': 'none',
			'type': 'iframe',
			'onComplete': function() {
				$("#fancybox-wrap").css('top', $('html').scrollTop() - 15 + 'px');
			}
		});
	}
});

/*
//SET AN ONLOAD EVENT
jQuery(function($) {
	loadImageEvents();
});


function loadImageEvents() {
	$('div[id*=image_]').each(function() {
		
		//ADD HOVER EVENT TO IMAGE
		$(this).hover(function() {
			$('a[href=' + $(this).parent().attr('href') + ']').addClass('hover');
		}, function() {
			$('a[href=' + $(this).parent().attr('href') + ']').removeClass('hover');						
		});
		
		//ADD HOVER EVENT TO MENU LINK
		$('li a[href=' + $(this).parent().attr('href') + ']').hover(function() {
			$('a[href=' + $(this).attr('href') + '] div[id*=image_]').addClass('hover');
		}, function() {
			$('a[href=' + $(this).attr('href') + '] div[id*=image_]').removeClass('hover');						
		});
		
	});
}
*/
