
function showHideForms(){if($(':input[name="NW_DonationType"]:checked').first().val()=='credit'){$('#creditCardDonation').show();$('#dollarAmount').show();$('#cardInfo').show();}
else if($(':input[name="NW_DonationType"]:checked').first().val()=='paypal'){$('#creditCardDonation').show();$('#dollarAmount').hide();$('#cardInfo').hide();}
else{$('#creditCardDonation').hide();}}
function showHideProgramSelection(){if($(':input[name="NW_DonationFor"]:checked').first().val()=='program')
$('#NW_Program').show();else
$('#NW_Program').hide();}
function showHideTributeAcknowledgement(){if($(':input[name="NW_TributeType"]:checked').length>0){$('#NW_tributeAcknowledgement').show();}
else{$('#NW_tributeAcknowledgement').hide();}}
function showHidePaypalProgramSelection(){if($(':input[name="os0"]:checked').first().val()=='program')
$('#PP_Program').show();else
$('#PP_Program').hide();}
function showHidePaypalTributeAcknowledgement(){if($(':input[name="os2"]:checked').length>0){$('#PP_tributeAcknowledgement').show();}
else{$('#PP_tributeAcknowledgement').hide();}}
$(document).ready(function(){if($('#creditCardDonation').length>0)
{showHideForms();showHideProgramSelection();showHideTributeAcknowledgement()
$(':input[name="NW_DonationType"]').change(function(){showHideForms();});$(':input[name="NW_DonationFor"]').change(function(){showHideProgramSelection();});$(':input[name="NW_TributeType"]').change(function(){showHideTributeAcknowledgement();});}
if($('#paypalDonation').length>0)
{showHidePaypalProgramSelection();showHidePaypalTributeAcknowledgement()
$(':input[name="os0"]').change(function(){showHidePaypalProgramSelection();});$(':input[name="os2"]').change(function(){showHidePaypalTributeAcknowledgement();});}});;(function($){$.fn.featureList=function(options){var tabs=$(this);var output=$(options.output);new jQuery.featureList(tabs,output,options);return this;};$.featureList=function(tabs,output,options){function slide(nr){if(typeof nr=="undefined"){nr=visible_item+1;nr=nr>=total_items?0:nr;}
tabs.removeClass('current').filter(":eq("+nr+")").addClass('current');var oldfeature=output.stop(true,true).filter(":visible");var newfeature=output.filter(":eq("+nr+")");newfeature.remove().insertAfter(oldfeature);newfeature.fadeIn(500,function(){visible_item=nr;oldfeature.hide();});}
var options=options||{};var total_items=tabs.length;var visible_item=options.start_item||0;options.pause_on_hover=options.pause_on_hover||true;options.transition_interval=options.transition_interval||5000;output.hide().eq(visible_item).show();tabs.eq(visible_item).addClass('current');tabs.click(function(){if($(this).hasClass('current')){return false;}
slide(tabs.index(this));});if(options.transition_interval>0){var timer=setInterval(function(){slide();},options.transition_interval);if(options.pause_on_hover){tabs.mouseenter(function(){clearInterval(timer);}).mouseleave(function(){clearInterval(timer);timer=setInterval(function(){slide();},options.transition_interval);});}}};})(jQuery);
function setSponsorshipPrices(){var event=$('#NW_Event').val();if(event!=''){$("#NW_Level_Corporate_Label").text(' Coporate - $'+sponsorshipPricing[event][0]);$("#NW_Level_Gold_Label").text(' Gold - $'+sponsorshipPricing[event][1]);$("#NW_Level_Silver_Label").text(' Silver - $'+sponsorshipPricing[event][2]);$("#NW_Level_Bronze_Label").text(' Bronze - $'+sponsorshipPricing[event][3]);}
else{$("#NW_Level_Corporate_Label").text(' Coporate');$("#NW_Level_Gold_Label").text(' Gold');$("#NW_Level_Silver_Label").text(' Silver');$("#NW_Level_Bronze_Label").text(' Bronze');}}
function setSponsorshipLevels(){var event=$('#NW_Event').val();$('#levelOptions').html($('div[id="SponsorshipCategory_'+event+'"]').html());}
$(document).ready(function(){setSponsorshipLevels()
$('#NW_Event').change(function(){setSponsorshipLevels();});})
