$(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').show('fast',function() {
			$(this).removeClass('current');
			
			
			
			$(this).parent().children('div:nth-child('+curChildIndex+')').hide('fast',function() {
				$(this).addClass('current');
			});
		});
		return false;								
	});
	
	
	
});
function toggle(x) {
	var ele = document.getElementById("toggleText"+x);
	var text = document.getElementById("displayText"+x);
	if(ele.style.display == "block") {
    	 		ele.style.display = "none";				
				text.innerHTML = "Comment composition options (+)";	
  			}
		else {
				ele.style.display = "block";					
				text.innerHTML = "Comment composition options (-)";
			}
		}	
