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


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

	//THIS HANDLES THE ANNIMATION OF THE HOMEPAGE SLIDE
	$('#home_main_expander').click(function() {
	
		//SET THE DEFAULT SLIDE HEIGHT
		var default_height = 55;
	
		//GET THE DEFAULT SIZE OF THE IMAGE
		var height = $('#linking_image').height();
		
		//GET THE HEIGHT OF THE ELEMENT
		var element_height = $('.ad_banner_index').height();
		
		//IF THE ELEMENT IS OPEN CLOSE IT OTHERWISE OPEN IT
		if(element_height == height) {
			$('.ad_banner_index').animate({ height: default_height + "px" });
		} else {
			$('.ad_banner_index').animate({ height: height + "px" });
		}
	
	});

});
