// JavaScript Document

//function showhide(what){
//	if ($_(what).style.display == 'none' || $_(what).style.display == ''){
//		$_(what).style.display = 'block';	
//	}else{
//		$_(what).style.display = 'none';
//	}
//}

//function showtab(whichone,title){
//	if (title == null || title == ''){
//		title = whichone;
//	}
//	$_('tabTitle').innerText = div+' '+toTitleCase(title);
//	$_('tabTitle').style.backgroundImage = 'url("/images/layout/tabs/bar_'+whichone+'.jpg")';
//	hideall('div','tabs_all_contents');
//	$_('tab_'+whichone).style.display = 'block';
//}

//function hideall(what,inwhere){
//	where = $_(inwhere);
//	elements = where.getElementsByTagName(what);
//	for (n = 0; n<elements.length; n++){
//		elements[n].style.display = 'none';
//	}
//}

function showtab(whichone,title){
	title = title || whichone;
	
	$_('tab_'+currentTab).style.display = 'none';
	currentTab = whichone;
	$_('tab_'+currentTab).style.display = 'block';
	
	$_('tabTitle').innerHTML = div+' '+toTitleCase(title);
	$_('tabTitle').style.backgroundImage = 'url("/images/layout/tabs/bar_'+whichone+'.jpg")';
}

var currentTab = 'results';