//<script type="text/javascript" src="/storage/scripts/andySatter.js">< /script>

$(document).ready(function() {
	removeSymbol();
	$('.tPane').panelShow('#panels div');
	$('#panels div:first').fadeIn();
});

// use this to remove the @ symbol in all input fields on document load
function removeSymbol() {
	$(':input').each(function() {
		if($(this).attr('value') == '@') {
			$(this).attr('value', '');
		}
	});
}

// use this to remove the @ symbol in the Contact page specificaly
function checkPage() {
	var curPage = window.location;
	if(curPage == 'http://www.satterassoc.com/contact/' || curPage == 'http://satterassoc.com/contact/') {
		$('#sidebar1Wrapper').css({'display' : 'none'});
	}
};


(function( $ ){
  $.fn.panelShow = function(selector) {

	var $this = $(this);	
	
	$this.hover(
		function() {
			$(this).stop().animate({'color' : 'orange', 'font-size' : '18px'});
		},
		function() {
			$(this).stop().animate({'color' : '#999999', 'font-size' : '16px'});
		}
	);
	
	$this.click(function() {
		var newContent = $(this).attr('value') - 1;
		//	alert(newContent);
		$(selector).stop().fadeOut(200);
		$(selector + ':eq(' + newContent + ')').stop().fadeIn(250);
	});
	
  };
})( jQuery );
