
var dom = (document.getElementById) ? true : false;
var nn4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function mostrar(x,a,b,c,d) {
// (1,'260','250','500','20')


		xmin = b;		
		ymin = d;		
		xmay = c;
		ymay = a;

		subsub = 'subsub'+x;
		
		if(ie4) {
			document.all[subsubAnt].style.visibility="hidden";
			document.all['subsub'+x].style.visibility="visible";
		}
		else if(nn4){
			document.layers[subsubAnt].visibility="hidden";
			document.layers['subsub'+x].visibility="visible";

		}
		else if(dom){
			document.getElementById(subsubAnt).style.visibility="hidden";
			document.getElementById('subsub'+x).style.visibility="visible";
		}
		
		subsubAnt=subsub;
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOff(obj) {
	obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_tabla.gif)";
	obj.style.cursor = "default";
	obj.style.color = "#0123A1";
	
	base = obj.innerHTML;
	parsesID = base.match(/_ref\d+/);
	if (parsesID) {
		childObj = eval("document.all."+parsesID+".style");
		childObj.color = "#0123A1";
	}		
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOffFin(obj) {
	obj.style.backgroundImage = "";
	obj.style.backgroundColor = "#FFFFFF";
	obj.style.color = "#0123A1";	
}

function cellOffFin2(obj) {
	obj.style.backgroundImage = "";
	obj.style.backgroundColor = "#FFFFFF";
	obj.style.color = "#0123A1";	
	
	obj.getElementsByTagName('a')[0].style.color = "#0123A1";
	
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellBigOn(obj) {	
	obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_tabla_big_over.gif)";
	obj.style.cursor = "hand";
	obj.style.color = "#FFFFFF";			
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOn(obj) {	
	base = obj.innerHTML;
	parsesID = base.match(/_ref\d+/);
	if (parsesID) {
		hideSubs();	
		obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_tabla_link.gif)";
	childObj = eval("document.all."+parsesID+".style");
		childObj.color = "#FFFFFF";			
	} else {
		obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_tabla_over.gif)";
		obj.style.cursor = "hand";
		obj.style.color = "#FFFFFF";			
	}
	
	
		if(ie4) {
			document.all[subsubAnt].style.visibility="hidden";
		}
		else if(nn4){
			document.layers[subsubAnt].visibility="hidden";
		}
		else if(dom){
			document.getElementById(subsubAnt).style.visibility="hidden";
		}
	
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOnFin(obj) {	
	obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_tabla_over.gif)";
	obj.style.color = "#FFFFFF";	
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOffSubFin(obj) {
	obj.style.backgroundImage = "";
	obj.style.backgroundColor = "#FFC645";	
	obj.style.cursor = "default";	
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOffSub(obj) {
	obj.style.cursor = "default";
	obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_sub_tabla.gif)";
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function cellOnSub(obj) {	
	obj.style.backgroundImage = "url(http://www.visa.com.mx/imgs/menu/bck_sub_tabla_over.gif)";
	obj.style.cursor = "hand";
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function hideSubs() {
	for (w=1; w<9; w++) {
		aux = eval("document.all.subsub"+w+".style");
		aux.visibility = "hidden";
	}
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

function preloadTheImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadTheImages.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];}}
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */