 $(document).ready(function(){
	$('ul.tabNav a').click(function() {
		var curChildIndex = $(this).parent().prevAll().length + 1;
		$(this).parent().parent().children('.current').removeClass('current');
		$(this).parent().addClass('current');
		$(this).parent().parent().next('.tabContainer').children('.current').fadeOut('fast',function() {
			$(this).removeClass('current');
			$(this).parent().children('div:nth-child('+curChildIndex+')').fadeIn('fast',function() {
				$(this).addClass('current');
			});
		});
		return false;
	});
	
	$('#faqaccordion').accordion({
		 collapsible: true, 
		 autoHeight: false 
	});
	
	 $("a.readmore1").click(function () {
      $("#more1").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
	 
	  $("a.readmore2").click(function () {
      $("#more2").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
	
	 $("a.readmore3").click(function () {
      $("#more3").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
	 
	  $("a.readmore4").click(function () {
      $("#more4").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
	  
	   $("a.readmore5").click(function () {
      $("#more5").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
	   
	    $("a.history").click(function () {
      $("#history").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
		    $("a.history2").click(function () {
      $("#history2").toggle();
	  $(this).text($(this).text() == 'Read More' ? 'Hide' : 'Read More'); // <- HERE
    return false; 
    });
}); 
