function initRollOverImages() {

	// ADJUST NAVIGATION
	var fre = location.href.replace(/(^https?\:\/\/[^\/]+|[^\/]+$)/g,'');

	$('.mainContent nav img.swap').each( function (i) {
		var pe = this.parentNode, hs;
		if ( pe && ( hs = pe.href ) ) {
			if ( fre.indexOf(hs.replace(/(^https?\:\/\/[^\/]+|[^\/]+$)/g,'')) > -1 ) {
				var dot = this.src.lastIndexOf('.');
				this.src = this.src.substr(0,dot) + '_on' + this.src.substr(dot,4);
				return;
			}
		}
	} );
	if ( $('.mainContent nav>ul>li>a>img[src*="_on"]').length > 1 ) {
		var tmp = $('.mainContent nav>ul>li>a>img[src*="_on"]').eq(0);
		tmp.attr( 'src', tmp.attr('src').replace('_on','') );
	}

	// IMAGE SWAP
	var image_cache = {};
	$('img.swap').each( function (i) {
		var imgsrc = this.src;
		if ( imgsrc.indexOf('_on.') > -1 ) {
			return;
		}
		var dot = imgsrc.lastIndexOf('.');
		var imgsrc_on = imgsrc.substr(0,dot) + '_on' + imgsrc.substr(dot,4);
		image_cache[imgsrc] = new Image;
		image_cache[imgsrc].src = imgsrc_on;
		$(this).hover(
			function () { this.src = imgsrc_on; },
			function () { this.src = imgsrc; }
		);
	} );

}
$(initRollOverImages);
$( function () {
	$('#footNav li:first-child').addClass('firstChild');
	if ( $('.RelatedLinkArea img').length > 0 ) {
		$('.RelatedLinkArea img').last().width(225);
	}
} );

