/*----------------------------------------
CALNOC Javascript
Author: Mitch Dunaway
Last Updated: December 02, 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($){
		
	// Search Widget
	$('#leftnavcell').prepend('<div id="search-widget"></div>');
	$('#search-widget').incSearchWidget({
		showLabel: false,	
		buttonImage: '/associations/13337/imgs/btn-search.png',
		hoverImage: '/associations/13337/imgs/btn-search-hover.png'
	});
	
	//24x7 Events Widget
	$('#events-widget').inc247events({
		style: 'full',
		dateFormat: 'full', //defaults to parts
		linkText: 'View All'
	});
	
	// Sponsor Box
	$('#leftnavcell').append('<div id="sponsors">Loading Sponsors...</div>')
    $('#sponsors').load('/global/get.cfm?cp=22', function(){
    	$('#sponsors ul').incSponsorBox();
    });	
	$('#sponsors ul').incSponsorBox();
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'Collaborative Alliance for Nursing Outcomes',
        url: 'http://www.calnoc.org'
    });
	
	//Prevent Navbottom Flyouts
	$('#navtop2list > li > ul').hide();
				   
});

