/*----------------------------------------
TAAP Javascript
Author: Mitch Dunaway
Last Updated: August 09, 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: 'Texas Association of Addiction Professionals',
        url: 'http://www.taap.org'
    });
    
    // Sponsor Box    
    $('#rightnavcell').append('<div id="sponsorWrap"></div>');
    $('#sponsorWrap').load('/global/get.cfm?cp=25', function(){
    	$('#sponsorWrap ul').incSponsorBox();
    });
    
    // Login Widget
    $('#rightnavcell').append('<h2 id="loginHeader">Member Login</h2><div id="login-widget"></div>');
	$('#login-widget').incLoginWidget({
		showAutoLogout: false,
		showForgotUser: false,
		buttonImage: '/associations/3397/imgs/btn-login.png',
		hoverImage: '/associations/3397/imgs/btn-login-hover.png'
	});
    
    // Search Widget
    $('body').append('<div id="search-widget"></div>');
    $('#search-widget').incSearchWidget({
    	showLabel: false,
		buttonImage: '/associations/3397/imgs/btn-search.png',
		hoverImage: '/associations/3397/imgs/btn-search-hover.png'
	});
						   
});

