	$(document).ready(function(){	
		$("#slider").easySlider();
	});

/**
 *  Tooltip Stuff
 */
	var tooltip = {
		defaultId : "tooltip", // id to use for the tooltip
		defaultParentId : "nextBtn", // id of item tip appears over

		// The offsets for page load
		defaultOffsetX : -30,
		defaultOffsetY : 40,

		// The offsets for when mousing over
		activeOffsetX : -30,
		activeOffsetY : 15,

		hidden : false, // flag for permanent hiding, like when parent is clicked

		check : function(){
			$("#nextBtn").mouseover(function(){tooltip.show();});
			$("#nextBtn").mouseout(function(){tooltip.hide();});
			$("#nextBtn").mousemove(function(e){tooltip.move(e);});
			$("#nextBtn").click(function(){tooltip.hide(true);});
			var div = jQuery('<div id="'+this.defaultId+'"><div class="top"></div><div class="bottom">Browse Our Online Portfolio!</div></div>');
			var offset = $("#"+this.defaultParentId).offset();
			div.css({"top":(offset.top+this.defaultOffsetY)+"px","left":(offset.left+this.defaultOffsetX)+"px"});
			div.appendTo(document.body);
		},
		hide : function(perm){
			$("#"+this.defaultId).hide();
			this.hidden = (this.hidden) ? this.hidden : perm;
		},
		show : function(){
			if(!this.hidden){
				$("#"+this.defaultId).show();
			}
		},
		move : function(e){
			$("#"+this.defaultId).css({top:e.pageY+this.activeOffsetY,left:e.pageX+this.activeOffsetX});
		}
	};

	$(document).ready(function(){
		tooltip.check();
	});
