/*
	Any site-specific scripts you might have.
	Note that <html> innately gets a class of "no-js".
	This is to allow you to react to non-JS users.
	Recommend removing that and adding "js" as one of the first things your script does.
	Note that if you are using Modernizr, it already does this for you. :-)
*/


$(document).ready(function(){

	/*
		Adds class 'current' to current page in subnav to allow for CSS highlighting
		http://groups.google.com/group/jquery-en/browse_thread/thread/d005979db7681672/ae13607c2142b8ff?lnk=gst&q=superfish+wordpress#ae13607c2142b8ff
	*/ 
    $('ul.sf-menu')
    
    	.find('li.current_page_item,li.current_page_parent,li.current_page_ancestor')
    	.addClass('current')
    	.end()
    
    /* Allows SF to returns submenu to current page after a few seconds if another is rolled over */
    .superfish({ 
        pathClass:  'current'
    });


	/* Totem Vertical Ticker - http://buildinternet.com/project/totem/ */
	
	$('.tweets').totemticker({
		row_height  :   '110px',
		next        :   '#ticker-next',
		previous    :   '#ticker-previous',
		stop        :   '#stop',
		start       :   '#start',
		speed		:	1400,
		interval	:	6000,
		mousestop	:	true,
		max_items	:	2
	});
	
	
	/* Scrollbar Paper (Styled scrollbars) */
	$('.scroll').scrollbarPaper();
	
}); 

