$( document ).ready( function() {
						   				 
     //alert( "Thanks for visiting!" );
	 
	//$( 'table.grade tr:not( :has( td[class] ) )' ).hide();
	
	// $( 'table.grade tr:not( :has( td[class] ) ):not( :has(th) )' ).hide();
 
//	  $("table.grade tr").not(":has( td[class] )").not(":has( th )").hide();

	 $( 'table.grade tr:not( :has( td[class], th ) )' ).hide();
	 $( 'table#resumido tr' ).show();
	 
 } );




$(document).ready( function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('div#detail').hide();
	$('div#simple').show();
	
	
	 $('a#toggle').toggle(

		function() { // you can add as much here as you'd like
		
			$('div#detail').toggle(0);//200
			$('div#simple').toggle(0);
			
			$('a#toggle img').attr('src','/Portals/0/bt_simple.png');
		
		}, function() { // same here
		
			$('div#detail').toggle(0);
			$('div#simple').toggle(0);//200
			
			$('a#toggle img').attr('src','/Portals/0/bt_detail.png');
		
		} 
	);
	 
	 
	
	/*    
	// shows the slickbox on clicking the noted link
	$('a#slick-show').click(function() {
	$('#slickbox').show('slow');
	return false;
	});
	
	// hides the slickbox on clicking the noted link
	$('a#slick-hide').click(function() {
	$('#slickbox').hide('fast');
	return false;
	});
	*/

/*	
	// toggles the slickbox on clicking the noted link
//	$('a#toggle').click( function() {
								  
	if( $('#imgtoggle').src() == 'bt_detail.png') { 
	 
	// 	$('#toggle').text('Grade Simples'); 
	//	$('#toggle').append('<img src="/Portals/0/bt_simple.png" />');
		$('#imgtoggle').src('/Portals/0/bt_simple.png');
		
		$('div#detail').toggle(200);
		$('div#simple').toggle(0);	
	 
	 }
	 else {
		 
	//	$('#toggle').text('Grade Detalhada');
	//	$('#toggle').append('<img src="/Portals/0/bt_detail.png" />');
		$('#imgtoggle').src('/Portals/0/bt_detail.png');
		
		$('div#detail').toggle(0);
		$('div#simple').toggle(200);
		
	 }	
	return false;
	
	});
*/	
  
});
