// JavaScript Document

<!--
var ns6 = (!document.all && document.getElementById)? 1:0;
var ie4 = (document.all)? 1:0;
var ns4 = (document.layers)? 1:0;
<!--//

function mostrar(id) {

	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }

	  if (!item) {}
	  else if (item.style) {
		if (item.style.display == "none"){ item.style.display = ""; }
	  }else{ item.visibility = "show"; }

}

function ocultar(id) {

	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }

	  if (!item) {}
	  else if (item.style) {
		item.style.display = "none";
	  }else{ item.visibility = "hidden"; }

}
//-->
<!--
	function mySelect(form){
	    form.select();
    }
	function display(d1, d2) {
	  if (d1 != '') DoDiv(d1);
	  if (d2 != '') DoDiv(d2);
	}
	function DoDiv(id) {
	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }
	  if (!item) {
	  }
	  else if (item.style) {
		if (item.style.display == "none"){ item.style.display = ""; }
		else {item.style.display = "none"; }
	  }else{ item.visibility = "show"; }
 	}
//-->
<!--
function onMouse (accion,fecha,td,jugado){
if (accion == "Over"){tdisplay="block";tdcolor="#DDDDDD";tdborde="#CCCCCC 1px solid";tdfilter='';tdopacity='1.0';}else{tdisplay="none";tdcolor="#FFFFFF";tdborde="#FFFFFF 1px solid";tdfilter='alpha(opacity=30)';tdopacity='.3';}
document.getElementById('globo_'+fecha).style.display = tdisplay;
if (jugado=="true"){ td.style.filter=tdfilter; td.style.opacity=tdopacity; }
td.style.backgroundColor=tdcolor;
td.style.border=tdborde;
}
//-->
<!--
var arrMenu = new Array();
          function VerItem(td,opcion){
		  mostrar('tr_eee');
		  mostrar('tr_sep');
		  ocultar('div_vacio');
            for( i = 0 ; i < (arrMenu.length-1) ; i++ ){
			ocultar("div_"+arrMenu[i]);
			document.getElementById("item_"+arrMenu[i]).className='menu_ppal_off';
			MM_swapImgRestore();
            }
			td.className='menu_ppal_on';
			MM_swapImage('menu_'+opcion,'','/img/px_ceee.gif',1);
			
            document.getElementById("div_"+opcion).style.display = "block";
          }
//-->
<!--
var arrEstad = new Array();
          function VerEstad(td,num){
            for( i = 1 ; i < 5 ; i++ ){
            document.getElementById("est_col_"+i).style.display = "none";
            document.getElementById("Estad_ico_"+i).style.backgroundColor = "";
            document.getElementById("Estad_sep_"+i).className = "";
			document.getElementById('Est_sep_img_'+i).src='/img/px.gif';
            }
            document.getElementById("est_col_"+num).style.display = "block";
            document.getElementById("Estad_sep_"+num).className = "td_pie_br";
			document.getElementById('Est_sep_img_'+num).src='/img/td_pie_senial.gif';
			
			td.style.backgroundColor='#F5F7F8';
          }
//-->
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//-->
<!--
function agregar(url,titulo){ 
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { 
   var url;
      var base="http://www.velezsarsfield.com.ar";
	  if(url==undefined){url=base;}else{url=base+url;}
	  /*if(titulo==""){titulo="C. A. Vélez Sársfield - Sitio oficial";}*/
	  window.external.AddFavorite(url,document.title); 
   } 
   else { 
      if(navigator.appName == "Netscape") 
         alert ("Presione Crtl+D para agregar www.velezsarsfield.com.ar a tus favoritos"); 
   } 
} 
//-->
//-->
function checkURL() {
	if(nx[0]!=""){
		switchCell(nx[0],nx[1]);
	}else{
		switchCell(1);
	}
}

//-->
<!--
function switchCell(n, hash) {
	nc=document.getElementsByName("item_rank");
	if(nc){
		t=document.getElementsByName("tb_rank")
		for(i=0;i<nc.length;i++){
			nc.item(i).className="rank_td_off";
			t.item(i).className="rank_tb_hide";
		}
		nc.item(n-1).className="rank_td_on rank";
		t.item(n-1).className="rank_contenido rank_tb_show";
	}else if(item_rank){
		for(i=0;i<item_rank.length;i++){
			item_rank[i].className="rank_td_off rank_none";
			tb_rank[i].className="rank_tb_hide";
		}
		item_rank[n-1].className="rank_td_on";
		tb_rank[n-1].className="rank_contenido rank_tb_show";
	}
	if(hash){
		document.location="#"+hash;
	}
}
//-->
<!--
function MouseOver(td) {
if(td.className=="rank_td_off"){td.className='rank_td_off rank_Over';}else{td.className=td.className;}
}
function MouseOut(td) {
if(td.className=="rank_td_off rank_Over"){td.className='rank_td_off';}else{td.className=td.className;}
}
//-->
<!--
function jug_th_onM(accion,td,jug) {
if(accion=="Over"){
mostrar('perfil_ref');
document.getElementById('perfil_ref').ClassName = "perfil_ref_on";
document.getElementById('perfil_ref').innerHTML = "Ver perfil de <b>"+jug+"</b>";
}
if(accion=="Out"){
document.getElementById('perfil_ref').ClassName = "";
document.getElementById('perfil_ref').innerHTML='<a href="/futbol/plantel/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'ver_plantel\',\'\',\'/img/item_raquo_10x7_on.gif\',1)" class="cfff"><img src="/img/item_raquo_cfff.gif" name="ver_plantel" width="8" height="7" hspace="4" border="0" id="ver_plantel" />Ir a perfiles del plantel y cuerpo técnico</a>';}
}
//-->
<!--
function Menu_Nota(num){

Menu_Nota_off(1);
Menu_Nota_off(2);
Menu_Nota_off(3);
Menu_Nota_off(4);
Menu_Nota_off(5);

	num_menos=num-1;
	document.getElementById("td_Menu_"+num).className = 'td_Menu_on';
	document.images['item_nota_'+num+'a'].src='/img/ppal_sm_lf_on.gif';
	document.images['item_nota_'+num+'b'].src='/img/ppal_sm_rt_on.gif';
	document.getElementById("td_Img_sm_"+num).className = 'td_Img_sm_on';

	//ocultar('Menu_sep_'+num);
	document.images['img_sep_'+num].src='/img/px.gif';
	//ocultar('Menu_sep_'+num_menos);
	document.images['img_sep_'+num_menos].src='/img/px.gif';
	
	//document.images['img_sep_'+num_menos].width = '316';
	//document.images['img_sep_'+num_menos].src = '/img/px_gris.gif';
	document.images['img_ppalsm_'+num].className='img_ppal_sm_on';
	//document.images['img_ppal_sep_sm_'+num].src='/img/item_senial_up.gif';
	//document.getElementById("td_ppalsm_"+num).className = 'td_ppal_sm_on';
	document.getElementById("img_ppal_senial").style.top = 40*(num-1)+14+'px';
	num_mas=num+1;
	if(num==5){
	document.getElementById('td_Menu_6').className = 'td_Menu_bajo';
	}else{
	document.getElementById('td_Menu_'+num_mas).className = 'td_Menu_off td_Menu_bajo';
	document.getElementById('td_Menu_6').className = '';
	}

}
//-->
<!--
function Menu_Nota_off(num){

	num_menos=num-1;
	document.getElementById("td_Menu_"+num).className = 'td_Menu_off';
	document.images['item_nota_'+num+'a'].src='/img/ppal_sm_lf.gif';
	document.images['item_nota_'+num+'b'].src='/img/ppal_sm_rt.gif';
	document.getElementById("td_Img_sm_"+num).className = 'td_Img_sm';
	
	//mostrar('Menu_sep_'+num);
	document.images['img_sep_'+num].src='/img/px_cdb.gif';
	//mostrar('Menu_sep_'+num_menos);
	document.images['img_sep_'+num_menos].src='/img/px_cdb.gif';

	document.images['img_sep_'+num_menos].width = '262';
	document.images['img_sep_'+num_menos].src = '/img/px_cdb.gif';
	document.images['img_ppalsm_'+num].className='img_ppal_sm';
	//document.images['img_ppal_sep_sm_'+num].src='/img/px.gif';
	//document.getElementById("td_ppalsm_"+num).className = 'td_ppal_sm';
}
//-->
<!--
function Depto_img(num){
	document.images['depto_senial_1'].src='/img/px.gif';
	//document.images['imgpos_depto_1'].height='4';
	//document.images['depto_V_1'].src='/img/item_v_azul.gif';
	document.images['depto_senial_2'].src='/img/px.gif';
	//document.images['imgpos_depto_2'].height='4';
	//document.images['depto_V_2'].src='/img/item_v_azul.gif';
	document.images['depto_senial_3'].src='/img/px.gif';
	//document.images['imgpos_depto_3'].height='4';
	//document.images['depto_V_3'].src='/img/item_v_azul.gif';
	document.images['depto_senial_4'].src='/img/px.gif';
	//document.images['imgpos_depto_4'].height='4';
	//document.images['depto_V_4'].src='/img/item_v_azul.gif';
	document.images['depto_senial_5'].src='/img/px.gif';
	//document.images['imgpos_depto_5'].height='4';
	//document.images['depto_V_5'].src='/img/item_v_azul.gif';
	document.images['depto_senial_6'].src='/img/px.gif';
	//document.images['imgpos_depto_6'].height='4';
	//document.images['depto_V_6'].src='/img/item_v_azul.gif';
	document.images['depto_senial_7'].src='/img/px.gif';
	//document.images['imgpos_depto_7'].height='4';
	//document.images['depto_V_7'].src='/img/item_v_azul.gif';

	document.images['depto_senial_'+num].src='/img/td_titulo_senial_10x7.gif';
	//document.images['imgpos_depto_'+num].height='7';
	//document.images['depto_V_'+num].src='/img/item_v_on.gif';
}
//-->
<!--
function Depto_esp(accion,num){
if(accion=="Over"){
	//document.images['in_depto_'+num].src='/img/ico/nota_on.gif';
	document.images['depto_sep_br_'+num].src='/img/depto_br-tp_on.gif';
	document.images['depto_entrar_'+num].src='/img/txt_entrar_on.gif';
	}else{
	//document.images['in_depto_'+num].src='/img/ico/nota_off.gif';
	document.images['depto_sep_br_'+num].src='/img/depto_br-tp.gif';
	document.images['depto_entrar_'+num].src='/img/txt_entrar_off.gif';
	}
}
//-->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!--
function ckeck_estilo(Campo) {
	if(Campo.className == 'checkeado'){ Campo.className = 'checkout'; }
    else{ Campo.className = 'checkeado'; }
}
//-->
<!--
function movein(which,html){
which.style.background='none'
if (document.getElementById)
document.getElementById("opn_descrip").innerHTML=html
else
opn_descrip.innerHTML=html
}

function moveout(which){
which.style.background='none'
if (document.getElementById)
document.getElementById("opn_descrip").innerHTML=document.getElementById("opn_default").value
else
opn_descrip.innerHTML=''
}
//-->
<!-- 
function foco(elemento,activar) {
	//document.write(elemento);

if(activar){document.getElementById(elemento).className = "campo_txt_focus";/*var bgImg="input_txt_bg_10x7"; var brd_Class="campo_txt_focus_";*/}else{document.getElementById(elemento).className = "campo_txt";/*var bgImg="input_txt_bg"; var brd_Class="";*/}
//elemento.style.backgroundImage = "url('/img/"+bgImg+".gif')"; 

//if(id){document.getElementById("Lf_"+id).className=brd_Class+'Lf';document.getElementById("Rt_"+id).className=brd_Class+'Rt';}
}
-->