/*----------------------------------------
NYSRA Javascript
Author: Marcus Ellis
Last Updated: June 29, 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($){
    
    // Header Banner
	$('#footertablecell ul').incHeaderBanner();
	
	// Sponsor Box
    $('ul.sponsors').incSponsorBox(); 
    if ($("#topnavtable ul.sponsors").length > 0){
		$("#maincontentsubtable").after($("#topnavtable"));
    }
	
	// Search
	$('#navtop1').after('<div id="search-widget"></div>');
	$('#search-widget').incSearchWidget({
		formAction: 'http://www.nysra.org/searchsite.cfm',
		showLabel: false,
		showButton: false
	});
	
	// Flyouts
	var n = 0;
	$('#navtop2 > li').each(function(){
		$(this).attr('id','navtop2item_'+n);
		n++;
	});
	
	// Clickable Logo
    $('body').addClickableLogo({
        name: 'New York State Restaurant Association',
        url: 'http://www.nysra.org'
    });
						   
});

