/*----------------------------------------
CRHRA Javascript
Author: Mitch Dunaway
Last Updated: September 13, 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
    }); 
	
	// Login Widget
	$('#login-widget').incLoginWidget({
   		showAutoLogout: false,
    	buttonType: 'image',
    	buttonImage: '/associations/7646/imgs/btn-login.png',
    	hoverImage: '/associations/7646/imgs/btn-login-hover.png'
	});
	
	// 24x7 Events Widget
    $('#events-widget').inc247events({
        items: 3,
        style: 'compact'
    });  
	
    // Sponsor Box
    $('#sponsors').incSponsorBox({
        time: 5
    });
    
    // Search Widget
    $('body').append('<div id="search-widget"></div>');
    $('#search-widget').incSearchWidget({
    	formAction: 'http://www.crhra.org/searchsite.cfm',
    	showLabel: false,
    	showButton: true,
   		buttonType: 'image',
   		buttonImage: '/associations/7646/imgs/btn-search.png',
   		hoverImage: '/associations/7646/imgs/btn-search-hover.png'
	}); 
        
    // Tabbed Content
	/*$('#tabs-widget').incTabsWidget({
    	selectedClass: 'selected'
	});*/
	
	//Removing content from Calendar
	/*$('#tabs-widget #tab1 h1 + p').hide();
	var rowSet = $('#tabs-widget #tab1 tr');
	$('#tabs-widget #tab1 tbody tr:first-child').attr('class', 'event-label');
	//$('#tabs-widget #tab1 tr:odd').attr('class', 'event-detail');
	var i = 0
	for (i; i < rowSet.length; i++){
		var cellSet = rowSet.eq(i).children();
		cellSet.slice(3).hide();
	}*/
	
	// Assn Clickable Logo
	$('body').addClickableLogo({
        name: 'Capital Region Human Resource Association',
        url: 'http://www.crhra.org'
    });
    
    // SHRM Clickable Logo
    var str = '<div id="shrm-logo""><a title="Society for Human Resource Management" href="http://www.shrm.org"></a></div>';
    $('body').append(str);
	
});

