 //**********************************************************************************************************************
/**
* DOCUMENT: /core/plugins/events/front/projects.back.js
* DEVELOPED BY: Ryan Stemkoski
* COMPANY: Zipline Interactive
* EMAIL: ryan@gozipline.com
* PHONE: 509-321-2849
* DATE: 4/28/2010
* DESCRIPTION: This document has all of the javascript functions required for the events  plugin.
*/
//***********************************************************************************************************************

//***********************************************************************************************************************
//ON DOCUMENT READY FUNCTIONS
//***********************************************************************************************************************
$(function() {

	//*****************************************************************************************************************
	//Product Sidebar Functions
	//*****************************************************************************************************************
	
	//Open a category on click.
	/*
$(".sb_header").click(function() {
		var id = $(this).attr('id');
		id = id.replace('sbheader', '');
		$("#bars" + id).slideToggle();
	})
*/
	
	
	//Open the category of the item selected if exists, otherwise open first category
	
	/*else {
		$('.bars:first').show();
	}*/
	
	//Hide all functions
	$('.bars').hide();
	
	//Show active if there is one
	$(".sb_active").next().show();
	
	if ($('.bar.active').attr('id') != undefined) {
		$('.bar.active').parent().show();
	}
	
});

