
function initNav(){
	$(" #nav ul ").css({display: "none"}); // Opera Fix
	
	//Flick out Animation
	$(" #nav li").hover(
		function(){	$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(200);},
		function(){ $(this).find('ul:first').css({visibility: "hidden"});});
		
	//Top menu Stays highlighted.	
	$("#nav .subnav").hover(function(){$(this).parent().addClass("active");});	
	$("#nav .subnav").mouseleave(function(){$(this).parent().removeClass("active");	});		
}			


//Listing rotationals Speed settings
var first = 0;
var speed = 300;
var pause = 7000;
function rotateListings(){

				
		interval = setInterval(removeFirst, pause);
}

		function removeFirst(){		
			first = $("ul#listing-rotator li:first").html();
			$("#listing-rotator li:first")
				.animate({opacity: 0}, speed)
				.slideUp('normal', function() {
					$(this).remove();
				});
				addLast(first);
		}
		function addLast(first){
			last = "<li class='vcard clearfix'>" + first + "</li>";
			$("#listing-rotator").append(last)
			$("#listing-rotator li:last")
			.animate({opacity: 1}, speed)
			.fadeIn('fast')
		}
		
