$(document).ready(function(){
	
	$(document).ready(function(){
		
        $('#navBar').find('.page-item-4').attr('id','noshow1');
		$('#navBar').find('.page-item-17').attr('id','noshow2');
		$('#navBar').find('.page-item-35').attr('id','noshow3');
		$('#navBar').find('.page-item-335').attr('id','noshow4');
		$('#navBar').find('.page-item-68').attr('id','noshow5');
		
	
		jQuery('#noshow1 a:first').attr('href', '#');
		jQuery('#noshow1 a').attr('title', '');
		jQuery('#noshow2 a:first').attr('href', '#');
		jQuery('#noshow2 a').attr('title', '');
		jQuery('#noshow3 a:first').attr('href', '#');
		jQuery('#noshow3 a').attr('title', '');
		jQuery('#noshow4 a:first').attr('href', '#');
		jQuery('#noshow4 a').attr('title', '');
		jQuery('#noshow5 a:first').attr('href', '#');
		jQuery('#noshow5 a').attr('title', '');
		

});
	
	
	
	$(".hide_all_comments").click(function(){
	  $("ol.commentlist li p").slideUp(500);
	  $(".says").addClass("hide");
	  return false;
	});
	
	$(".show_all_comments").click(function(){
	  $("ol.commentlist li p").slideDown(500);
	  $(".says").removeClass("hide");
	  return false;
	});
	
});
$(document).ready(function(){
	//toggle message_body
	$(".says").addClass("show");
	$(".says").click(function(){
	$(this).parents(".vcard").siblings("p").slideToggle(500);
	  $(this).toggleClass("hide");
	  return false;
	});
});
$(document).ready(function(){
	 $("#navBar li").hover(function(){ 
	  $(this).children("ul").show(100);
	  stop();
	},
	function(){
	  $(this).children("ul").hide(100);
	   stop();
	}
	/*
		 $("#navBar li").hover(function(){ 
	  $(this).children("ul").fadeIn(500);
	},
	function(){
	  $(this).children("ul").fadeOut(800);
	}
	*/
	);
	$("#navBar li").mousemove(function(){ 
	 $(this).children("ul").show();
	});
	$("#navBar li").onmouseover(function(){ 
	 $(this).children("ul").show();
	});
});
$(document).ready(function(){


	$("#secBar h2:first").addClass("full");
	$("#secBar ul li ul").addClass("clearfix");
	$("#secBar ul li ul:not(:first)").hide();
	$("#secBar ul li div").hide();
	
	$("#secBar h2").click(function(){

	  $(this).next("#secBar ul li ul").slideToggle(500)
	  .siblings("#secBar ul li ul:visible").slideUp(500);
	  $(this).next("#secBar ul li div").slideToggle(500)
	  .siblings("#secBar ul li div:visible").slideUp(500);
	  $(this).toggleClass("full");
	  $(this).siblings("#secBar h2").removeClass("full");

	});
});

$(document).ready(function(){  
    $('#tabbed > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });  
}); 
$(document).ready(function(){	
	$("#slider").easySlider({
		controlsShow: false,
		pause: 6000,
		continuous: true,
		auto: true
	});
});
Cufon.replace('h2.headline, #footer h3, #secBar h2, h4.commentnum', {
	hover: true, fontFamily: 'aller'});
Cufon.replace('#logo', {
	fontFamily: 'aller', 
	textShadow: '1px 1px #4b292b',
	hover: {
	}
	});
	
