// JavaScript Document


$(document).ready(function() { 
						   
 		setcolumns();

	$("ul.css-tabs").tabs("div.css-panes > div.newpane");
	$('.loctable tbody tr:even').addClass('greyback');
	$('.loctable tbody tr td:even').addClass('boldright');


	$('.headliner').hide();

	$('.bigheaderbox').hide();
	
	$('.reasonhead').css("cursor", "pointer");
	$('.reasonhead').click(function() {
									
			var id_num = getnum($(this).attr("id"));
			// alert(id_num);
				$('#bigheader'+id_num).lightbox_me({
				centered: true, 
				overlayCSS: {background: 'black',opacity: .3},
				closeSelector: 	".killcross",
				overlaySpeed:  	300,
				lightboxSpeed:  	"slow"
				});
	});

	$('#topbox').delay(1000).fadeIn(3000, function(){ 
		$('#topbox').delay(5000).append('<b>it is a science</b>');		
 	 });

	$('.headliner').delay(1000).fadeIn(1000, function(){ 
		// $('#topbox').delay(5000).append('<b>it is a science</b>');		
		// setcolumns();
 	 });




});

function getnum(thisid){
	newid=thisid.substring(6);
	return newid;
}


function nothing(){
}

function setcolumns(){
var divheight = $('#content').height();
//var rdivheight = $('#outerRight').height();
//	if(rdivheight>divheight){divheight=rdivheight;}
	if(divheight<636){divheight=636;}
//	alert(divheight);
$('#leftColumn').css("height",(divheight+100));
$('#leftColumn').css("background-image", "url(images/site/leftback.jpg)");
$('#outerRight').css("height",(divheight+120));
$('#outerRight').css("border-left", "solid 1px #75afdf");

}

