var num_of_super_categories = 110;

var folder_img = new Image();
folder_img.src = "/st/img/flechas.gif";

function AllLists(type_name)
{
  var display_value, folder_value;
  
  if (type_name == "expand")
    {
	  display_value = "list-item";
	  folder_value  = folder_img.src;
	}
  
  else if (type_name == "collapse")
    {
	  display_value = "none";
	  folder_value  = "/st/img/flechas.gif";
	}
  
  for (x = 1; x <= num_of_super_categories; x++)
    {
	  document.getElementById(area).style.display= display_value;
	  //document["folder" + x].src = folder_value;
	}
}

function ToggleList(layerNumber)
{area="supercat" + layerNumber; 
 document.getElementById(area).style.display=(document.getElementById(area).style.display=="block") ? "none" : "block";
}  

function GoTo(category_name, category_ID)
{
  
//  parent.content.location = "categories/" + category_name + "1.html";
//  parent.sponsor.location = "banners/" + category_ID + "banner.html";
  return;
}

function EscribirSegunResolucion(MinimoW, MinimoH, Texto1, Texto2)
			{
				var correctwidth=MinimoW;
				var correctheight=MinimoH;
				var strTarget = '';
				if (screen.width<=correctwidth||screen.height<=correctheight)
				{   strTarget = Texto1; }
				else
				{   strTarget = Texto2; };
				document.write(strTarget);	
			};//---> 
