function fade_in_child(parent_node,child_node,t){
	if(parent_node.childNodes[child_node]){
		var c = parent_node.childNodes[child_node];
		if(!c.style.opacity){
			c.style.opacity = "0";
		}
		var opa = parseFloat(c.style.opacity)+0.01;
		if(opa<1){
			c.style.opacity = opa;
			fadeInChild = setTimeout(function(){fade_in_child(parent_node,child_node,t);},15);
		} else {
			child_node++;
			fadeInChild = setTimeout(function(){fade_in_child(parent_node,child_node,t);},t);
		}
	}
}


function init_checkbox(){
	var d,e,f;
	for(i in document.getElementById('search_form').childNodes){
		if(document.getElementById('search_form').childNodes[i].tagName=='P'){
			d = document.getElementById('search_form').childNodes[i];
			for(j in d.childNodes){
				if(d.childNodes[j].tagName=='INPUT'&&d.childNodes[j].type=='checkbox'){
					f = d.childNodes[j];
				}
			}
			f.onchange=function(){
				for(j in this.parentNode.childNodes){
					if(this.parentNode.childNodes[j].tagName=='LABEL'){
						if(this.checked){
							this.parentNode.childNodes[j].className='selected';
						} else {
							this.parentNode.childNodes[j].className='';
						}
					}
				}
			};
		}
	}
}

