$(document).ready(function(){
	$("a.savelist").fancybox({
		'height':120,
		'width': 405,
		'scrolling':'no',
		'centerOnScroll':true
	});
	$("a.emailagent").fancybox({
		'width': 550,
		'height': 420,
		'scrolling':'no',
		'centerOnScroll':true
	});
	$("a.bookmark").fancybox({
		'scrolling':'no',
		'centerOnScroll':true
	});
	
	//mapView('mapview-canvas', Listings);
	
	$('#slider ul').jcarousel({
		scroll:1
	});
	
	
	
	/*zoom*/
	     jQuery("a[class^='fancybox']").fancybox({
              'overlayOpacity'	:	0.7,
              'overlayColor'	:	'#000000',
              'zoomSpeedIn'		:	500,
              'zoomSpeedOut'	:	500
          });	
                   
          
          var eachpropertyItem = jQuery('.photo');
		  var opacityValueIE = 70;
		  var animationTime = 350;
		  var originalposition = 20;
		  var movedposition = originalposition+13;
		  var imgaeWidth = $('.listingthumb').width();
		  var iconWidth = $('.more-icon').width();
		  
          jQuery('.zoom-icon, .more-icon').css('opacity','0');
          
          eachpropertyItem.hover(function(){
			  
              jQuery(this).find('.zoom-icon').stop(true, true).animate({opacity: 1, left: movedposition, "-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)", "filter": "alpha(opacity="+opacityValueIE+")"},animationTime);
              jQuery(this).find('.more-icon').stop(true, true).animate({opacity: 1, left: imgaeWidth-iconWidth-movedposition, "-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)", "filter": "alpha(opacity="+opacityValueIE+")"},animationTime);
			  
          }, function(){
			  
              jQuery(this).find('.zoom-icon').stop(true, true).animate({opacity: 0, left: originalposition, "-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)", "filter": "alpha(opacity=0)"},animationTime);
              jQuery(this).find('.more-icon').stop(true, true).animate({opacity: 0, left: imgaeWidth-iconWidth-originalposition, "-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)", "filter": "alpha(opacity=0)"},animationTime);
			  
          });
          
       
	
	
	
});

