	$(document).ready(function(){
	
		$("#s-call").hover(
			function(){$(this).stop().animate({right:"0px"},{duration:500});},
			function(){$(this).stop().animate({right:"-280px"},{duration:500});}
		); 
		
		$(".propertyPhotoThumb").click(function(){
			$(".propertyPhotoPreview").css({backgroundImage:"url(" + this.href + ")"});
			return false;
		});
		
	
//	$(function() {
//		setInterval( "slideSwitch()", 5000 );
//	});

$('.activatemenu').hover(function()
{
	$(this).children('.dropdown').slideDown();
},function(){
	$(this).children('.dropdown').slideUp();
});

});
	
		
//function slideSwitch() {
//    var $active = $('#homeshow div.active');
//
//    if ( $active.length == 0 ) $active = $('#homeshow div:last');
//
//    var $next =  $active.next().length ? $active.next()
//        : $('#homeshow div:first');
//
//    $active.addClass('last-active');
//
//    $next.css({opacity: 0.0})
//        .addClass('active')
//        .animate({opacity: 1.0}, 1000, function() {
//            $active.removeClass('active last-active');
//        });
//}
//
//	
	
