$(document).ready(function () {
/**
ACCORDION NAV
**/
	function initAcc1() {
		$('ul.accordion').accordion({
			active: ".active",
			autoHeight: false,
			header: ".open-close",
			collapsible: true,
			event: "click"
		});
	}
	function initAcc2() {
		var _max = 590;
		var _cen = 333;
		var _min = 210;
		var _speed = 500;
		var _hold = $('#headerNavContainer');
		if (_hold.length) {
			var _list = _hold.find('div.headerNav-box');
			var box_list = _list.find('.must-hide');
			var _a = _list.index(_list.filter('.active:eq(0)'));
			if (_a == -1) _list.width(_cen).removeClass('active');
			else _list.width(_min).removeClass('active').eq(_a).addClass('active').width(_max);

			_list.each(function (_i) {
				var _el = $(this);
				var _box = _el.find('.must-hide');
				if (_i == _a) {
					if ($.browser.msie) _box.css({ visibility: 'visible' });
					else _box.css({ visibility: 'visible', opacity: 1 });
				}
				else {
					if ($.browser.msie) _box.css({ visibility: 'hidden' });
					else _box.css({ visibility: 'hidden', opacity: 0 });
				}
				_el.mouseenter(function () {
					if ($.browser.msie) box_list.not(_box).css('visibility', 'hidden');
					else box_list.not(_box).stop().animate({ opacity: 0 }, _speed / 2, function () { $(this).css('visibility', 'hidden'); });
					_list.stop().removeClass('active').animate({ width: _min }, _speed);
					_el.stop().addClass('active').animate({ width: _max }, _speed, function () {
						if ($.browser.msie) _box.css('visibility', 'visible');
						else _box.stop().css('visibility', 'visible').animate({ opacity: 1 }, _speed / 2);
					});
					_a = _i;
				});
			});
		}
	}

	function initSlide() {
		$('div.myths-container div.myths-box').each(function () {
			var _hold = $(this);
			var _box = _hold.find('.slide');
			var _btn = _hold.find('.myths-text');
			var _h = _box.height();
			if (_hold.hasClass('active')) _box.show();
			else _box.hide();

			_btn.click(function () {
				if (_hold.hasClass('active')) {
					_hold.removeClass('active');
					_box.stop().animate({ height: 0 }, 400, function () { $(this).css({ display: 'none', height: 'auto' }); });
				}
				else {
					_hold.addClass('active');
					if (_box.is(':hidden')) {
						_box.show();
						_h = _box.height();
						_box.height(0);
					}
					_box.stop().animate({ height: _h }, 400, function () { $(this).css({ height: 'auto' }); });
				}
				return false;
			});
		});
	}

	initAcc1();
	initAcc2();
	initSlide();

/**
POP-UP EMAIL SUBSCRIBE WINDOW
**/

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/**
SLIDESHOW
**/
$(window).load(function() {
	$('#slider').nivoSlider({ effect:'fade', pauseTime:5000, pauseOnHover:false, controlNav:false, animSpeed:500, directionNav:false });
});
/*
 * jQuery Nivo Slider v2.1
 * http://nivo.dev7studios.com
 *
 * Copyright 2010, Gilbert Pellegrom
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * May 2010 - Pick random effect from specified set of effects by toronegro
 * May 2010 - controlNavThumbsFromRel option added by nerd-sh
 * May 2010 - Do not start nivoRun timer if there is only 1 slide by msielski
 * April 2010 - controlNavThumbs option added by Jamie Thompson (http://jamiethompson.co.uk)
 * March 2010 - manualAdvance option added by HelloPablo (http://hellopablo.co.uk)
 */

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(9($){$.1k.1o=9(2b){b 3=$.2g({},$.1k.1o.21,2b);N g.H(9(){b 4={f:0,u:\'\',W:0,r:\'\',L:n,1j:n,1S:n};b 5=$(g);5.1T(\'7:4\',4);5.e(\'2o\',\'2m\');5.1f(\'1o\');b d=5.2n();d.H(9(){b l=$(g);b 1t=\'\';6(!l.J(\'B\')){6(l.J(\'a\')){l.1f(\'7-2h\');1t=l}l=l.1m(\'B:1r\')}b 18=l.x();6(18==0)18=l.t(\'x\');b 1b=l.y();6(1b==0)1b=l.t(\'y\');6(18>5.x()){5.x(18)}6(1b>5.y()){5.y(1b)}6(1t!=\'\'){1t.e(\'P\',\'1q\')}l.e(\'P\',\'1q\');4.W++});6(3.19>0){6(3.19>=4.W)3.19=4.W-1;4.f=3.19}6($(d[4.f]).J(\'B\')){4.u=$(d[4.f])}k{4.u=$(d[4.f]).1m(\'B:1r\')}6($(d[4.f]).J(\'a\')){$(d[4.f]).e(\'P\',\'1A\')}5.e(\'11\',\'10(\'+4.u.t(\'E\')+\') Z-Y\');23(b i=0;i<3.h;i++){b G=U.29(5.x()/3.h);6(i==3.h-1){5.O($(\'<D A="7-c"></D>\').e({2a:(G*i)+\'1c\',x:(5.x()-(G*i))+\'1c\'}))}k{5.O($(\'<D A="7-c"></D>\').e({2a:(G*i)+\'1c\',x:G+\'1c\'}))}}5.O($(\'<D A="7-K"><p></p></D>\').e({P:\'1q\',z:3.1U}));6(4.u.t(\'w\')!=\'\'){b w=4.u.t(\'w\');6(w.24(0,1)==\'#\')w=$(w).1d();$(\'.7-K p\',5).1d(w);$(\'.7-K\',5).1z(3.o)}b m=0;6(!3.1p&&d.1g>1){m=1E(9(){F(5,d,3,n)},3.1u)}6(3.S){5.O(\'<D A="7-S"><a A="7-27">2k</a><a A="7-25">2i</a></D>\');6(3.1R){$(\'.7-S\',5).26();5.1V(9(){$(\'.7-S\',5).2j()},9(){$(\'.7-S\',5).26()})}$(\'a.7-27\',5).1C(\'1F\',9(){6(4.L)N n;T(m);m=\'\';4.f-=2;F(5,d,3,\'1y\')});$(\'a.7-25\',5).1C(\'1F\',9(){6(4.L)N n;T(m);m=\'\';F(5,d,3,\'1x\')})}6(3.M){b 14=$(\'<D A="7-M"></D>\');5.O(14);23(b i=0;i<d.1g;i++){6(3.1P){b l=d.1B(i);6(!l.J(\'B\')){l=l.1m(\'B:1r\')}6(3.1O){14.O(\'<a A="7-1s" 1a="\'+i+\'"><B E="\'+l.t(\'1a\')+\'" 2e="" /></a>\')}k{14.O(\'<a A="7-1s" 1a="\'+i+\'"><B E="\'+l.t(\'E\').2l(3.1M,3.1N)+\'" 2e="" /></a>\')}}k{14.O(\'<a A="7-1s" 1a="\'+i+\'">\'+(i+1)+\'</a>\')}}$(\'.7-M a:1B(\'+4.f+\')\',5).1f(\'1h\');$(\'.7-M a\',5).1C(\'1F\',9(){6(4.L)N n;6($(g).2f(\'1h\'))N n;T(m);m=\'\';5.e(\'11\',\'10(\'+4.u.t(\'E\')+\') Z-Y\');4.f=$(g).t(\'1a\')-1;F(5,d,3,\'1s\')})}6(3.1X){$(2s).2F(9(1D){6(1D.1Q==\'2D\'){6(4.L)N n;T(m);m=\'\';4.f-=2;F(5,d,3,\'1y\')}6(1D.1Q==\'2C\'){6(4.L)N n;T(m);m=\'\';F(5,d,3,\'1x\')}})}6(3.1W){5.1V(9(){4.1j=Q;T(m);m=\'\'},9(){4.1j=n;6(m==\'\'&&!3.1p){m=1E(9(){F(5,d,3,n)},3.1u)}})}5.2E(\'7:X\',9(){4.L=n;$(d).H(9(){6($(g).J(\'a\')){$(g).e(\'P\',\'1q\')}});6($(d[4.f]).J(\'a\')){$(d[4.f]).e(\'P\',\'1A\')}6(m==\'\'&&!4.1j&&!3.1p){m=1E(9(){F(5,d,3,n)},3.1u)}3.20.1w(g)})});9 F(5,d,3,17){b 4=5.1T(\'7:4\');6((!4||4.1S)&&!17)N n;3.1Y.1w(g);6(!17){5.e(\'11\',\'10(\'+4.u.t(\'E\')+\') Z-Y\')}k{6(17==\'1y\'){5.e(\'11\',\'10(\'+4.u.t(\'E\')+\') Z-Y\')}6(17==\'1x\'){5.e(\'11\',\'10(\'+4.u.t(\'E\')+\') Z-Y\')}}4.f++;6(4.f==4.W){4.f=0;3.2d.1w(g)}6(4.f<0)4.f=(4.W-1);6($(d[4.f]).J(\'B\')){4.u=$(d[4.f])}k{4.u=$(d[4.f]).1m(\'B:1r\')}6(3.M){$(\'.7-M a\',5).2B(\'1h\');$(\'.7-M a:1B(\'+4.f+\')\',5).1f(\'1h\')}6(4.u.t(\'w\')!=\'\'){b w=4.u.t(\'w\');6(w.24(0,1)==\'#\')w=$(w).1d();6($(\'.7-K\',5).e(\'P\')==\'1A\'){$(\'.7-K p\',5).2c(3.o,9(){$(g).1d(w);$(g).1z(3.o)})}k{$(\'.7-K p\',5).1d(w)}$(\'.7-K\',5).1z(3.o)}k{$(\'.7-K\',5).2c(3.o)}b i=0;$(\'.7-c\',5).H(9(){b G=U.29(5.x()/3.h);$(g).e({y:\'R\',z:\'0\',11:\'10(\'+4.u.t(\'E\')+\') Z-Y -\'+((G+(i*G))-G)+\'1c 0%\'});i++});6(3.j==\'1l\'){b V=2H 2G("1K","12","1H","1e","1G","13","1I","1v");4.r=V[U.22(U.1l()*(V.1g+1))];6(4.r==2I)4.r=\'1v\'}6(3.j.2p(\',\')!=-1){b V=3.j.2t(\',\');4.r=$.2A(V[U.22(U.1l()*V.1g)])}4.L=Q;6(3.j==\'2r\'||3.j==\'1K\'||4.r==\'1K\'||3.j==\'12\'||4.r==\'12\'){b q=0;b i=0;b h=$(\'.7-c\',5);6(3.j==\'12\'||4.r==\'12\')h=$(\'.7-c\',5).1n();h.H(9(){b c=$(g);c.e(\'1L\',\'R\');6(i==3.h-1){I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o,\'\',9(){5.16(\'7:X\')})},(s+q))}k{I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o)},(s+q))}q+=1i;i++})}k 6(3.j==\'2q\'||3.j==\'1H\'||4.r==\'1H\'||3.j==\'1e\'||4.r==\'1e\'){b q=0;b i=0;b h=$(\'.7-c\',5);6(3.j==\'1e\'||4.r==\'1e\')h=$(\'.7-c\',5).1n();h.H(9(){b c=$(g);c.e(\'28\',\'R\');6(i==3.h-1){I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o,\'\',9(){5.16(\'7:X\')})},(s+q))}k{I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o)},(s+q))}q+=1i;i++})}k 6(3.j==\'1G\'||3.j==\'2u\'||4.r==\'1G\'||3.j==\'13\'||4.r==\'13\'){b q=0;b i=0;b v=0;b h=$(\'.7-c\',5);6(3.j==\'13\'||4.r==\'13\')h=$(\'.7-c\',5).1n();h.H(9(){b c=$(g);6(i==0){c.e(\'1L\',\'R\');i++}k{c.e(\'28\',\'R\');i=0}6(v==3.h-1){I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o,\'\',9(){5.16(\'7:X\')})},(s+q))}k{I(9(){c.C({y:\'s%\',z:\'1.0\'},3.o)},(s+q))}q+=1i;v++})}k 6(3.j==\'1I\'||4.r==\'1I\'){b q=0;b i=0;$(\'.7-c\',5).H(9(){b c=$(g);b 1J=c.x();c.e({1L:\'R\',y:\'s%\',x:\'R\'});6(i==3.h-1){I(9(){c.C({x:1J,z:\'1.0\'},3.o,\'\',9(){5.16(\'7:X\')})},(s+q))}k{I(9(){c.C({x:1J,z:\'1.0\'},3.o)},(s+q))}q+=1i;i++})}k 6(3.j==\'1v\'||4.r==\'1v\'){b i=0;$(\'.7-c\',5).H(9(){$(g).e(\'y\',\'s%\');6(i==3.h-1){$(g).C({z:\'1.0\'},(3.o*2),\'\',9(){5.16(\'7:X\')})}k{$(g).C({z:\'1.0\'},(3.o*2))}i++})}}};$.1k.1o.21={j:\'1l\',h:15,o:2v,1u:2y,19:0,S:Q,1R:Q,M:Q,1P:n,1O:n,1M:\'.1Z\',1N:\'2x.1Z\',1X:Q,1W:Q,1p:n,1U:0.8,1Y:9(){},20:9(){},2d:9(){}};$.1k.1n=[].2w})(2z);',62,169,'|||settings|vars|slider|if|nivo||function||var|slice|kids|css|currentSlide|this|slices||effect|else|child|timer|false|animSpeed||timeBuff|randAnim|100|attr|currentImage||title|width|height|opacity|class|img|animate|div|src|nivoRun|sliceWidth|each|setTimeout|is|caption|running|controlNav|return|append|display|true|0px|directionNav|clearInterval|Math|anims|totalSlides|animFinished|repeat|no|url|background|sliceDownLeft|sliceUpDownLeft|nivoControl||trigger|nudge|childWidth|startSlide|rel|childHeight|px|html|sliceUpLeft|addClass|length|active|50|paused|fn|random|find|_reverse|nivoSlider|manualAdvance|none|first|control|link|pauseTime|fade|call|next|prev|fadeIn|block|eq|live|event|setInterval|click|sliceUpDown|sliceUpRight|fold|origWidth|sliceDownRight|top|controlNavThumbsSearch|controlNavThumbsReplace|controlNavThumbsFromRel|controlNavThumbs|keyCode|directionNavHide|stop|data|captionOpacity|hover|pauseOnHover|keyboardNav|beforeChange|jpg|afterChange|defaults|floor|for|substr|nextNav|hide|prevNav|bottom|round|left|options|fadeOut|slideshowEnd|alt|hasClass|extend|imageLink|Next|show|Prev|replace|relative|children|position|indexOf|sliceUp|sliceDown|window|split|sliceUpDownRight|500|reverse|_thumb|3000|jQuery|trim|removeClass|39|37|bind|keypress|Array|new|undefined'.split('|'),0,{}))

});

/**
MEMBERSHIP RATE CALCULATOR
**/

calc();
function calc()
  {
  var select_num=[[1,2,3,4,5,6],[3,4,5,6,7,8],[2,3,4,5,6,7],[1,2,3,4,5,6],[2,3,4,5,6],[1,2,3,4,5,6],[1,2,3,4,5,6],[1,2,3,4,5,6]];
  var x=["75000 Plus","60000-75000","50000-60000","40000-50000","33000-40000","28000-32999","22000-27999","17000-21999","0-16,999"];
  var select_income=[["75000 Plus","60000-75000","50000-60000","40000-50000","33000-40000","28000-32999","22000-27999","17000-21999","0-16999"],["110000 Plus","90000-109999","75000-89999","65000-75000","55000-65000","45000-55000","38000-44999","34000-37999","28000-33999","0-27999"],["90000 plus","75000-90000","65000-75000","55000-65000","45000-55000","38000-44999","34000-37999","30000-33999","22000-29999","0-21999"],x,x,x,x,x];
  $("#no").empty();
  // $("#no").css("width","80%");
  // $('<option></option>').val(val).html(text)
  //  $("#no").append( new Option("---Select---","gb1"));
  $("#no").append( $('<option></option>').val("").html("---Select---"));
  $("#income").empty();
  $("#income").append( $('<option></option>').val("").html("---Select---"));
  if($("#member").val()!="")
  {
	var member=$("#member").val();
	i=0;
	while(select_num[member][i])
	{
	  //$("#no").append( new Option(select_num[member][i],i) );
	  $("#no").append( $('<option></option>').val(i).html(select_num[member][i]));
	  i++;
	}

	i=0;
	while(select_income[member][i])
	{
	  // $("#income").append( new Option(select_income[member][i],i) );
	  $("#income").append( $('<option></option>').val(i).html(select_income[member][i]));
	  i++;
	}

  }
  $("#rate").html("");
  $("#selected").html("");
}

function calval()
{
  var count=$("#no").val();
  var mem=$("#member").val()
  var income=$("#income").val();
  var count1=$("#no option:selected").text();
  count1=count1-0;
  if(count=="" || income=="")

  {
	$("#rate").html("");
	$("#selected").html("");
  }

  var a = {
	"ADULT":[
	  ["$41.50 ","$41.50 ","$41.50 ","$41.50 ","$41.50 ","$41.50 ",""],
	  ["$41.50 ","$41.50 ","$41.50 ","$41.50 ","$33 ","$20.75 ",""],
	  ["$41.50 ","$41.50 ","$41.50 ","$33 ","$20.75 ","$12.50 ",""],
	  ["$41.50 ","$41.50 ","$33 ","$20.75 ","$12.50 ","$8.25 ",""],
	  ["$41.50 ","$33 ","$20.75 ","$12.50 ","$8.25 ","$8.25 ",""],
	  ["$33 ","$20.75 ","$12.50 ","$8.25 ","$8.25 ","$8.25 ",""],
	  ["$20.75 ","$12.50 ","$8.25 ","$8.25 ","$8.25 ","$8.25 ",""],
	  ["$12.50 ","$8.25 ","$8.25 ","$8.25 ","$8.25 ","$8.25 ",""],
	  ["$8.25 ","$8.25 ","$8.25 ","$8.25 ","$8.25 ","$8.25 ",""],
	],	

	"FAMILY":[
	  ["$68.50 ","$68.50 ","$68.50 ","$68.50 ","$68.50 ","$68.50 ",""],
	  ["$68.50 ","$68.50 ","$68.50 ","$68.50 ","$68.50 ","$56 ",""],
	  ["$68.50 ","$68.50 ","$68.50 ","$56 ","$56 ","$35 ",""],
	  ["$68.50 ","$68.50 ","$56 ","$35 ","$35 ","$20.75 ",""],
	  ["$56 ","$56 ","$35 ","$35 ","$20.75 ","$20.75 ",""],
	  ["$35 ","$35 ","$20.75 ","$20.75 ","$13.50 ","$13.50 ",""],
	  ["$20.75 ","$20.75 ","$20.75 ","$13.50 ","$13.50 ","$13.50 ",""],
	  ["$20.75 ","$20.75 ","$13.50 ","$13.50 ","$13.50 ","$13.50 ",""],
	  ["$13.50 ","$13.50 ","$13.50 ","$13.50 ","$13.50 ","$13.50 ",""],
	  ["$13.50 ","$13.50 ","$13.50 ","$13.50 ","$13.50 ","$13.50 ",""],
	],

	"SINGLEPARENTFAMILY":[
	  ["$50.50 ","$50.50 ","$50.50 ","$50.50 ","$50.50 ","$50.50 ",""],
	  ["$50.50 ","$50.50 ","$50.50 ","$50.50 ","$40.25 ","$40.25 ",""],
	  ["$50.50 ","$50.50 ","$50.50 ","$40.25 ","$25.75 ","$25.75 ",""],
	  ["$50.50 ","$50.50 ","$40.25 ","$25.75 ","$25.75 ","$15.50 ",""],
	  ["$40.25 ","$40.25 ","$25.75 ","$15.50 ","$15.50 ","$10.50 ",""],
	  ["$25.75 ","$25.75 ","$15.50 ","$15.50 ","$10.50 ","$10.50 ",""],
	  ["$15.50 ","$15.50 ","$15.50 ","$10.50 ","$10.50 ","$10.50 ",""],
	  ["$15.50 ","$15.50 ","$10.50 ","$10.50 ","$10.50 ","$10.50 ",""],
	  ["$10.50 ","$10.50 ","$10.50 ","$10.50 ","$10.50 ","$10.50 ",""],
	  ["$10.50 ","$10.50 ","$10.50 ","$10.50 ","$10.50 ","$10.50 ",""],
	],

	"SENIOR":[
	  ["$35 ","$35 ","$35 ","$35 ","$35 ","$35 ",""],
	  ["$35 ","$35 ","$35 ","$35 ","$28 ","$17.50 ",""],
	  ["$35 ","$35 ","$35 ","$28 ","$17.50 ","$10.50 ",""],
	  ["$35 ","$35 ","$28 ","$17.50 ","$10.50 ","$7.25 ",""],
	  ["$35 ","$28 ","$17.50 ","$10.50 ","$7.25 ","$7.25 ",""],
	  ["$28 ","$17.50 ","$10.50 ","$7.25 ","$7.25 ","$7.25 ",""],
	  ["$17.50 ","$10.50 ","$7.25 ","$7.25 ","$7.25 ","$7.25 ",""],
	  ["$10.50 ","$7.25 ","$7.25 ","$7.25 ","$7.25 ","$7.25 ",""],
	  ["$7.25 ","$7.25 ","$7.25 ","$7.25 ","$7.25 ","$7.25 ",""],
	],

	"COUPLE":[
	  [" $59.50 "," $59.50 "," $59.50 "," $59.50 "," $59.50 ","",""],
	  [" $59.50 "," $59.50 "," $59.50 "," $47.50 "," $30 ","",""],
	  [" $59.50 "," $59.50 "," $47.50 "," $30 "," $17.50 ","",""],
	  [" $59.50 "," $47.50 "," $30 "," $17.50 "," $12.50 ","",""],
	  [" $47.50 "," $30 "," $17.50 "," $12.50 "," $12.50 ","",""],
	  [" $30 "," $17.50 "," $12.50 "," $12.50 "," $12.50 ","",""],
	  [" $17.50 "," $12.50 "," $12.50 "," $12.50 "," $12.50 ","",""],
	  [" $12.50 "," $12.50 "," $12.50 "," $12.50 "," $12.50 ","",""],
	  [" $12.50 "," $12.50 "," $12.50 "," $12.50 "," $12.50 ","",""],
	],

	"YOUNGADULT":[
	  ["$21 ","$21 ","$21 ","$21 ","$21 ","$21 ",""],
	  ["$21 ","$21 ","$21 ","$21 ","$16.50 ","$10.50 ",""],
	  ["$21 ","$21 ","$21 ","$16.50 ","$10.50 ","$6.25 ",""],
	  ["$21 ","$21 ","$16.50 ","$10.50 ","$6.25 ","$4.25 ",""],
	  ["$21 ","$16.50 ","$10.50 ","$6.25 ","$4.25 ","$4.25 ",""],
	  ["$16.50 ","$10.50 ","$6.25 ","$4.25 ","$4.25 ","$4.25 ",""],
	  ["$10.50 ","$6.25 ","$4.25 ","$4.25 ","$4.25 ","$4.25 ",""],
	  ["$6.25 ","$4.25 ","$4.25 ","$4.25 ","$4.25 ","$4.25 ",""],
	  ["$4.25 ","$4.25 ","$4.25 ","$4.25 ","$4.25 ","$4.25 ",""],
	],

	"TEEN":[
	  ["$15.50 ","$15.50 ","$15.50 ","$15.50 ","$15.50 ","$15.50 ",""],
	  ["$15.50 ","$15.50 ","$15.50 ","$15.50 ","$12.50 ","$8.25 ",""],
	  ["$12.50 ","$12.50 ","$12.50 ","$12.50 ","$8.25 ","$5.25 ",""],
	  ["$8.25 ","$8.25 ","$8.25 ","$8.25 ","$5.25 ","$3.25 ",""],
	  ["$5.25 ","$5.25 ","$5.25 ","$5.25 ","$3.25 ","$3.25 ",""],
	  ["$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ",""],
	  ["$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ",""],
	  ["$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ",""],
	  ["$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ","$3.25 ",""],
	],

	"YOUTH":[
	  ["$12.50","$12.50 ","$12.50 ","$12.50","$12.50","$12.50",""],
	  ["$12.50","$12.50 ","$12.50 ","$12.50","$10.50","$6.25",""],
	  ["$10.50","$10.50","$10.50","$10.50","$6.25","$4.25 ",""],
	  ["$6.25","$6.25 ","$6.25 ","$6.25 ","$4.25 ","$2.25 ",""],
	  ["$4.25","$4.25","$4.25","$4.25","$2.25","$2.25",""],
	  ["$2.25 ","$2.25 ","$2.25 ","$2.25 ","$2.25","$2.25",""],
	  ["$2.25","$2.25","$2.25","$2.25","$2.25","$2.25",""],
	  ["$2.25 ","$2.25 ","$2.25 ","$2.25 ","$2.25 ","$2.25",""],
	  ["$2.25","$2.25","$2.25","$2.25","$2.25","$2.25",""],
	]
  }

  if(count!="" && income!="")
  {
	var fee;
	income=income-0;
	count=count-0;

	if(mem==0)
	{
	  fee=a.ADULT[income][count];	 
	}

	if(mem==1)
	{
	  fee=a.FAMILY[income][count]; 
	}

	if(mem==2)
	{
	  fee=a.SINGLEPARENTFAMILY[income][count];	 
	}

	if(mem==3)
	{
	  fee=a.SENIOR[income][count];	 
	}

	if(mem==4)
	{
	  fee=a.COUPLE[income][count];
	}

	if(mem==5)
	{
	  fee=a.YOUNGADULT[income][count];	 
	}

	if(mem==6)
	{
	  fee=a.TEEN[income][count];
	}
	
	if(mem==7)
	{
	  fee=a.YOUTH[income][count];	 
	}
	fee=(fee.split("$"));
	fee=fee[1]-0;
    fee = fee.toFixed(2);
	//var rate=fee*count1;

	$("#rate").html("$"+fee);
	$("#selected").html(count1+" Member");
  }
}
