$(document).ready(function(){
$("ul#nav").mlddm({
	});

	$('.locator, .search').focus(function(){
		$(this).addClass('active');
		if(this.value == this.defaultValue)
			this.value = '';
	}).bind('blur',function(){
		if(this.value == '')
		{
			$(this).removeClass('active');
			this.value = this.defaultValue;
		}
	});
	
	$('#personal-options, #business-options').change(function(el){
		
		location.href = $(this).val();
		return false;
	});

	$('.jflow_slider_slides').each(function(el){
		$(this).cycle({ 
			fx:'scrollLeft',  
				activePagerClass: 'jFlowSelected',
			    speed:  'slow',
			    fit: 1,
			    timeout: 4000,
			    pause: true,
			    pauseOnPagerHover: true,
			    easing: 'easeInOutQuint',
			    cleartypeNoBg: true,
			    pager: $(this).next('.jflow_slider_control'),
			    pagerAnchorBuilder: function(idx, slide){
			    	return '<span class="jFlowControl"><a href="#">' + (parseInt(idx)+1) + '</a></span>';
				}
		});
	});

	$("#navmenu-h li,#navmenu-v li").hover(
		function() { $(this).addClass("iehover"); },
		function() { $(this).removeClass("iehover"); }
	);

});
