	var scrollPos = 0;
	var currPage = 0;
	var totPage = 0;
	var slideSpeed = 700;
	
	$(document).ready(function(){
		//alert("ready");
		//$(document).pngFix(); 
		//$("#toolTip").css({ 'opacity' : 0.9 });
		$("#prevButton").animate({ opacity: 0.4 });
		$num = ($("#scrollContent").children().length * 190);
		totPage = Math.ceil($("#scrollContent").children().length / 4);
		//alert(totPage);
		//alert($num);
		$("#scrollContent").css({ 'width' : $num});
		
		$(".scrollItem").mouseover(function(e){
			//alert("hi");
			$("#toolTip").show();
			$data = $(this).attr("rel");
			//alert($data);
			//$("#toolTip").fadeIn(100);
			$("#toolTipData").html($data);
			
			$mPosX = e.pageX - $("#toolTip").width() / 2;
			$mPosY = e.pageY - $("#toolTip").height() - 10;
			//alert($mPosX);
			$("#toolTip").css({ 'left' : $mPosX,
								'top' : $mPosY });
			
			
		});
		
		$(".scrollItem").mousemove(function(e){
			//alert("hi");
			//$("#toolTip").show();
			$mPosX = e.pageX - $("#toolTip").width() / 2;
			$mPosY = e.pageY - $("#toolTip").height() - 10;
			//alert($mPosX);
			$("#toolTip").css({ 'left' : $mPosX,
								'top' : $mPosY });
			
			
		});
		
		$(".scrollItem").mouseout(function(){
			//alert("hi");
			//$("#toolTip").fadeOut(100);
			$("#toolTip").hide();
		});
		
	});
	
	function nextScroll(){
		//alert("hi");
		if(currPage < totPage-1){
			currPage++;
			scrollPos += 755;
			$("#scrollContent").animate({left : -scrollPos}, slideSpeed);
		}
		
		if(currPage == totPage-1){
			//alert("last");
			
			$("#nextButton").animate({ opacity: 0.4 });
			
		}
		
		$("#prevButton").animate({ opacity: 1 });
		//alert(document.getElementById("scrollContent").style.left);
	}
	
	function prevScroll(){
		//alert("hi");
		if(currPage > 0){
			currPage--;
			scrollPos -= 755;
			$("#scrollContent").animate({left : -scrollPos}, slideSpeed);
		}
		
		if(currPage == 0){
			$("#prevButton").animate({ opacity: 0.4 });
		}
		$("#nextButton").animate({ opacity: 1 });
		
		//alert(document.getElementById("scrollContent").style.left);
	}
