// JavaScript Document
function Show(id1){
	wObj = document.getElementById(id1);	
		if (wObj.style.display == 'none') {
			wObj.style.display = 'block';
			if (navigator.appName == 'Netscape') {
				h = wObj.offsetHeight;
				if (wObj.id=='u1') {h = 216;}
				wObj.style.height = 0 + 'px';
				wObj.style.opacity=0;
				op=0;
				down();
				opp=0;
				t = setTimeout('appear()',500);
			}
		} 
		else {
			if (navigator.appName == 'Netscape') {
				h = wObj.offsetHeight;
				op=1;
				opp=1;
				disappear();
				t = setTimeout('up()',500);
			} else{
				wObj.style.display = 'none';	
			}
		}
}


function appear() {	
	if(opp < 1) {
		opp += 0.1;
		wObj.style.opacity = opp;
		wObj.style.filter='alpha(opacity='+opp*100+')';
		t = setTimeout('appear()', 30);
	}
}


function disappear() {	
	if(opp > 0) {
		opp -= 0.1;
		wObj.style.opacity = opp;
		wObj.style.filter='alpha(opacity='+opp*100+')';
		t = setTimeout('disappear()', 30);
	}
}

function down() {	
	if(op < 0.9) {
		op += 0.1;
		wObj.style.height = op*h + 'px';
		t = setTimeout('down()', 30);
	}
}
function up() {	
	if(op > 0) {
		op -= 0.1;
		wObj.style.height = op*h + 'px';
		if(op < 0.1) {wObj.style.display = 'none'; wObj.style.height = h;}
		t = setTimeout('up()', 30);
	}
}


function Hide(id2){
	var el = document.getElementsByTagName('div');
	var len = el.length;
	for (i=0; i<len; i++) {
		if (el[i].id == id2){el[i].style.display = 'none'}
	}
}

function chColor(nameEl){
	var el = document.getElementsByTagName('select');
	var len = el.length;
	for (i=0; i<len; i++) {
		if (el[i].value == 0){el[i].style.color = '#000000'}else{el[i].style.color = '#e87019'}
	}
};

