// * Dependencies * 
// this function requires the following snippets:
// JavaScript/readable_MM_functions/findObj
//
// Accepts a variable number of arguments, in triplets as follows:
// arg 1: simple name of a layer object, such as "Layer1"
// arg 2: ignored (for backward compatibility)
// arg 3: 'hide' or 'show'
// repeat...
//
// Example: showHideLayers(Layer1,'','show',Layer2,'','hide');
function ver(id) {
	if (id == 1) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo2');
		changeCol(obj, '#737475');						
		showHideLayers('flechas1', '', 'show', 'flechas2', '', 'hide', 'flechas3', '', 'hide', 'flechas4', '', 'hide', 'flechas5', '', 'hide');
		showHideLayers('c1968', '', 'show', 'c1983', '', 'hide', 'c1999', '', 'hide', 'c2008', '', 'hide','c2010', '', 'hide');
	}
	if (id == 2) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo2');
		changeCol(obj, '#737475');						
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'show', 'flechas3', '', 'hide', 'flechas4', '', 'hide', 'flechas5', '', 'hide');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'show', 'c1999', '', 'hide', 'c2008', '', 'hide','c2010', '', 'hide');
	}
	if (id == 3) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo2');
		changeCol(obj, '#737475');						
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'hide', 'flechas3', '', 'show', 'flechas4', '', 'hide', 'flechas5', '', 'hide');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'hide', 'c1999', '', 'show', 'c2008', '', 'hide','c2010', '', 'hide');
	}
	if (id == 4) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-antetitulo2');
		changeCol(obj, '#737475');				
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'hide', 'flechas3', '', 'hide', 'flechas4', '', 'show','flechas5', '', 'hide');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'hide', 'c1999', '', 'hide', 'c2008', '', 'show','c2010', '', 'hide');
	}
	if (id == 5) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');		
		obj = findObj('a10-antetitulo2');
		changeCol(obj, '#F8A031');		
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'hide', 'flechas3', '', 'hide', 'flechas4', '', 'hide','flechas5', '', 'show');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'hide', 'c1999', '', 'hide', 'c2008', '', 'hide','c2010', '', 'show');
	}	
}
function ver_alt(id) {
	if (id == 1) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');						
		showHideLayers('flechas1', '', 'show', 'flechas2', '', 'hide', 'flechas3', '', 'hide','flechas4', '', 'hide');
		showHideLayers('c1968', '', 'show', 'c1983', '', 'hide', 'c1999', '', 'hide', 'show','c2008', '', 'hide');
	}
	if (id == 2) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');						
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'show', 'flechas3', '', 'hide','flechas4', '', 'hide');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'show', 'c1999', '', 'hide', 'show','c2008', '', 'hide');
	}
	if (id == 3) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#F8A031');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#737475');				
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'hide', 'flechas3', '', 'show','flechas4', '', 'hide');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'hide', 'c1999', '', 'show','c2008', '', 'hide');
	}
	if (id == 4) {
		obj = findObj('a10-subtitulo');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo2');
		changeCol(obj, '#737475');
		obj = findObj('a10-subtitulo3');
		changeCol(obj, '#737475');
		obj = findObj('a10-antetitulo');
		changeCol(obj, '#F8A031');		
		showHideLayers('flechas1', '', 'hide', 'flechas2', '', 'hide', 'flechas3', '', 'hide','flechas4', '', 'show');
		showHideLayers('c1968', '', 'hide', 'c1983', '', 'hide', 'c1999', '', 'hide','c2008', '', 'show');
	}
}
function showHideLayers()
{ 
  var i, visStr, obj, args = showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj = findObj(args[i])) != null)
    {
      visStr = args[i+2];
      if (obj.style)
      {
        obj = obj.style;
        if(visStr == 'show') visStr = 'visible';
        else if(visStr == 'hide') visStr = 'hidden';
      }
      obj.visibility = visStr;
    }
  }
}
// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}


var DHTML = (document.getElementById || document.all || document.layers);
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}
function changeCol(obj, col)
{
	if (!DHTML) return;
	var x = obj;
	x.style.color = col;
}


