//Fix an issue with IE caching of images causing some images to flicker on mouseover
try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}

// First, let's tell tag the page when javascript is on.
$(function() {
	$("body").addClass("jsOn");


// addClass last
	$(".dataTable th:first-child").addClass("first");
	$(".dataTable th:last-child").addClass("last");
	$(".dataTable tr td:first-child").addClass("first");
	$(".dataTable tr td:last-child").addClass("last");

// adding raquo to links
	$("#leftColumnModule.relatedArticles li a").append("<span>&nbsp;&raquo;</span>");

// zebra tables
	$("#content table.dataTable").each(function(){
		$("tr:nth-child(odd)").addClass("odd");


}); // Bye-bye jQuery! ------------------------------

// Featured LCC Images
var featuredLCC = new Array() 

featuredLCC[0] = 'images/feature/featuredLCC01.jpg'
featuredLCC[1] = 'images/feature/featuredLCC02.jpg'
featuredLCC[2] = 'images/feature/featuredLCC03.jpg'
featuredLCC[3] = 'images/feature/featuredLCC04.jpg'
featuredLCC[3] = 'images/feature/featuredLCC05.jpg'

$("#feature.refresher").each(function(){

	if (document.getElementById && document.createTextNode) {
	 
	  var the_div = document.getElementById("feature");
	  var ran_num = Math.floor(Math.random()*(featuredLCC.length));
	  
	  var the_HTML = "<img src=\""+featuredLCC[ran_num]+"\" />";
	  the_div.innerHTML = the_HTML;
	  
	}
});

	
	
	});
