$(document).ready(function(){
	// Registration fields
	$(".email").focus(function(){
		if(this.value == "Mailinizi Girin"){
			this.value = "";
		}
	});
	$(".email").blur(function(){
		if(this.value == ""){
			this.value = "Mailinizi Girin";
		}
	});
	// replace target="_blank"
	$("[rel='external']").click(function(){
		this.target = "_blank";
	});
	$(".tab_header li a").click(function(){
		$(".tab_header li").removeClass("current");
		$(this).parent('li').addClass("current");
		var thisTarget = $(this).attr("id");
		$(".news_callout ol").removeClass('selected');
		$("."+thisTarget).addClass('selected');
		return false;
		// if no JS, href will work
	});
	// featured news items on the homepage
	$(".featured_items_nav li a").click(function(){
		$("#featured_header li").removeClass("current");
		$(this).parent('li').addClass("current");
		var thisTarget = $(this).attr("id");
		$("."+thisTarget).addClass('current');
		return false;
		// if no JS, href will work
	});


});
/*********************************************************
RUN OUTSIDE OF JQUERY'S DOCUMENT.READY
*********************************************************/
