// JavaScript Document

/* <![CDATA[ */
jQuery(function(){
	jQuery("#menu li").hoverIntent(function(){
		jQuery(this).find('ul.children').slideDown('medium');
	}, function(){
		jQuery(this).find('ul.children').slideUp('medium');
		});

		jQuery.jtabber({
			mainLinkTag: "#tabs a", // much like a css selector, you must have a 'title' attribute that links to the div id name
			activeLinkClass: "selected", // class that is applied to the tab once it's clicked
			hiddenContentClass: "hiddencontent", // the class of the content you are hiding until the tab is clicked
			showDefaultTab: 1, // 1 will open the first tab, 2 will open the second etc.  null will open nothing by default
			showErrors: true, // true/false - if you want errors to be alerted to you
			effect: 'slide', // null, 'slide' or 'fade' - do you want your content to fade in or slide in?
			effectSpeed: 'medium' // 'slow', 'medium' or 'fast' - the speed of the effect
		});
 

		jQuery('.content').css({"opacity":"0.7"});
		
		jQuery("#slider").easySlider({
		auto: true,
		continuous: true 
	});
		
	jQuery('.edit').css({"opacity":"0","marginRight":"-20px"});
 	jQuery('.post, .page').hoverIntent(function(){
		jQuery(this).find('.edit').animate({"marginRight":"0px","opacity":"1"},150);
	}, function(){
		jQuery(this).find('.edit').animate({"marginRight":"-20px","opacity":"0"},150);		
		});
	
	jQuery('.commentedit').css({"opacity":"0","marginRight":"-30px"});
 	jQuery('ul.commentlist li').hoverIntent(function(){
		jQuery(this).find('.commentedit').animate({"marginRight":"-22px","opacity":"1"},150);
	}, function(){
		jQuery(this).find('.commentedit').animate({"marginRight":"-30px","opacity":"0"},150);		
		});	
		
	jQuery('.widgettitle').click(function() {
    jQuery(this).find('span').toggleClass("arrowd");
	});
		
	jQuery('.widgettitle').click(function(){
		jQuery(this).next('#sidebar li ul').slideToggle('slow');
		});
	jQuery('.widgettitle').click(function(){
		jQuery(this).next('.ad').slideToggle('slow');
		});	
	jQuery('.widgettitle').click(function(){
		jQuery(this).next('#calendar_wrap').slideToggle('slow');
		});		
	
	jQuery("#sidebar li ul li a").hover(function(){
		jQuery(this).stop().animate({"marginLeft":"10px","color":"#fff"},150);
	}, function() 
	{ jQuery(this).stop().animate({"marginLeft":"0px","color":"#999"},150);
		});	

		jQuery("#foot li ul li a").hover(function(){
		jQuery(this).stop().animate({"marginLeft":"10px","color":"#fff"},150);
	}, function() 
	{ jQuery(this).stop().animate({"marginLeft":"0px","color":"#999"},150);
		});

});

/* ]]> */

