/* Top Header Search Box - Click to Remove Default Value //////////////////////////////////////////////////////// */
window.onload = function() {
	if (document.getElementById("searchbox")) {
		var m = document.getElementById("searchbox");
		var v = m.defaultValue;
	m.onfocus = function() {if(m.value==v) m.value='';}
	m.onblur= function() {if(m.value=='') m.value=v;}
	}
}

/* Listings DropDown Menu //////////////////////////////////////////////////////// 
$(document).ready(function(){

	$('#listings_dropdown').hide();

	$('area.listings').bind("click",function(){  //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("#listings_dropdown").slideDown('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find('#listings_dropdown').slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});
		
	});

});*/

/* Our Team Rollovers //////////////////////////////////////////////////////// */
$(document).ready(function(){

	$('#david').hide();
	$('#zac').hide();
	$('#linda').hide();
	$('#sean').hide();
	$('#yuki').hide();
	$('#angie').hide();
	$('#keith').hide();
	$('#chrissy').hide();

	$('#davidrollover').hover(function() {

		$('#david').fadeIn('fast').show(); 

		$('#davidrollover').hover(function() {
		}, function(){
			$('#david').fadeOut('fast');
		});
		
	});
	
	$('#zacrollover').hover(function() {

		$('#zac').fadeIn('fast').show(); 

		$('#zacrollover').hover(function() {
		}, function(){
			$('#zac').fadeOut('fast');
		});
		
	});
	
	$('#lindarollover').hover(function() {

		$('#linda').fadeIn('fast').show(); 

		$('#lindarollover').hover(function() {
		}, function(){
			$('#linda').fadeOut('fast');
		});
		
	});
	
	$('#seanrollover').hover(function() {

		$('#sean').fadeIn('fast').show(); 

		$('#seanrollover').hover(function() {
		}, function(){
			$('#sean').fadeOut('fast');
		});
		
	});
	
	$('#yukirollover').hover(function() {

		$('#yuki').fadeIn('fast').show(); 

		$('#yukirollover').hover(function() {
		}, function(){
			$('#yuki').fadeOut('fast');
		});
		
	});
	
	$('#angierollover').hover(function() {

		$('#angie').fadeIn('fast').show(); 

		$('#angierollover').hover(function() {
		}, function(){
			$('#angie').fadeOut('fast');
		});
		
	});
	
	$('#keithrollover').hover(function() {

		$('#keith').fadeIn('fast').show(); 

		$('#keithrollover').hover(function() {
		}, function(){
			$('#keith').fadeOut('fast');
		});
		
	});
	
	$('#chrissyrollover').hover(function() {

		$('#chrissy').fadeIn('fast').show(); 

		$('#chrissyrollover').hover(function() {
		}, function(){
			$('#chrissy').fadeOut('fast');
		});
		
	});

});
