$(document).ready(function() {
						   
						   
			/*edit by bird*/
		$('table.tableColor tbody tr:even').addClass("even-row"); // Add class "alt-row" to even table rows
		$('table.tableColor tbody tr:odd').addClass("odd-row"); // Add class "alt-row" to even table rows
		
		// Highlight table
		//var eventOver = function(){ $(this).addClass("event-over-row");};
		var eventOver = function(){ $(this).addClass("event-over-row");};
		var eventOut = function(){$(this).removeClass("event-over-row");};
		$(" table.tableColor tbody tr").hover(eventOver, eventOut);
		/*edit by bird*/			   
						   
						   
		
		// Preload all rollovers
		$("#nav img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.gif$/ig,"_over.gif");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#nav a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"_over.gif"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#nav a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
/*});

$(document).ready(function(){*/

$('a#toggle').click(function() {

    $('#box').toggle(400); 

	return false;

  });



   		 // Content box tabs orange:		
		$('.tabs11  div.tabs11-content').hide(); // Hide the content divs
		$('.tabs11 .tabs11-nav ul li.default-tab').addClass('current'); // Add the class "current" to the default tab
		$('.tabs11 div.default-tab').show(); // Show the div with class "default-tab"
		
		$('.tabs11 .tabs11-nav ul li').click( // When a tab is clicked...
			function() { 
				$(this).parent().find("li").removeClass('current'); // Remove "current" class from all tabs
				$(this).addClass('current'); // Add class "current" to clicked tab
				var currentTab = $(this).find("a").attr('href'); // Set variable "currentTab" to the value of href of clicked tab
				$(currentTab).siblings().hide(); // Hide all content divs
				$(currentTab).show(); // Show the content div with the id equal to the id of clicked tab
				return false; 
			}
		);
  });  
