$(document).ready(function(){

 	var h = window.location.host.toLowerCase();

	$("a[href^='http']:not([href*='" + h + "']), a[href$='.pdf']").attr("target", "_blank");
	$('a[href^="http://"]').addClass('externalLink');
	$('a[href^="mailto:"]').addClass('emailLink');
    $('a[href*=.pdf]').attr({"target":"_blank"});
	$('a[href*=.pdf]').addClass('pdfLink');
    $("li:last-child").addClass('last');
    $("li:first-child").addClass('first');
	
	$("#comingSoon #email").click(function(){
		$("#comingSoon #notifyForm").toggle();
		$("#comingSoon #email p").toggle();
	});

	$(".openclose").click(function(){
		$("#mixIconKey").toggle();
		setHider();
	});

    $('input.clearme').focus(function() {
    	$(this).val("");
  	});

});

function setHider()
{
	$("#closetoggle").unbind();
	$("#closetoggle").click(function(){
		$("#mixIconKey").toggle();
	});
}





