// JavaScript Document
function searchfoc(w,mode){
	if(mode == 'blur'){
		if(document.getElementById('searchbox').value == ''){
			document.getElementById('searchbox').value = w;
		}
		
	}
	else{
		if(document.getElementById('searchbox').value == w){
			document.getElementById('searchbox').value = '';
		}
	}
}

function ch_img(id,sr){
	document.getElementById(id).src = sr;
}

function ch_style(id,cl){
	document.getElementById(id).className = cl;
}

function hide(id){
	document.getElementById(id).style.display = "none";
}

function show(id){
	document.getElementById(id).style.display = "";
}

function pop_gal(url,galID,pic){
	window.open(url+'tools/gallery.php?gal='+galID+'&cur='+pic, 'gallery','location=yes,toolbar=no,status=no,scrollbars=yes,menubar=no,width=720,height=600,left=50,top=50');
}

function showHide(id){
	stat = document.getElementById(id).style.display;
	if(stat == 'none'){
		document.getElementById(id).style.display = "";
	}
	else{
		document.getElementById(id).style.display = "none";
	}
}

function ch_sm(type){
	if(type == 'cats'){
		ch_style('cats_a','sel');
		ch_style('hrono_a','');
		hide('hrono');
		show('cats');
	}
	else{
		ch_style('cats_a','');
		ch_style('hrono_a','sel');
		show('hrono');
		hide('cats');
	}
}