//Script editado por Jesus Subtil
// se original no te copies

banners= new Array();

totalbanners = banners.length;
var ahora = new Date()
var segundos = ahora.getSeconds()
var ad = segundos % totalbanners;
seleccionado=banners[ad];
localizador=seleccionado.lastIndexOf('.');
localizador2=localizador+4
extension=seleccionado.substring(localizador+1,localizador2); 
archivo=seleccionado.substring(0,localizador);

document.write('<FONT FACE="Tahoma">');
document.write('<MARQUEE BEHAVIOR=scroll ><strong>'+seleccionado+'</strong>');
document.write('</MARQUEE>');
document.write('</font>');


//Preloader de imagenes

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

// Preloader de imagenes dos


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->


//Rotador de barners

function create() {
	this.width = ''
	this.height = ''
	this.src = ''
	this.href = ''
	this.border = ''
	this.mouseover = ''
}


function random(n)  {
	var js_mult1=3141
	var js_mult2=5821
	var js_m1=100000000
	var js_m2=10000
	var js_iseed=0
	var js_iseed1=0
	var js_iseed2=0

	if (js_iseed == 0)  {
		now = new Date()
		js_iseed = now.getHours() + now.getMinutes() * 60 + now.getSeconds() * 3600
	}

	js_iseed1 = js_iseed / js_m2
	js_iseed2 = js_iseed % js_m2
	var tmp = (((js_iseed2 * js_mult1 + js_iseed1 * js_mult2) % js_m2) * js_m2 + (js_iseed2 *
js_mult2)) % js_m1
	js_iseed = (tmp + 1) % js_m1
	return (Math.floor((js_iseed/js_m1) * n))
}

var numberOfAds = 2     //number or ads you want to display siempre una mas de la cantidad que tenemos

ads = new Array()
for(var i=1; i<=numberOfAds; i++) { ads[i] = new create() }

ads[1].width = "468"
ads[1].height = "60"
ads[1].src = "http://venhost.org/banner.jpg"
ads[1].href = "http://www.portalnoticias.net"
ads[1].border = "0"
ads[1].mouseover = ""

var n = random(numberOfAds)
n = (n==0) ? n+1 : n
n = (n > numberOfAds) ? n-numberOfAds : n

var image = ads[n]
var ad = ""
ad += '<a href="' + image.href + '" \n'
ad += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n'
ad += 'onMouseOut="self.status=\'\'" target="_blank"> \n'
ad += '<img src="' + image.src + '" width=' + image.width
ad += '\n height=' + image.height + ' border=' + image.border
ad += '\n></a>'
// -- End Hiding Here -->


function n_window(theurl)
{
 // set the width and height
 var the_width=438;
 var the_height=283;
 // set window position
 var from_top=20;
 var from_left=20;
 // set other attributes
 var has_toolbar='no';
 var has_location='no';
 var has_directories='no';
 var has_status='no';
 var has_menubar='no';
 var has_scrollbars='yes';
 var is_resizable='no';
 // attributes put together
 var the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+from_left+',screenX='+from_left;
 the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
 the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
 // open window
 window.open(theurl,'',the_atts);
}
//-->
// ventana de dolares

 
function dolar() { 
 var winleft = (screen.width - 200) / 2;
 var wintop = (screen.height - 400) / 2;
 win=window.open('http://www.venhost.org/preciosendolares.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=410,height=680'); 
 win.focus()  
} 

// Ventana emergente comprar

<!-- Begin 
function comprar() { 
 var winleft = (screen.width - 530) / 2;
 var wintop = (screen.height - 410) / 2;
 win=window.open('http://www.venhost.org/compra/index.html', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=530,height=410'); 
 win.focus()  
} 
// End -->
//ventana emergente demo panel linux

 
function demo() { 
 var winleft = (screen.width - 800) / 2;
 var wintop = (screen.height - 600) / 2;
 win=window.open('http://x3demob.cpx3demo.com:2082/login/?user=x3demob&pass=x3demob', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=800,height=600'); 
 win.focus()  
} 
// End -->
//ventana emergente whm
 
function whm() { 
 var winleft = (screen.width - 800) / 2;
 var wintop = (screen.height - 600) / 2;
 win=window.open('http://demo.cpanel.net:2086/login/?user=demo&pass=demo', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=800,height=600'); 
 win.focus()  
} 
// End -->
//Ventana emergente pagar


function pagar() { 
 var winleft = (screen.width - 275) / 2;
 var wintop = (screen.height - 600) / 2;
 win=window.open('http://www.venhost.org/pagar/index.php', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=410,height=680'); 
 win.focus()  
} 
// End -->



function msnsoporte() { 
 var winleft = (screen.width - 420) / 2;
 var wintop = (screen.height - 220) / 2;
 win=window.open('http://www.venhost.org.ve/soportemsn.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=420,height=220'); 
 win.focus()  
} 
// End -->
 
function mailsoporte() { 
 var winleft = (screen.width - 420) / 2;
 var wintop = (screen.height - 220) / 2;
 win=window.open('http://www.venhost.org.ve/soportemail.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=420,height=220'); 
 win.focus()  
} 
// End -->



function banesco() { 
 var winleft = (screen.width - 300) / 2;
 var wintop = (screen.height - 280) / 2;
 win=window.open('http://www.venhost.org/datosbanesco.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=300,height=280'); 
 win.focus()  
} 
// End -->

 
function mercantil() { 
 var winleft = (screen.width - 320) / 2;
 var wintop = (screen.height - 260) / 2;
 win=window.open('http://www.venhost.org/datosmercantil.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=320,height=260'); 
 win.focus()  
} 
// End -->
 
function federal() { 
 var winleft = (screen.width - 300) / 2;
 var wintop = (screen.height - 280) / 2;
 win=window.open('http://www.venhost.org/datosfederal.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=320,height=260'); 
 win.focus()  
} 
// End -->
 
function venezuela() { 
 var winleft = (screen.width - 320) / 2;
 var wintop = (screen.height - 260) / 2;
 win=window.open('http://www.venhost.org/datosvenezuela.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=320,height=260'); 
 win.focus()  
} 
// End -->

function tel() { 
 var winleft = (screen.width - 410) / 2;
 var wintop = (screen.height - 230) / 2;
 win=window.open('http://www.venhost.org.ve/soportetelefonico.htm', 'Venhost','top='+wintop+',left='+winleft+',scrollbars= 1,width=430,height=390'); 
 win.focus()  
} 
// End -->
