/*----------------------------------------
PAMGMA Javascript
Author: Mitch Dunaway
Last Updated: February 1, 2012
Updated by: Kari Grooms
(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: 'Pennsylvania Medical Group Management Association',
        url: 'http://www.pennsylvaniamgma.com'
    });
    
    $('body').append('<div id="search-widget"></div>');
    $('#search-widget').incSearchWidget({
    	formAction: 'http://www.pennsylvaniamgma.com/searchsite.cfm',
    	showLabel: false,
    	showButton: true,
   		buttonType: 'image',
   		buttonImage: '/associations/12168/imgs/btn-search.png',
   		hoverImage: '/associations/12168/imgs/btn-search-hover.png'
	});

	// 360 Events Widget
	$('#events-widget').new360events({
		url: 'https://m360.pennsylvaniamgma.com/calendar.aspx',
		items: '4',
		style: 'compact',
		cache: false,
		showLink: true,
		linkText: 'View All Events'
	});
    
    // Login Widget
	$('#login-widget').incLoginWidget({
   		showAutoLogout: false,
		showForgotUser: false,
    	buttonType: 'image',
    	buttonImage: '/associations/12168/imgs/btn-login.png',
    	hoverImage: '/associations/12168/imgs/btn-login-hover.png'
	});
	
	// Marketing Banner
    $('#banner ul').incMarketingBanner({
        showButtons: true,
        buttonText: {
           prevText: '',
           nextText: ''
        }
    }); 
						   
});

