	var dir=1;
	var gMove=0.5;

  function anularBotonDerecho() {
    if (event.button==2) alert('Lo siento, botŪn derecho deshabilitado.');
  }
  
  function saltaImg(cual) {
  		
  		if (cual>0) window.open('http://www.digitalbank.es/includes/ampliacion.php?id='+cual,'','width=500,height=560,scrollbars=no,toolbar=no,status=no');
  }
  

  document.onmousedowna=anularBotonDerecho; 
  
	  function calcTimeOutNS(e) {
		mueveElCuerpo(e.screenX,e.screenY);
	  }
	  
	  function calcTimeOut() {
	  	
	  	mueveElCuerpo(window.event.x,window.event.y);
	  }
	  
	  function mueveElCuerpo(x,y) {
/*
	  	
	  	if (x<360) {
	  		dir=0;
	  		gMove=(10-parseInt(x/36))+1;
			return;
	  	}
	  	else if (x>380) {
	  		dir=1;
	  		gMove=(parseInt((x-360)/36))+1;


	  	}
	  	else {
	  		dir=0;
	  		gMove=0;
			return;
	  	}
*/		
	  }
	  
	//document.onmouseout=stopScroll;
	
	if (navigator.appName != 'Netscape')  document.onmousemove = calcTimeOut;
	
	if (navigator.appName == 'Netscape') {
		document.onmousemove = calcTimeOutNS;
		document.captureEvents(Event.MOUSEMOVE);
	}
	

	function startScroll()
	{
	  TimeOutID = window.setInterval('func()',10);
	}
	
	function stopScroll() {
		gMove=1;
	}
	
//Separacion

	var m_ImageWidth = -1;		
	function jsDatos(height,width,src,href)
	{
		this.height = height;
		this.width  = width;
		this.src    = src;
		this.href   = href;	
		++m_ImageWidth;					
		return true;
	}	

	var iIzq = 0;
	var iLeader = 0;
	var curP=0;
		
    var oVisual = new Array();
			
	function loadVisibleDiv()
	{
		  if (document.layers){
		      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++)
			  {
				oVisual[iCnt] = document.layers['divSC' + iCnt];
			  }
		  }
		  else if (document.all){
		      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++)
			  {
				oVisual[iCnt] = document.all['divSC' + iCnt].style;
			  }
		  }
		  else if (document.getElementById)
		  {
		      for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++)
			  {

				oVisual[iCnt] = document.getElementById('divSC' + iCnt).style;
			  }
		  }
	}

	function func()
	{
		  var iAddIncr=0;
		  var iLocal
	
		  iLocal=iLeader;
		  	  
			 for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++)
			 {	 	
			 
				oVisual[iLocal].left=iIzq + iAddIncr;							
				iAddIncr += Datos[iLocal].width; 
		
				if (++iLocal>m_ImageWidth) iLocal=0;
								
			  }
			   
			  if (dir==0) {  
			
			  	if (iIzq<=-(Datos[iLeader].width)) {
			  	
				    iIzq=0;
												
					if (++iLeader > m_ImageWidth) iLeader=0;

				}
					
				iIzq-=gMove;
			  }
			  
			  if (dir==1) {
			   
			   	if (iIzq>0) {
			   																		
					if (--iLeader<0) iLeader=m_ImageWidth;
						
					iIzq=-(Datos[iLeader].width);
				}
				
				iIzq+=gMove;
				
			  }
		
		 
	}
		
	function printScroll()
	{
     	for (var iCnt=0; iCnt<=m_ImageWidth; iCnt++)
    	{
    		document.write('<DIV id=divSC'+iCnt+' style=" LEFT: '+(iCnt*150)+'px; VISIBILITY: visible;  POSITION: absolute; TOP: 0px; WIDTH:'+Datos[iCnt].width+'px; HEIGHT:'+Datos[iCnt].height+'px;"><A href="'+Datos[iCnt].href+'" target="_parent" ><IMG height="'+Datos[iCnt].height+'" width="'+Datos[iCnt].width+'"   src="'+Datos[iCnt].src+'"  border=0></A></DIV>');
    	}	
		startScroll();	
		loadVisibleDiv();			
	}						