	$(function()
	{
		$("ul.nav").supersubs({ 
			minWidth:    12,
			maxWidth:    27,
			extraWidth:  1
		}).superfish({
			animation : { 
				opacity:"show", 
				height:"show" 
			},
			autoArrows:  false
		});

		if( $("#real_estate_area_mls_map").length )
		{
			$("#real_estate_area_mls_map")
			.mouseenter(function(){
				$(this).find("img").animate({width: '600px'}, 500);														  
			})
			.mouseleave(function(){
				$(this).find("img").animate({width: '300px'}, 0);											
			})
			.find("img")
			.css({width: '300px'});
		}

		var header_images = ""
			+ "<div class='header1'></div>"
			+ "<div class='header2'></div>"
			+ "<div class='header3'></div>"
			+ "<div class='header4'></div>"
			+ "<div class='header5'></div>";
		
		$("#header_images").html(header_images)
		.cycle({
			fx:     'fade', 
			speed:   1000,
			timeout: 5000, 
			pause:   0
		}).show();
		
		$('#featured-property-images').hide().cycle({ 
			fx:     'fade', 
			speed:   1000,
			timeout: 3000, 
			pause:   0
		}).show();
		
		$('#meet-our-agents-rotation').hide().cycle({ 
			fx:     'fade', 
			speed:   1000,
			timeout: 3000, 
			pause:   0
		}).show();
		
		var image_width = $('#featured-property-images').width();
		
		$('#featured-property-images div').each(function() {
        	$(this).width(image_width);
        });
	});

