//**********************************************************************************************************************
/**
* 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() {

	//SWITCH THE GALLERY PHOTOS UNDER PROJECTS
	$('#resort_slideshow').cycle({
		timeout: 7000,
    		speed:  800,
    		pause: 1
	})
	
	
	$('.tab_inactive').live('click', function() {
	
		var id = $(this).attr('id');
		
		$('.tab_active').removeClass('tab_active').addClass('tab_inactive');
		
		$('#' + id).removeClass('tab_inactive');
		$('#' + id).addClass('tab_active');
		
		$('.tabs_top').hide();
		
		$('#' + id + '_tab').show();
	});
	


});

