$(document).ready(function() {
	$(".send").click(function(){
		window.open($(this).attr('href'), 'ContactSeller','left=100,top=50,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=425,height=485');
		return false;
	});
	if(ListingMap.lat || ListingMap.lng) {
		if (!ListingMap.mapType) {
			ListingMap.mapType = G_SATELLITE_MAP;
		}
		ListingMap.zoom = 10;
		ListingMap.zoomControl = false;
		ListingMap.mapTypeControl = false;
		ListingMap.hasMarker = false;
		ListingMap.load();
		ListingMap.mapListing();
	}
	$('.faqQuestion').toggle(
		function() {
			$(this).addClass('open').removeClass('close');
			$('#faqNavSect' + $(this).attr('rel')).removeClass('hidden');
		},
		function() {
			$(this).addClass('close').removeClass('open');
			$('#faqNavSect' + $(this).attr('rel')).addClass('hidden');
		}
	);
	$('.questionLink').click(function() {
		hideFAQ();
		reveal($(this).attr('id'));
		return false;
	});
});

function hideFAQ() {
	$('#faqScroller').addClass('liquidHeight');
	$('.question').addClass('hidden');
	$('.answer').addClass('hidden');
}
function reveal(question) {
	$('#question' + question).removeClass('hidden');
	$('.answer' + question).removeClass('hidden');
}