$(document).ready(function() 
{
	
	
	// seo text
	$('#sell_to_content').hide();
	$('#how_to_content').hide();
	$('#about_us_content').hide();
	$('#about_us_btn').click(function(){
		$('#how_to_content').hide();
		$('#sell_to_content').hide();
		$('#about_us_content').slideDown(300);
		$('#about_us_content').mouseleave(function(){
			$(this).hide(300);	
		});
		return false;
	});
	
	$('#how_to_btn').click(function(){
		$('#about_us_content').hide();
		$('#sell_to_content').hide();
		$('#how_to_content').slideDown(300);
		$('#how_to_content').mouseleave(function(){
			$(this).hide(300);	
		});
		return false;
	});
	
	$('#sell_to_content').hide();
	$('#how_to_content').hide();
	$('#about_us_content').hide();
	$('#sell_to_btn').click(function(){
		$('#how_to_content').hide();
		$('#about_us_content').hide();
		$('#sell_to_content').slideDown(300);
		$('#sell_to_content').mouseleave(function(){
			$(this).hide(300);	
		});
		return false;
	});
	
	$('#area_trackbar').trackbar({
		onMove : function(){
			$('#input_area_from').val(this.leftValue);
			$('#input_area_to').val(this.rightValue);
		},
		width : 340,
		rightLimit : 915,
		leftValue : 0,
		rightValue : 0,
		clearValues : true});
	
	var to = false;
	
	$('A.maps_a').bind('mouseover', function(){
		if(to) clearTimeout(to);
		$('#map_links UL').hide();
		$('#map_links .map_link_checked').removeClass('map_link_checked');
		$(this).addClass('map_link_checked');
		$ul = $(this).next();
		$ul.slideToggle(1);
		$('#map_links DIV').css('z-index', '100');
		$(this).closest('DIV').css('z-index', '200');
		return false;
	});
	
	$('#map_links UL').bind('mouseover', function(){
		if(to) clearTimeout(to);
	});
	
	$('A.maps_a, #map_links UL').bind('mouseout', function(){
		to = setTimeout('hideit()', 200);
	});
	
	$('#map_links UL A').die().unbind();
});

function hideit()
{
	$('#map_links UL').hide();
	$('#map_links .map_link_checked').removeClass('map_link_checked');
}
