function showlayer(n,num){
	var chgStr;
	hideAll(n);
	if (document.getElementById) {  						// DOM3 = IE5, NS6 
			document.getElementById(n+num).style.visibility='visible'; 	
	}//if
	else{
		if (navigator.appName=='Netscape'&&document.layers != null) {
	 		chgStr = "document." + n + num + ".visibility=\'visible\'";
	 		eval(chgStr);
		}//inner if
		else if (document.all != null) { //IE	
	 		chgStr = "document.all." + n + num + ".style.visibility=\'visible\'";
	 		eval(chgStr);
		}//inner else
	}//else
}//showlayer

function hidelayer(n){
	var chgStr;
	if (document.getElementById) {  						// DOM3 = IE5, NS6 
		document.getElementById(n).style.visibility='hidden'; 	
	}//if
	else{	
		if (navigator.appName=='Netscape'&&document.layers != null) {
	 		chgStr = "document." + n + ".visibility=\'hidden\'";
	 		eval(chgStr);
		}//inner if
		else if (document.all != null) { //IE
	 		chgStr = "document.all." + n + ".style.visibility=\'hidden\'";
	 		eval(chgStr);
		}//inner else
	}//else
}//hidelayer

function hideAll(n){
	var end;
	if (n == "def"){
		end = 11;
	}
	if (n == "price"){
		end = 5;
	}	
	
	var chgStr;
	chgStr = "hideThese(n,0,"+end+");";
	eval(chgStr);
}


function hideThese(n,start,end){
	for(x=start;x<=end;x++){	
		hidelayer(n+x);
	}
}

function hideallprice(n,start,end){
	for(x=start;x<=end;x++){
		hidelayer(n+x);
	}
}

function hideallhere(start,end){
    //hideall('budn',start,end);
    hideall('budown',start,end);
}

function showlay(x){
    //showlayer('budn'+x);
    showlayer('budown'+x);
}
function hidelay(x){
    //hidelayer('budn'+x);
    hidelayer('budown'+x);
}
