$(function ()
		{$("#twitter_hint").tooltip({placement:'top'});
		$("#facebook_hint").tooltip({placement:'top'});
		$("#website_hint").tooltip({placement:'top'});
		});
	

	$(function() {
	    $(".modal-link").click(function(event) {
	        event.preventDefault()
	        $('#remote-modal').removeData("modal")
	        $('#remote-modal').modal({remote: $(this).attr("href")})
	    })
	})	
	
	
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}	


	$(document).ready(function(){

// sort filter business select dropdown
var options = $('select#filterBusiness option');
var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
options.each(function(i, o) {
  o.value = arr[i].v;
  $(o).text(arr[i].t);
});



	var $container = $('#content');
		$container.isotope({
			filter: '*',

getSortData : {
    name : function ( $elem ) {
      return $elem.find('.name').text();
    }
  },
sortBy: 'name',
			animationOptions: {
		     duration: 750,
		     easing: 'linear',
		     queue: false,
		   }
		});
		
		$('#nav a').click(function(){
		  var selector = $(this).attr('data-filter');
		    $container.isotope({ 
			filter: selector,
getSortData : {
    name : function ( $elem ) {
      return $elem.find('.name').text();
    }
  },
sortBy: 'name',
			animationOptions: {
		     duration: 750,
		     easing: 'linear',
		     queue: false,
			 
		   }
		  });
		  return false;
		});
		
		});
		
		
        $(window).load(function(){
            new fwslider().init({
                duration: "1000", /* Fade Speed (miliseconds) */
                pause:    "6000"  /* Autoslide pause between slides (miliseconds)*/
            });
        });
        




$(function ()
{ 
$(".premium-plus-label").popover({title: 'Premium Plus Listing', content: "View this Premium Plus Listing", trigger:'hover'});
$(".premium-label").popover({title: 'Premium Listing', content: "View this Premium Listing", trigger:'hover'});
$(".basic-label").popover({title: 'Basic Listing', content: "Get your Free Basic Listing", trigger:'hover'});

});

