/* Jquery Script */

/* Uses Ariel Flesler's ScrollTo plugin
   Link: http://flesler.blogspot.com/2007/10/jqueryscrollto.html
*/

$(document).ready(function() {
	$("#linkbar a").click(function() {
		$("#linkbar a").removeClass("current");
		$(this).addClass("current");
		
		var div_select = $(this).attr('id');
		
		$.scrollTo("div." + div_select + "", 500, {offset: -145});
		
		return false;
	});
	
	// Large Showcase
	
	$("#showcase").easySlider({
		continuous: true,
		auto: true,
		vertical: true,
		speed: 1200,
		pause: 2000,
		prevText: ' ',
		nextText: ' '
	});
	
	// Small Showcase
	
	$("#project_gallery").easySlider({
		continuous: true,
		speed: 800,
		prevText: ' ',
		prevId: 'small_prevBtn',
		nextText: ' ',
		nextId: 'small_nextBtn'
	});
	
	// Small Showcase FancyBox
	

	
	// Input Removal and Retrieval of Values (Name, Email, etc)
	
	$("#contact input:eq(0), #contact input:eq(1), #contact input:eq(2) ").each(function() {
	   var default_value = this.value;
	   $(this).focus(function() {
	       if(this.value == default_value) {
	           this.value = '';
	       }
	   });
	   $(this).blur(function() {
	       if(this.value == '') {
	           this.value = default_value;
	       }
	   });
	});
});

/* Jquery Script */

/* Uses Ariel Flesler's ScrollTo plugin
   Link: http://flesler.blogspot.com/2007/10/jqueryscrollto.html
*/

// Plugin Licensing / Authoring Information:


// EasySlider1.5

/*
 * 	Easy Slider 1.5 - jQuery plugin
 *	written by Alen Grakalic	
 *	http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
 *
 *	Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
 *	Dual licensed under the MIT (MIT-LICENSE.txt)
 *	and GPL (GPL-LICENSE.txt) licenses.
 *
 *	Built for jQuery library
 *	http://jquery.com
 *
 */
 
 // FancyBox
 // url: http://fancybox.net/
