$(function() {
	
  $("abbr.timeago").timeago();
  $('.infiniteCarousel').infiniteCarousel();
  
  $("#myController").jFlow({
      slides: "#slides",  // the div where all your sliding divs are nested in
      controller: ".jFlowControl", // must be class, use . sign
      slideWrapper : "#jFlowSlide", // must be id, use # sign
      selectedWrapper: "jFlowSelected",  // just pure text, no sign
      width: "415px",  // this is the width for the content-slider
      height: "160px",  // this is the height for the content-slider
      duration: 400,  // time in miliseconds to transition one slide
      prev: ".jFlowPrev", // must be class, use . sign
      next: ".jFlowNext" // must be class, use . sign
  });

	$("#tabs").tabs();
	
	
	$("#tabs").bind('tabsselect', function(event, ui) {
		document.location='#'+(ui.index+1);
		});
		if(document.location.hash!='') {
		  //get the index
		  indexToLoad = document.location.hash.substr(1,document.location.hash.length);
		  $("#tabs").tabs('select',indexToLoad-1);
	   }
	
	$(".classified-parent-holder").hide();
	$("h2.category").eq(0).addClass("active");
	$(".classified-parent-holder").eq(0).show();

	$("h2.category").click(
			function() {$(this).nextAll().slideToggle("slow"); return false;}
	);
	
	

		
});
