/*----------------------------------------
HRACConn Javascript
Author: Mitch Dunaway
Last Updated: October 17, 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
	$('#bannerList').incMarketingBanner({
		showButtons: true
	});
	$('#bannerList').add($('.banner-btn')).wrapAll('<div id="banner" />');
    
    // 360 Events Widget
    $('#events-widget').new360events({
        url: 'https://m360.hracc.org/calendar.aspx',      
        items: 3,
        style: 'compact'
    }); 
    
    // Sponsors
    $('#sponsors').incSponsorBox();
    
    // RSS Feed - string limiter
    $('a.rss-item').each(function(i){
    	if ($(this).html().length > 75){    	
    		$(this).html($(this).html().substr(0,75)+'&hellip;');
    	}
	});	
	
	// Feed Widget
	$('#feed-widget').incFeedWidget({
		url: 'http://feeds.shrm.org/shrm/news/hr?format=xml',
		items: 2,
		showDesc: true
	});				   
	
	// Fix Flyouts
	$('#navtop1, #navtop2').addSlidingFlyouts({
		speedDown: 0,
		speedUp: 0
	});
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'Human Resource Association of Central Connecticut',
        url: 'http://www.hracc.org'
    });

	

});

