function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showContent() { 
  }


function getItem(id){
	var itm = false;
	if(document.getElementById)
		itm = document.getElementById(id);
	else if(document.all)
		itm = document.all[id];
	else if(document.layers)
		itm = document.layers[id];
	return itm;
}

function toggleItem(id){
	itm = getItem(id);
	if(!itm)
		return false;
	if(itm.style.display == 'none')
		itm.style.display = '';
	else
		itm.style.display = 'none';
	return false;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showContent() { 
  }


function getItem(id){
	var itm = false;
	if(document.getElementById)
		itm = document.getElementById(id);
	else if(document.all)
		itm = document.all[id];
	else if(document.layers)
		itm = document.layers[id];
	return itm;
}

function toggleItem(id){
	itm = getItem(id);
	if(!itm)
		return false;
	if(itm.style.display == 'none')
		itm.style.display = '';
	else
		itm.style.display = 'none';
	return false;
}



function popUp(URL,W,H,S) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=" + S + ",location=0,statusbar=0,menubar=0,resizable=0,width="+ W + ", height="+ H +", left = 390,top = 212');");
}


var currentdate = 0;
var core = 0;
function initArray() {

this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i]; }
}

url = new initArray(
"dominios.htm",
"diseno_paginas_web.htm",
"emarketing.htm",
"servidores_dedicados.htm",
"hospedaje_hosting.htm"
);

image = new initArray(
"assets/images/promo1.jpg",
"assets/images/promo2.jpg",
"assets/images/Promo3.jpg",
"assets/images/promo4.jpg",
"assets/images/promo5.jpg"
);

text = new initArray(
"Compra Tu Dominio",
"Contrata Un Plan de Diseņo",
"Contrata Una Campaņa en Linea",
"Contrata un Servidor Dedicado",
"Contrata un Plan de Hospedaje"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranurl = url[core];
var ranimage = image[core];
var rantext = text[core];





var new_url="";
function goToExpress()
	{ 
   	if (  (new_url != "")  &&  (new_url != null)  )
    	window.location=new_url;
   	else 
   		window.location="";
	}
	
function goToAdvanced()
	{ 
   	if (  (new_url != "")  &&  (new_url != null)  )
    	window.location=new_url;
   	else 
   		window.location="";
	}
	
function goToPro()
	{ 
   	if (  (new_url != "")  &&  (new_url != null)  )
    	window.location=new_url;
   	else 
   		window.location="";
	}	
function goToEnt()
	{ 
   	if (  (new_url != "")  &&  (new_url != null)  )
    	window.location=new_url;
   	else 
   		window.location="";
	}	
function goToUltimate()
	{ 
   	if (  (new_url != "")  &&  (new_url != null)  )
    	window.location=new_url;
   	else 
   		window.location="";
	}	








					








					