/*----------------------------------------
CAG Javascript
Author: Marcus Ellis
Last Updated: September 26, 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($){
    
	// Mktg Banner
	$('#banner ul').incMarketingBanner({
		showPager: true
	});
	
	// Login
	$('#login-widget').incLoginWidget({
		showLabels: true,
		showForgotPass: true,
		showForgotUser: false,
		showAutoLogout: false,
		forgotPassText: 'Forgot password?',
		buttonImage: '/associations/7912/imgs/btn-login.png',
		hoverImage: '/associations/7912/imgs/btn-login-hover.png'
	});
	
	// Events
	$('#events-widget').inc247events({
		items: 3,
		style: 'compact',
		linkText: 'View More'
	});
	
	// Sponsors
	$('#sponsors ul, ul#sponsors').incSponsorBox();

    // Search
	$('#navtop1').after('<div id="search-widget"></div>');
	$('#search-widget').incSearchWidget({
		formAction: 'http://www.cagifted.org/searchsite.cfm',
		buttonImage: '/associations/7912/imgs/btn-search.png',
		hoverImage: '/associations/7912/imgs/btn-search-hover.png'
	});
	
	// Adjust Custom Banner Images
	if ($('.module.login').length){
		$('#footertablecell ul').addClass('shifted');
	}
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'California Association for the Gifted',
        url: 'http://www.cagifted.org'
    });

});

