/*<!--//--><![CDATA[//><!--*/

sfHover = function() {
	busca_a();

	var sfEls = getElementsByClass("td_explorer");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sobre";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sobre\\b"), "");
		}
	}

	var sfEls = getElementsByClass("h3_explorer");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" h3_sobre";
			//alert(this.className)
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" h3_sobre\\b"), "");
		}
	}

	var sfEls = getElementsByClass("h3_explorer_2");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" h3_sobre_2";
			//alert(this.className)
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" h3_sobre_2\\b"), "");
		}
	}

	var sfEls = getElementsByClass("h3_explorer_3");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" h3_sobre_3";
			//alert(this.className)
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" h3_sobre_3\\b"), "");
		}
	}

}

function busca_a(){

	var sfEls = getElementsByClass("tipo1_sin_img");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" tipo1_sin_img_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tipo1_sin_img_hover\\b"), "");
		}
	}

	var sfEls = getElementsByClass("tipo1_sin_img_verde");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" tipo1_sin_img_hover_verde";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tipo1_sin_img_hover_verde\\b"), "");
		}
	}
	
	var sfEls = getElementsByClass("tipo1_img1");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" tipo1_img1_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tipo1_img1_hover\\b"), "");
		}
	}

	var sfEls = getElementsByClass("tipo1_img2");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" tipo1_img2_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tipo1_img2_hover\\b"), "");
		}
	}

	var sfEls = getElementsByClass("tipo1_img3");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" tipo1_img3_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" tipo1_img3_hover\\b"), "");
		}
	}


	var sfEls = getElementsByClass("icoHoja");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.className+=" icoHoja_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" icoHoja_hover\\b"), "");
		}
	}

	/////////////// busco bolds dentro de links para subrayarlos y cambiar el color al entrar /////
	var els = document.getElementsByTagName("a");
	var elsLen = els.length;
	for (i = 0; i < elsLen; i++) {
		
		var tiene = false ; 
		var els2 = els[i].getElementsByTagName("b");
		if(els2.length > 0) { 
			tiene = true ; 
			for (j = 0; j < els2.length; j++) { 
			  els2[j].style.textDecoration = "none"
			  els2[j].style.fontWeight = "normal"
			  els2[j].style.textTransform = "uppercase";
			  if( els[i].className =="ninguno_javascript" )
				  continue ; 
			  else if( els[i].className != "link_verde_javascript" )
				els2[j].style.color = "#009ee0";
			  else 
				els2[j].style.color = "#009036";
						 
			}
		}
		if(tiene)
		{
				els[i].onmouseover=function() {
						var els2 = this.getElementsByTagName("b");
						if(els2.length > 0) {  
							for (j = 0; j < els2.length; j++) {
							  this.color_antiguo = els2[j].style.color ;  
							  //els2[j].style.color = "#70CAEE";
							  els2[j].style.textDecoration = "underline" ;
							}
						}
				}

				els[i].onmouseout=function() {
						var els2 = this.getElementsByTagName("b");
						if(els2.length > 0) {  
							for (j = 0; j < els2.length; j++) {
							  
							  els2[j].style.color = this.color_antiguo ;
							  els2[j].style.textDecoration = "none" ;
							}
						}
				}
			
		}
	}
	//////////// busco links sueltos para links de una palabra /////////////////////
	var sfEls = getElementsByClass("link_unico");
	for (var i=0; i<sfEls.length; i++) {
		
		sfEls[i].onmouseover=function() {
			this.style.textDecoration = "underline";
		}
		sfEls[i].onmouseout=function() {
			this.style.textDecoration = "none";
		}
	}


	///////////////////////////////////////////////////////////////////////////////
	return ;
}
function getElementsByClass(searchClass,tag, node) {

	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\s)"+searchClass+"(\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}
if (window.attachEvent) 
   window.attachEvent("onload", sfHover);
else 
   window.onload = busca_a ;
/*//--><!]]>*/

