////////////////////////////////////////
// VARIABLES////////////////////////////
////////////////////////////////////////
var     Contenidos_VELOCIDAD = 50;
var 	Contenidos_SIGUE     = true;
var     Contenidos_DIRECCION = "U";

function Contenidos_scrolling()
{


	if (Contenidos_SIGUE)
	{
		if (Contenidos_DIRECCION == "U")
			if (Contenidos_scrollContent.y < 0) 
				Contenidos_scrollContent.moveBy(0,1);
		
		if (Contenidos_DIRECCION == "D")
			if (Contenidos_scrollContent.y > -Contenidos_offsetHeight) 
				Contenidos_scrollContent.moveBy(0,-1)
	}	
	
	setTimeout("Contenidos_scrolling()", Contenidos_VELOCIDAD);
}


function Contenidos_arrancar(Contenidos_direccion, Contenidos_velocidad)
{
	Contenidos_DIRECCION = Contenidos_direccion;
	Contenidos_VELOCIDAD = Contenidos_velocidad;
	Contenidos_SIGUE = true;
}

function Contenidos_parar()
{
	Contenidos_SIGUE = false;
}


function Contenidos_init() {

	DynLayerInit();
	

	// find offsetHeight
	Contenidos_windowHeight = Contenidos_scrollWindow.h;
	Contenidos_contentHeight = (is.ns)? Contenidos_scrollContent.doc.height : Contenidos_scrollContent.event.scrollHeight;
	Contenidos_offsetHeight = Contenidos_contentHeight - Contenidos_windowHeight;
	Contenidos_scrolling();
}

function runSlideShow() {


  

	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=2)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";	
		document.images.SlideShow.filters.blendTrans.Apply();
	}
	document.images.SlideShow.src = preLoad[j].src;
	
	if (document.all) {
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
		t = setTimeout('runSlideShow()', slideShowSpeed);
}
