
function ReSize(divID)
{
	objFullContent = document.getElementById(divID);
	h = objFullContent.offsetHeight + "px";
	if(objFullContent.offsetHeight == 0)
	{
		h = document.documentElement.offsetHeight + "px";
	}
	window.parent.SetIframeHeight(h);
}

function ReSize1(divID)
{
	objFullContent = document.getElementById(divID);
	h = objFullContent.offsetHeight + "px";
	if(objFullContent.offsetHeight == 0)
	{
		h = document.documentElement.offsetHeight + "px";
	}
}


function MostrarOcultarMenu(div)
{
	//alert(div.id);
	//debugger;
	//CerrarDivs();
	//var id = div.id.split("_")[0];//id div padre
	var id = div.split("_")[0];//id div padre
	var menu = document.getElementById("divMenu");//obtiene el div que contiene los div del menu
	var elementosmenu = menu.getElementsByTagName('div');// obtiene todos los divs que forman el menu
	for(i = 0; i < elementosmenu.length;i++)
	{
		var iddiv = elementosmenu[i].id;//obtiene el div en la posicion i
		var idsMenu = iddiv.split("_");//obtiene el div padre (posicion 0), y el div hijo (posicion  1)
		if(idsMenu.length == 2 && id == idsMenu[1])
		{
			var div1 = document.getElementById(idsMenu.join("_"));						
			if(div1.style.display == "block")
			{
				div1.style.display = "none";
			}
			else
			if(div1.style.display == "none")
			{
				div1.style.display = "block";
			}
		}
	}
	menu = MenuClaro.GuardarMenu(menu.innerHTML).value;
}
function CerrarDivs()
{
	debugger;
	var menu = document.getElementById("divMenu");//obtiene el div que contiene los div del menu
	var elementosmenu = menu.getElementsByTagName('div');// obtiene todos los divs que forman el menu
	var divs="";
	for(i = 0; i < elementosmenu.length;i++)
	{
		var iddiv = elementosmenu[i].id;
		var idsMenu = iddiv.split("_");
		if(idsMenu[1] != "-1")
		{
			elementosmenu[i].style.display = "none";
			divs +=iddiv +" ";
		}
	}
	alert(divs);
}
function CambiarEstiloMenu(div,estilomenu)
{
	//debugger;
	div.className = estilomenu;
}
/**
//escribe en la pagina html un falsh sin borde 
*/
function WriteSwfID(img,wsize,hsize,id)
{
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" WIDTH=\""+wsize+"\" HEIGHT=\""+hsize+"\" ID=\""+id+"\">");
	document.write("<PARAM NAME=\"MOVIE\" VALUE=\""+img+"\">");
	document.write("<PARAM NAME=\"PLAY\" VALUE=\"TRUE\">");
	document.write("<PARAM NAME=\"LOOP\" VALUE=\"TRUE\">");
	document.write("<PARAM NAME=\"WMODE\" VALUE=\"transparent\">");
	document.write("<PARAM NAME=\"QUALITY\" VALUE=\"HIGH\">");
	document.write("<PARAM NAME=\"SCALE\" VALUE=\"showall\">");
	document.write("<EMBED NAME=\""+id+"\" swLiveConnect=\"true\" SRC=\""+img+"\" SCALE=\"showall\" PLAY=\"true\" LOOP=\"true\" WMODE=\"transparent\" QUALITY=\"high\" WIDTH=\""+wsize+"\" HEIGHT=\""+hsize+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>");
	document.write("</OBJECT>");	
}

/**
abre el popup de equipos 
*/
function OpenPopup(equ_id)
{	
	var x = (screen.width / 2) - 230;
	var y = (screen.height / 2) - 270;
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open('/administradores/popequipo.aspx?equ_id=" + equ_id + "' , 'helpwindow', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left = " + x + ",top = " + y + ",width=580,height=360');");	
}


function openPop(delUrl,Width,Height)
{	  
   window.open(delUrl,'mywindow','width='+ Width + ',height=' + Height,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');
}


function Tag35gclaro(){
	
	var strurl= document.location.href;
	
	var obj = strurl.split('http://www.claro.com.pa/');	
	
	//alert(obj[0]);

	//urchinTracker(obj[0]);
	
}


function TagBanners(banner){
	
	var strurl= document.location.href;
	
	var obj = strurl.split('http://www.claro.com.pa/');	
	
	//alert(banner+"-"+obj[1]);

	//urchinTracker(banner+"-"+obj[1]);
	
}
