// to create banner menu on /productinfo/risk

function moveup(element) {
	$(element).addClass("animated");

	$(element).animate({paddingTop: "15px"},150);
	$("#" + $(element).attr("rel")).animate({top: "-10px"},150);
}

function movedown(element) {
	$(element).animate({paddingTop: "6px"},100);
	$("#" + $(element).attr("rel")).animate({top: "0px"},100);	
}

function bindEvents() {
	//move up menuitem when hovered over
	$("#LinkBanner ul li").mouseover(function () {
		if ($(this).hasClass("animated") == true || $(this).hasClass("selectedLink") == true) {
			//already animated or the selected link
		} else {		
			$(this).addClass("animated");
			moveup(this);
		};
	});
	//move down menuitem when hovered out
	$("#LinkBanner ul li").hover(
		function(){return false;}, //in
		function () {$(this).removeClass("animated");movedown(this);} //out
	);
}

$(document).ready(function() {
	bindEvents();
});

