/*----------------------------------------
GCAA Javascript
Author: Mitch Dunaway
Last Updated: November 08, 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: 'Greater Charlotte Apartment Association',
        url: 'http://www.greatercaa.org'
    });
    
    // 360 Events Widget
    $('#events-widget').new360events({
        url: 'https://m360.greatercaa.org/calendar.aspx',
        items: 4,
        style: 'compact'
    }); 
    
    // Login Widget
	$('#login-widget').incLoginWidget({
   		showAutoLogout: false,
    	buttonType: 'image',
    	buttonImage: '/associations/12490/imgs/btn-login.png',
    	hoverImage: '/associations/12490/imgs/btn-login-h.png'
	});  
	
	// Marketing Banner
    $('#banner ul').incMarketingBanner({
        time: 8,
        showButtons: true,
        buttonText: {
           prevText: '',
           nextText: ''
        }
    }); 
    
    // Search Widget
    $('body').append('<div id="search-widget">&nbsp;</div>');
    $('#search-widget').incSearchWidget({
    	formAction: 'http://www.greatercaa.org/searchsite.cfm',
    	showLabel: false,
    	showButton: true,
   		buttonType: 'image',
   		buttonImage: '/associations/12490/imgs/btn-search.png',
   		hoverImage: '/associations/12490/imgs/btn-search-hover.png'
	}); 
						   
});

