
	$(function() {
		$('#content a.external').leaveNotice({
				siteName:"John Marshall Bank",
				timeOut:0
		});
		$('a.zip_button').leaveNotice({
				siteName:"John Marshall Bank",
				timeOut:0
		});		
		/*$('body.homepage #overlay').css({opacity:0.8});*/
		
		/*	
		$('body.homepage #main').height($('body').height());	
		$('body.homepage #main-scroll').height('20000em');
		$('body.homepage #main .main_item').show();*/
		
		var placeholders = $('body.homepage #main .main_item:not(:first):not(:last)').clone();
		
		$('body.homepage #main-scroll').cycle();
		
		/*
				
		$("body.homepage #main")
			.scrollable({ 
				vertical: true, 
				size: 1, 
				items: '#main-scroll', 
				item: '.main_item', 
				easing: 'easeInOutExpo', 
				speed: 1500,
				onSeek: function() { 
					$('body').removeClass().addClass('homepage').addClass('hp-' + (this.getPageIndex() + 1));
    			}  
			})
			.circular()
			.autoscroll({
				interval: 5000,
				autopause: true
			});
			
			*/

		placeholders.insertAfter($('body.homepage #main .main_item:last')).addClass('placeholder_item').removeClass('main_item');
	
		$('#aside .nav2 li').hover(
			function() { $(this).addClass('hover'); $(this).find('ul').show(); },
			function() { $(this).removeClass('hover'); $(this).find('ul').hide(); }
		);
		
		$('#search input').focusin(function() { if($(this).val() == 'Search') $(this).val(''); });
		$('#search input').focusout(function() { if($(this).val() == '') $(this).val('Search'); });
		
	});
