$(window).load(function(){$('#mapcontainer').hide();$("#map h3").click(function(){$('#mapcontainer').toggle('slow');var a=document.getElementById('email_realtor2').listingId.value;var b=$(this);if(b.is('.mapshown')){b.removeClass('mapshown');b.addClass('maphidden');document.getElementById('show3_gif').style.display=''}else{if(!loadedOnce){$('#mapcontainer').load("/displayPropertyMap.action?listingId="+a);loadedOnce=true}b.removeClass('maphidden');b.addClass('mapshown');document.getElementById('show3_gif').style.display='none'}return false});$(".gallery").gallery();$(".list-scrollable").scrollable({size:5,loop:true,prev:'span.prev-thumbs',next:'span.next-thumbs'});$(".btn-appointment").lightbox({opacity:"0.2",iframe:"true",width:"940",height:"400"});$(".btn.seller").lightbox({opacity:"0.2",iframe:"true",width:"675",height:"615"});$(".btn.buyer").lightbox({opacity:"0.2",iframe:"true",width:"675",height:"615"});$(".block.related .box li:last, .related-search ul li:last").addClass("last");$('.other .block').equalHeight();$('.block.related .box').equalHeight();$('.block.related .box h4').after('<span class="darr"></span>');$(".block.related .box").click(function(){window.location=$(this).find("a.name").attr("href");return false});$('.block.related .box, .lead-gen, .related-search, .block.related').corners({radius:5})});