$(document).ready(function() {
	/**
	 * Launch external links in new window / tab
	 * Usage: <a href="http://www.google.com" rel="external">lepinskidesign.com.br</a>
	 */
	$('a[rel="external"]').click(function(){
		this.target = "_blank";
	});
	
	/**
	 * What to expect navigation
	 */
	var num = 1;
	$('#month_nav li a').click(function() {
		tmp = $(this).attr('id').substr(5, 1);
		// fade out currently visible div
		$('#month_' + num).fadeOut('fast', function() {
			num = tmp;
			$('#month_' + num).fadeIn('slow');	
			if(num == 2 || num == 3 || num == 4) {
				$('#js_ref').fadeIn('slow');	
			} else if(num == 1 || num == 5) {
				$('#js_ref').fadeOut('fast');
			}	
		});
	});
	
	
	
	$("a[rel^='prettyPhoto'], area[rel^='prettyPhoto']").prettyPhoto({theme:'dark_square', opacity: .0, allowresize: false});		
	

	
});

function displaySubMenu(which) {
	$(which).slideDown('slow');
}

function find_doc() {
	if(confirm("We are now directing you to the American Academy of Dermatology's website, where Refissa's Privacy Policy does not apply.")) {
		location.href = "http://www.aad.org/findaderm/";
	}
}

