function startUp() {
	$("#hoof").mouseover(function() {
		$(this).effect("bounce", {times: 3}, 300);
	});
	
	$(".mainbuttons").each(function() {
		$(this).mouseover(function() {
			$(this).effect("bounce", {times: 3}, 300);
		});	
	});
	
	if ($("#newreact")) {
		$("#addNew").click(function() {
			$("#newreact").show("blind", { direction: "vertical" }, 300);
			return false;
		});
		$("#cancelBtn").click(function() {
			$("#newreact").hide("blind", { direction: "vertical" }, 300);
			return false;
		});		
	}
	
	if ($(".vLinks")) {
		$(".vLinks").click(function() {
			var thisid = $(this).attr("id");
			$("#mainImg").html($("#img" + String(thisid)).html());
			$("#mainDes").html($("#des" + String(thisid)).html());
			$("#thistitle").html($("#name" + String(thisid)).html());
			return false;
		});
	}
	
	$("#rightBtn").click(function(){
		mleft = $("#glider").css("marginLeft");
		gwidth = $("#glider").width();
		awidth = $("#glider a.vLinks").width();
		alen =  ($("#glider a.vLinks").length - 3) * awidth * -1;
		
		newmleft = parseInt(mleft.replace("px", ""));
		
		if (newmleft <= alen) return false;
		
		mleft = $("#glider").animate({"marginLeft": (newmleft - awidth) + "px"}, 500 );
		 return false;
		
	});
	
	$("#leftBtn").click(function(){
		mleft = $("#glider").css("marginLeft");
		gwidth = $("#glider").width();
		awidth = $("#glider a.vLinks").width();
		
		newmleft = parseInt(mleft.replace("px", ""));
		
		if (newmleft >= 0)  return false;
		
		mleft = $("#glider").animate({"marginLeft": (newmleft + awidth) + "px"}, 500);
		 return false;
	});
}

$(document).ready(function() {
	startUp();
});



