$(document).ready(function() {
	// HEADER SEARCH
	$('#cap fieldset label').hide();
	$('#cap fieldset input').val($('#cap fieldset label').text()).click(function() {
		if ($(this).val() == $('#cap fieldset label').text()) {
			$(this).val('');
		}
	}).blur(function() {
		if ($(this).val() == '') {
			$('#cap fieldset input').val($('#cap fieldset label').text());
		}
	});
	
	// SUB PAGE NEWSLETTER SIGN-UP
	$('#body div.newsletter fieldset label').hide();
	$('#body div.newsletter fieldset input').val($('#body div.newsletter fieldset label').text()).click(function() {
		if ($(this).val() == $('#body div.newsletter fieldset label').text()) {
			$(this).val('');
		}
	}).blur(function() {
		if ($(this).val() == '') {
			$('#body div.newsletter fieldset input').val($('#body div.newsletter fieldset label').text());
		}
	});
	
	// SCROLLABLE
	$('div.scrollable').scrollable({
		clickable: false,
		size: 1,
		easing: 'linear'
	}).circular().autoscroll(12000);
	
	// HEADER DROP DOWN MENUS
	$(function(){
		$("ul.dropdown li").hover(function(){
			$(this).addClass("hover");
			$(this).find('ul:first').show();
		}, function(){
			$(this).removeClass("hover");
			$(this).find('ul:first').hide();
		});
	});
	
	// QUOTE DROP DOWN MENUS
	$(function(){
		$("ul.quotes li").hover(function(){
			$(this).addClass("hover");
			$(this).find('ul:first').show();
		}, function(){
			$(this).removeClass("hover");
			$(this).find('ul:first').hide();
		});
	});

	
	// SUBNAV DROP DOWN MENUS
	$(function(){
		$('div#body ul.subNav > li > span, div#body ul.subNav > li > ul > li > span').toggle(function() {													 
			$(this).parent().addClass('open');
		}, function(){
			$(this).parent().removeClass('open');
		});
	});
});