
/********** funciones para parpadeo *****************/
var blink_b1_ind=1;
function startBlink(id){
	var el=document.getElementById(id);
	var arr;
	if(el.getAttibute("rel")){
		arr=el.getAttibute("rel").split("|");
		switch(arr[0]){
			case "b1":
				setTimeout("BlinkB1('"+id+"');",arr[1]);
				break;
		}
	} else {
		return -1;
	}
}
function BlinkB1(id,rel){
	var el=document.getElementById(id);
	var arr;
	if(el.getAttibute("rel")){
		arr=el.getAttibute("rel").split("|");
		el.style.color="#"+arr[blink_b1_ind+1];
		blink_b1_ind=blink_b1_ind+1;
		if(blink_ind>(arr.length-2)){
			blink_b1_ind=1;
		}
	} else {
		return -1;
	}
}
/********* funcions per menu desplegable ************/
function showID(id){
	document.getElementById(id).style.visibility="visible";
}
function hideID(id){
	document.getElementById(id).style.visibility="hidden";
}
/******************************************************/