var filePath = "";
var langSuffix = "";
(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)
jQuery.preLoadImages(filePath+"img/canadaruns"+langSuffix+"_over.png",filePath+"img/forces"+langSuffix+"_over.png",filePath+"img/mff"+langSuffix+"_over.png",filePath+"img/mra"+langSuffix+"_over.png",filePath+"img/running_room"+langSuffix+"_over.png",filePath+"img/soldieron"+langSuffix+"_over.png");
$(document).ready( function () {
							 $("#bottomnav ul li a").hoverIntent(function() {
																	var temp = $(this).find('img').attr("src");
																	temp = temp.replace("_blue.png","_over.png");
																	$(this).find('img').attr("src", temp);
																	$(this).find('img').animate({
																					height: '64px',
																					width:'123px',
																					marginTop:'-5px',
																					marginLeft:'-9px',
																					marginRight:'-9px'
																					},500);
																	},
																	function() {
																	var temp = $(this).find('img').attr("src");
																	temp = temp.replace("_over.png","_blue.png");
																	$(this).find('img').attr("src", temp);
																	$(this).find('img').animate({
																					height: '55px',
																					width:'105px',
																					marginTop:'0px',
																					marginLeft:'0px',
																					marginRight:'0px'
																					},500);
																	});
							 });