function MakeArrayE(n)
{ 
	this.length=n; 
	return this
}

var n=9
imge=new MakeArrayE(n)
lkc=new MakeArrayE(n)
canali=new MakeArrayE(n)
canall=new MakeArrayE(n)
numE = new MakeArrayE(n)

imge[1]= "1.gif";  lkc[1]= "Empresas/Frameset/cobrandside2&mode=home&pub=EmpCo_SolNegocio&art=http://www.pagonom.com/todo1colombia/"
imge[2]= "2.gif";  lkc[2]= "Empresas/Channel/index&pub=EmpCo_SolNegocio&cat=1011226714865&art=1011226715224&mode=art"
imge[3]= "3.gif";  lkc[3]= "Empresas/Channel/index&pub=EmpCo_OrienGerencial&art=1022085488259&mode=art"
imge[4]= "4.gif";  lkc[4]= "Empresas/Frameset/cobrandtop&mode=home&pub=EmpCo_SolNegocio&art=http://tienda.todo1geonet.com/content/planes/planes.html"


// Imagen de Infobolsa
//imge[5]="5.gif"; lkc[5]= "Empresas/Channel/index&pub=EmpCo_TesInversion&cat=1010684882205&subcat=1010684882628&mode=subcat"

imge[5]= "6.gif";  lkc[5]= "Empresas/Channel/index&pub=EmpCo_Finan&cat=1010684909263&mode=cat"
imge[6]= "7.gif";  lkc[6]= "Empresas/Channel/index&pub=EmpCo_ComExt&cat=1010684909937&mode=cat"
imge[7]= "8.gif";  lkc[7]= "Comunicacion/co/index&chi=mi_comunicacionco&pg=article&id=1011735766743&pais=co"
imge[8]= "9.gif";  lkc[8]= "Empresas/Frameset/cobrandside2&mode=home&pub=EmpCo_OrienGerencial&art=http://mipyme.competir.com/mipyme/todo1/"
imge[9]="10.gif";  lkc[9]="Empresas/Channel/index&pub=EmpCo_ComElect&cat=1010684910002&art=1010684910084&mode=art"

var number=Math.floor(Math.random()*n+1); var z=number
for (i=1; i<=n; i++) 
{ 
	canali[i]="http://www.todo1.com/images/include/emp_canal"+imge[z]; 
	canall[i]= lkc[z];
	numE[i]=z;
	z=z+1; 
	if (z>n) 
	{	
		z=1
	} 
}

function canemp(x, y)
{
   if( z <= 9)
   {
    	numE[i] = "0"+ z;
   }

   return "<a target=_blank href=http://www.todo1.com/NASApp/cs/ContentServer?"+y+"&IT="+numE[i]+"&pagename="+canall[x]+"><img border=0 src="+canali[x]+"></a>"
}


