function setiPhoneCookie() {
	var date = new Date();
	date.setDate(date.getDate() + 30);
	document.cookie = "iphoneoverlay" + "=" + "no" + ";expires=" + date.toGMTString();
}

$(function() {
	
	$('ul#breakdown_drop_nav').hide();
	
	$('a.moreInfo').click(function(e) {
		e.preventDefault();
		$(this).parent().next('.providerInfo').slideToggle('fast');
	});
	
	$('a.closeme').click(function(e) {
		e.preventDefault();
		$(this).parent('.providerInfo').slideUp('fast', function() {
			$(this).parent('.providerInfo').hide();
		});
	});
	
	$('a.open').toggle(function() {
		$(this).children("img").attr("src", "/providers/img/expanded-arrow.gif");
		$(this).parent().next('.shyInfo').slideDown('fast');
	}, function() {
		var a = this;
		$(this).parent().next('.shyInfo').slideUp('fast', function() {
			$(a).children("img").attr("src", "/providers/img/expand-arrow.gif");
		});
	});
	
	$('a.showMap').click(function() {
		$('.euMap').slideToggle('fast');
	});
	
	$('a.showTheft').click(function() {
		$('.theftMap').slideToggle('fast');
	});
	
	$('.euMap').click(function() {
		$('.euMap').slideToggle('fast');
	});
	
	$('a#breakdown-providers').toggle(function() {
		$('ul#breakdown_drop_nav').slideDown();
	}, function() {
		$('ul#breakdown_drop_nav').slideUp();
	});
	
	$('a.overlay-close').click(function(e) {
		e.preventDefault();
		$('div#iphone-overlay-background').hide();
		$('div#iphone-overlay').hide();
		setiPhoneCookie();
	});
	
	
	
});