$(document).ready(function(){
	$("#featture_link").click(function(e){
		  window.location= $("#feature_image_link").attr("href"); return false;
	});

	$(".postit").click(function(){
		  window.location=$(this).find("a").attr("href"); return false;
	});
	
	$(".post_content .alignright:gt(0)").show();
	
	$("div#morenews ul.tabNavigation li").click(function(){
		var tabContainers = $('div#morenews > div > div');
		tabContainers.hide();
		$('div#morenews ul.tabNavigation li').removeClass('selected');
		$(this).addClass('selected');
		var thelink = $(this).find("a").attr("href");
		$(thelink).show();
		return false;
	});
	
	

	
});

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
function swapsinglemorestories(linkedfrom) {
	if (linkedfrom == 'related') 
	{
		document.getElementById('morefromtotallyher').style.display = 'block';

		document.getElementById('relatedarticles').style.display = 'none';
		document.getElementById('moretottalyherlink').style.background = '#E2D0AC';
		document.getElementById('relatedarticleslink').style.background = '#F4EBDA';

	} else {
		document.getElementById('morefromtotallyher').style.display = 'none';
		document.getElementById('relatedarticles').style.display = 'block';
		document.getElementById('moretottalyherlink').style.background = '#F4EBDA';
		document.getElementById('relatedarticleslink').style.background = '#E2D0AC';

	}
}


