/*----------------------------------------
ASSN Javascript
Author: Mitch Dunaway	
Last Updated: September 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($){
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'Nevada Restaurant Association',
        url: 'http://nvrestaurants.com'
    });
    
    // Login Widget
    $('#navleft').append('<div id="quicklogin"><h3>Member Login</h3><div id="login-widget"></div></div>');
	$('#login-widget').incLoginWidget({
		showAutoLogout: false,
		showForgotUser: false,
		buttonImage: '/images/assnimg974/imgs/btn_login.png',
		hoverImage: '/images/assnimg974/imgs/btn_login.png'
	});
						   
});


<!--
	
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
			}
		}
	}
	
	function findLNav() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (document.getElementById("navleft")) return false;
		if (!document.getElementById("maincontentcell")) return false;
		
		mainContent = document.getElementById("maincontentcell");
		footerCell = document.getElementById("footertablecell");
		
		mainContent.setAttribute("style", "background-image: url(/images/assnimg974/imgs/bak_maincontentcell-module.png); padding-top: 22px;");
		footerCell.setAttribute("style", "background-image: url(/images/assnimg974/imgs/bak_footertable-module.png);");
	}
	
	/*function incLogin() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("navleft")) return false;
		
		document.write('<iframe id="iflogin" src="/cafe.cfm?act=member.showlogin&spanid=loginform" frameborder="0" width="0" height="0"></iframe><span id="loginform">&nbsp;</span>');
	}*/
	
	addLoadEvent(findLNav);
	//incLogin();
	
-->
