$(document).ready(function(){
	$('#fisheye').Fisheye({
		maxWidth: 81,
		items: 'a',
		itemsText: 'span',
		container: '.fisheyeContainter',
		itemWidth: 51,
		proximity: 73,
		halign : 'center'
	});

	$(".link").click(function() {
		$("#scroll").css("overflow","visible");
		$("#fix").css("display","none");
		var thisLink 
		thisLink = $(this).attr("id");
		$("#container").slideUp("slow", function(){
			$("#content").show();
			$("#image").show();
			$("#pic").attr("src", "images/" + thisLink + ".jpg");
			$("#container").css("background-image","url(images/cont.jpg)");
			sendHttpRequest(thisLink + ".php","displayResults");
			$("#container").slideDown("slow", function(){
				$("#scroll").css("overflow","auto");
			});
		});
	});
	
	$(".link2").click(function() {
		$("#scroll").css("overflow","visible");
		$("#fix").css("display","none");
		var thisLink 
		thisLink = $(this).attr("id");
		$("#container").slideUp("slow", function(){
			$("#content").show();
			$("#image").show();
			splitValues = thisLink.split(".")
			$("#pic").attr("src", "images/" + splitValues[0] + ".jpg");
			$("#container").css("background-image","url(images/cont.jpg)");
			sendHttpRequest(thisLink,"displayResults");
			$("#container").slideDown("slow", function(){
				$("#scroll").css("overflow","auto");
			});
		});
	});
	

	
});

function gotoMain(){
	$(function(){
		$("#scroll").css("overflow","visible");
		$("#container").slideUp("slow", function(){
			$("#container").css("background-image","none");
			window.location ="index.php"
		});
	});
}

