i=0;
img_a=new Array()
img_a[0]=new Image()
img_a[1]=new Image()
img_a[0].src="./banners/moon_breath_468x60.bmp"
img_a[1].src="./banners/psbwlogo.gif"

function img_b()
{
document.images[0].src=img_a[i].src
document.images[0].src=img_a[i].src
i++
if(i>1) i=0;
setTimeout("img_b()", 10000)
}
function clock(){
day=new Date()
clock_f=day.getHours()+":"+day.getMinutes()+":"+day.getSeconds()
document.f_clock.value=clock_f
id=setTimeout("clock()",100)
}
function switch_color(){
   var div = document.getElementById("switch_div");
			if(div.style.color == 'black'){
				div.style.background = 'none';
				div.style.color = 'white';
				h2.color = 'white';
				h3.color = 'white';
				h4.color = 'white';
				h1.color = 'white';
			}
			else{
				div.style.background = 'white';
				div.style.color = 'black';
				h2.color = 'black';
				h3.color = 'black';
				h4.color = 'black';
				h1.color = 'black';
			}
		}
function comment_show(){
var id = document.getElementById ('comment');
id.display='block';
}
function hide(n){
	if(n=='s_all'){
		show_head();
		show_sub('_perl');
		show_sub('_prog');
		show_sub('_os');
		show_sub('_Inet');
		show_sub('_web');
		show_sub('_jff');
		show_sub('_prepodi');
		show_sub('_other');
		show_sub('_yun');
		show_sub('_chronic');
		show_sub('_use');
		show_sub('_people');
		return 0;
	}else if(n=='h_all'){
		hide_head();
		hide_sub('_perl');
		hide_sub('_prog');
		hide_sub('_os');
		hide_sub('_Inet');
		hide_sub('_web');
		hide_sub('_jff');
		hide_sub('_prepodi');
		hide_sub('_other');
		hide_sub('_yun');
		hide_sub('_chronic');
		hide_sub('_use');
		hide_sub('_people');
		return 0;
	}else{
		var id = document.getElementById ("hidden"+n);
		var name = document.getElementById (n);
		if(id.style.display != 'none'){
			id.style.display = 'none';
			name.style.background = 'none';
		}else{id.style.display = 'block';
		name.style.background = 'gray';
		}
	}
}
function show_head(){
	var a = document.getElementById ('h_all');
	var b = document.getElementById ('s_all')
	a.style.display = 'block';
	b.style.display = 'none';
}
function hide_head(){
	var a = document.getElementById ('s_all')
	var b = document.getElementById ('h_all')
	b.style.display = 'none';
	a.style.display = 'block';
}
function show_sub(n){
	var id = document.getElementById ("hidden"+n);
	var name = document.getElementById (n);
	id.style.display = 'block';
	name.style.background = 'gray';
}
function hide_sub(n){
	var id = document.getElementById ("hidden"+n);
	var name = document.getElementById (n);
	id.style.display = 'none';
	name.style.background = 'none';
}
