/*----------------------------------------
KSBAR Javascript
Author: Kari Grooms
Last Updated: November 10, 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($){
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'Kansas Bar Association',
        url: 'http://www.ksbar.org'
    });
    
    // Login Widget
    $('#login-widget').incLoginWidget({
		showLabels: false,
		showForgotUser: true,
		forgotUserText: 'Forgot your ID',
		showForgotPass: true,
		forgotPassText: 'or Password?',	
		buttonImage: '/associations/13344/imgs/btn-login.png',
		hoverImage: '/associations/13344/imgs/btn-login-hover.png'
	});
	
	// Search Widget
	$('body').append('<div id="search-widget"></div>');
	$('#search-widget').incSearchWidget({
		formAction: 'http://ksbar.org/searchsite.cfm',
		showLabel: false,
		showButton: false
	});

	// Marketing Banner
	$('#banner ul').incMarketingBanner({
		showPager: true
	});

	// 360 Events Widget
	$('#events-widget').new360events({
		//url: 'https://internal.affiniscape.com/calendar.aspx',
		url: 'https://m360.ksbar.org/calendar.aspx',
		items: '3',
		style: 'compact',
		showLink: true,
		linkText: 'View All'
	});
	
	// Sponsor Box
	$('#sponsors ul').incSponsorBox();	    
						   
});

