$(document).ready(function(){
	$('.more_button').hover(function(){
		$(this).css('color', '#543b25');
	},function(){
		$(this).css('color', '#9c7f64');
	});
	
	//SHOW HIDE	
		$('#hide').css('display', 'none');
		$('#show_hidden').toggle(function(){
			$('#hide').slideDown('slow');
			$(this).html('Hide Archive');
		},function(){
			$('#hide').slideUp('slow');
			$(this).html('Show Archive');
		});
	//SHOW HIDE
	
	//FAQ
		$('#faq div').hide();
		j = 1;
		$('#faq a').each(function(i){
			testy = $(this).attr('href');
			if(testy == '#'){
				$(this).next().attr('id', 'faq_'+j);
				$(this).attr('rel', j);
				$(this).css({'text-decoration' : 'none', 'font-weight' : 'bold'});
				$(this).before('<br />');
				$(this).after('<br />');
			}
			j++;
		});
		
		$('#faq a').click(function(){
			var whatLink = $(this).attr('href');
							
			var relID = $(this).attr('rel');
			var faqID = 'faq_'+relID;
			
			if($('#'+faqID).is(':hidden')){
				$('#'+faqID).slideDown('slow');
			}else{
				$('#'+faqID).slideUp('slow');
			}
			
			if(whatLink == '#'){
				return false;
			}
	
		});
	//FAQ
	
	//CONTACT FORMS
		$('input[type=hidden]').each(function(){
			$(this).css('display', 'none');
		});
			
		$(':input').focus(function(){
			if($(this).val() == $(this).attr('rel')){
				$(this).val('');
			}
		}).blur(function(){
			if($(this).val() == ''){
				var atty = $(this).attr('rel');
				$(this).val(atty);
			}
		});
	//CONTACT FORMS
});
