/*----------------------------------------
WACMHC Javascript
Author: Mitch Dunaway
Last Updated: December 05, 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($){
	
	// Marketing Banner
    $('#banner ul').incMarketingBanner({
	showPager: true
	});

	// 360 Events Widget
	$('#events-widget').new360events({
	    url: 'https://m360.wacmhc.org/calendar.aspx',      
	    items: 3,
	    style: 'compact'
	});
	
	// Login Widget
	$('#login-widget').incLoginWidget({
		showAutoLogout: false,
		showForgotUser: false,
		showLabels: false,
		buttonImage: '/associations/13127/imgs/btn-login.png',
		hoverImage: '/associations/13127/imgs/btn-login-hover.png'
	});
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'Washington Association of Community and Migrant Health Centers',
        url: 'http://www.wacmhc.org'
    });
    
    // Newsletter Sign-up Widget
	$('#assnfooter .grid_6').append('<div id="newsletter-widget"></div>');
	$('#newsletter-widget').incNewsletterWidget({
		sendto: 'april.dickinson@chnwa.org',	        
		showLabels: false,
		buttonType: 'image',
		buttonImage: '/associations/13127/imgs/btn-submit.png',
		hoverImage: '/associations/13127/imgs/btn-submit-hover.png'	        
	});
	
	// Search Widget
    $('body').append('<div id="search-widget"></div>');
    $('#search-widget').incSearchWidget({
    	showLabel: false,
		showButton: false
	});
	
	// Sponsors
	$('#sponsors ul').incSponsorBox();
						   
});

