
// dataTable
//$(document).ready(function(){
$(window).load(function(){	

	/* datatables */
	$(".dataTable").attr("border","0");
	$(".dataTable").attr("cellspacing","0");
	$(".dataTable tr:odd").attr("class","odd");
	$(".dataTable tr:even").attr("class","even");
	
	/* flags */
	$(".dataTable td.green").css("background-color","lightgreen");
	$(".dataTable td.red").css("background-color","#FF9797");
	$(".dataTable td.yellow").css("background-color","#FFFF7D");	
	
	/* resize column */
	var middle = $("#middle").height(); 
	var col2 = $("#column2").height();
	var height = (middle > col2) ? middle : col2;
	$("#middle, #column2").height(height);
//	$("#column1, #column2").css("border","solid 1px blue");
//	alert(height);

	// subnav
	$("#nav ul ul li:first-child").attr("class","first");	
	$("#nav ul ul li:last-child").attr("class","last");	
		
	// colorbox
	$(".cb800420").colorbox({width:"800px", height:"420px", iframe:true, opacity:"0.75"});
	$(".cb800600").colorbox({width:"800px", height:"600px", iframe:true, opacity:"0.75"});	
	$(".cb600500").colorbox({width:"600px", height:"500px", iframe:true, opacity:"0.75"});		
	$(".cb800500").colorbox({width:"800px", height:"500px", iframe:true, opacity:"0.75"});		
	$(".cb700400").colorbox({width:"700px", height:"400px", iframe:true, opacity:"0.75"});		
	$(".cb700500").colorbox({width:"700px", height:"500px", iframe:true, opacity:"0.75"});			

});

