/*
 * ---------------------------------------------------------------- 
 *  
 *  Purity HTML/CSS Template custom jQuery scripts.
 *  
 * ----------------------------------------------------------------  
 */


jQuery(document).ready(function(){	
	




/*
 * ---------------------------------------------------------------- 
 *  Twitter
 * ----------------------------------------------------------------  
 */
 	
	getTwitters('news', { 
	  id: 'bastonebrewery',  /* Your Twitter ID */
	  count: 3, /* Number of tweets that will be shown */
	  enableLinks: true, 
	  ignoreReplies: true, 
	  clearContents: true,
	  template: '"%text%" <a href="http://twitter.com/%user_screen_name%/statuses/%id_str%/"><span>%time%</span></a>'
	});
	
 

	
/*
Set the class of the content page h2 to the same name as the page
This function will endable the use of CSS to change the header image to match the page.
*/
	var pathArray = window.location.pathname.split( '/' );
	var name = pathArray[pathArray.length-1];
	
	$('body').attr('class',name);
	
	$('#contentHeaderImage').addClass(name).text(name);
	$('#contentHeaderImage2').addClass(name).text(name);
	
	
	
	
	
});
