/*----------------------------------------
ASTD-TC Javascript
Author: Kari Grooms
Last Updated: November 28, 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($){
	
	// Login Widget
	if($('#content').length == 0){
		var loginItem = $('nav.global > ul > li');
		loginItem.children('a').click(function(event){
			event.preventDefault();
		});
		loginItem.append('<ul class="last"><li><div id="login-widget"></div></li></ul>');
	loginItem.children('ul').hover(function(){
			loginItem.children('a').addClass('hover');
		},
		function(){
			loginItem.children('a').removeClass('hover');
		});
	}
	$('#login-widget').incLoginWidget({
		showLabels: false,
		showAutoLogout: false,
		showForgotUser: true,
		forgotUserText: 'Forgot your ID',
		showForgotPass: true,
		forgotPassText: 'or Password?',	
		buttonImage: '/associations/5630/imgs/btn-login.png',
		hoverImage: '/associations/5630/imgs/btn-login-hover.png'
	});
    
});

