$(document).ready(function(){
	
	$('body').addClass('js');
	
	$("#content").addClass("article");
	var tab = window.location.hash
	if (tab == "#comments" || tab == '#cpreview' || tab.indexOf('#c0')==0){
		$("#content").removeClass();
		$("#content").addClass("comments");
	}
	$("#goto-comments a").click(function () {
		$("#content").removeClass();
		$("#content").addClass("comments");
		return false;
	});
	$("#goto-article a").click(function () {
		$("#content").removeClass();
		$("#content").addClass("article");
		return false;
	});
	$("#goto-comments-alt a").click(function () {
		$("#content").removeClass();
		$("#content").addClass("comments");
		window.scroll(0, 200);
		return false;
	});
	$("#goto-article-alt a").click(function () {
		$("#content").removeClass();
		$("#content").addClass("article");
		return false;
	});
	
	$('input.switcheroo').focus(function(){
		if (this.value == this.defaultValue) this.value = '';
	}).blur(function(){
		if (this.value == '') this.value = this.defaultValue;
	});
	
	
	$('html.ie #comments ~ .meta').hide();
	
});
