/*----------------------------------------
CASSS Javascript
Author: Marcus Ellis
Last Updated: June 1, 2011
(c) 2011 Affiniscape, Inc.
All Rights Reserved. This JavaScript file must not be reproduced without the express written permission of Affiniscape, Inc.
For questions regarding licensing or setup please contact Affiniscape, projects @ affiniscape dot com
----------------------------------------*/

var j = jQuery.noConflict();
j(document).ready(function($){
	
	// Events
	$('#events-widget').new360events({
		url: 'http://m360.casss.org/calendar.aspx',
		items: 3,
		style: 'full',
		showLink: false
	});
	
	// Banner
	$('#banner ul li').each(function(){
		$('img:first-child',this).nextAll().wrapAll('<div></div>');
	});
	$('#banner ul').incMarketingBanner({
		showPager: true
	});
	
	// Login
	$('#navtop2cell').append('<div id="login"><label>Member Login</label><div id="login-widget"><a href="http://casss.affiniscape.com/login.cfm">Login Page</a></div></div>');
	$('#login-widget').incLoginWidget({
		showLabels: false,
		showAutoLogout: false,
		buttonImage: 'associations/9165/imgs/btn-login.png',
		hoverImage: 'associations/9165/imgs/btn-login-hover.png'
	});
	
	// Search
	$('#navtop2cell').append('<div id="search-widget"></div>');
	$('#search-widget').incSearchWidget({
		showLabel: true,
		labelText: 'Search CASSS',
		buttonImage: 'associations/9165/imgs/btn-search.png',
		hoverImage: 'associations/9165/imgs/btn-search-hover.png'
	});
	
	// Carousel
	$('#carousel ul').incSponsorCarousel({
		items: 5,
		width: 640,
		timer: false
	});
	
	// Footer
	$('body').addMegaFooter();
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'California Separation Science Society',
        url: 'http://www.casss.org/'
    });
						   
});

