function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function showFeature(idToShow)
{
	$('.featureText:visible').fadeOut(400, function() {		});
	
	// Fade out the currently visible feature	
	$('div.feature:visible').fadeOut(400, function() { 
												   
		$('.featuresNavigation img').removeClass('chosen');								   
												   
		$('#feature-' + idToShow + '-nav-img').addClass('chosen');
		
		// Hide the feature text, so we can fade it in instead of just appearing		
		$('#featuretext-' + idToShow).hide();
		
		// Receal the selected feature
		$('#feature-' + idToShow).fadeIn(400, function() {
			
			// Next, fade in the actual feature text
			$('.featureText').animate({	opacity: 0.9 }, 0, function() {		});
			$('#featuretext-' + idToShow).delay(400).fadeIn(800, function() {			});
		});		
	});
	
}

function toggleNews()
{
	$('.newsHidden').slideToggle(400, function() {
			// Finished showing selected featuretext-#
	});
}

// Automatically format tables
$(document).ready(function() {
   $("table:not(#dg_search_box) tr:nth-child(even)").addClass("even");
   $("table:not(#dg_search_box) tr:nth-child(odd)").addClass("odd");
});
