campanias_on = new Image(85,30)
campanias_on.src = "/images/btn_campanias_on.gif"
campanias_off = new Image(85,30)
campanias_off.src = "/images/btn_campanias_off.gif"
clientes_on = new Image(77,30)
clientes_on.src = "/images/btn_clientes_on.gif"
clientes_off = new Image(77,30)
clientes_off.src = "/images/btn_clientes_off.gif"
equipo_on = new Image(66,30)
equipo_on.src = "/images/btn_equipo_on.gif"
equipo_off = new Image(66,30)
equipo_off.src = "/images/btn_equipo_off.gif"
oficinas_on = new Image(76,30)
oficinas_on.src = "/images/btn_oficinas_on.gif"
oficinas_off = new Image(76,30)
oficinas_off.src = "/images/btn_oficinas_off.gif"
newsletters_on = new Image(101,30)
newsletters_on.src = "/images/btn_newsletters_on.gif"
newsletters_off = new Image(101,30)
newsletters_off.src = "/images/btn_newsletters_off.gif"
contacto_on = new Image(83,30)
contacto_on.src = "/images/btn_contacto_on.gif"
contacto_off = new Image(83,30)
contacto_off.src = "/images/btn_contacto_off.gif"
noticias_on = new Image(76,30)
noticias_on.src = "/images/btn_noticias_on.gif"
noticias_off = new Image(76,30)
noticias_off.src = "/images/btn_noticias_off.gif"
foro_on = new Image(60,30)
foro_on.src = "/images/btn_foro_on.gif"
foro_off = new Image(60,30)
foro_off.src = "/images/btn_foro_off.gif"

home_on = new Image(28,15)
home_on.src = "/images/btn_home_on.gif"
home_off = new Image(28,15)
home_off.src = "/images/btn_home_off.gif"
advertising_on = new Image(54,15)
advertising_on.src = "/images/btn_advertising_on.gif"
advertising_off = new Image(54,15)
advertising_off.src = "/images/btn_advertising_off.gif"
marketing_on = new Image(85,15)
marketing_on.src = "/images/btn_marketing_on.gif"
marketing_off = new Image(85,15)
marketing_off.src = "/images/btn_marketing_off.gif"
geomarketing_on = new Image(66,15)
geomarketing_on.src = "/images/btn_geomarketing_on.gif"
geomarketing_off = new Image(66,15)
geomarketing_off.src = "/images/btn_geomarketing_off.gif"
data_on = new Image(64,15)
data_on.src = "/images/btn_data_on.gif"
data_off = new Image(64,15)
data_off.src = "/images/btn_data_off.gif"
consultoria_on = new Image(54,15)
consultoria_on.src = "/images/btn_consultoria_on.gif"
consultoria_off = new Image(54,15)
consultoria_off.src = "/images/btn_consultoria_off.gif"
datacom_on = new Image(69,15)
datacom_on.src = "/images/btn_datacom_on.gif"
datacom_off = new Image(69,15)
datacom_off.src = "/images/btn_datacom_off.gif"

function iniciar() {
	document.getElementById('formu').usuario.focus();
}

function enviar() {
	/* gs 2009 */
	if ((document.getElementById('formu').usuario.value == 'granseleccion') && (document.getElementById('formu').password.value == '2009')) {
		window.open("http://www.datacomcrm.com/desarrollo/gs2009/index.html","_blank");
		return false;
	}	
	if ((document.getElementById('formu').usuario.value == 'jccm') && (document.getElementById('formu').password.value == 'jccm')) {
		window.open("Libro_de_Ruta.pdf","_blank");
		return false;
	}
	/* tabaco */
	if ((document.getElementById('formu').usuario.value == 'tabaco') && (document.getElementById('formu').password.value == 'tabaco')) {
		window.open("http://www.datacomcrm.com/desarrollo/tabaco/index.htm","_blank");
		return false;
	}
	/* mujeres ebro */
	if ((document.getElementById('formu').usuario.value == 'mujeres') && (document.getElementById('formu').password.value == 'ebro')) {
		window.open("http://www.datacomcrm.com/desarrollo/mujeresebro/index.htm","_blank");
		return false;
	}
	/* pfizer mail */
	if ((document.getElementById('formu').usuario.value == 'pfizer') && (document.getElementById('formu').password.value == 'mail')) {
		window.open("http://www.datacomcrm.com/desarrollo/pfizermail/index.html","_blank");
		return false;
	}
	/* alfin */
	if ((document.getElementById('formu').usuario.value == 'alfin') && (document.getElementById('formu').password.value == 'alfin')) {
		window.open("http://www.datacomcrm.com/desarrollo/alfin/index.htm","_blank");
		return false;
	}
	/* naple */
	if ((document.getElementById('formu').usuario.value == 'naple') && (document.getElementById('formu').password.value == 'foro')) {
		window.open("http://www.datacomcrm.com/desarrollo/naple/index.htm","_blank");
		return false;
	}
	/* correo bibliotecario */
	if ((document.getElementById('formu').usuario.value == 'correo') && (document.getElementById('formu').password.value == 'bibliotecario')) {
		window.open("http://www.datacomcrm.com/desarrollo/correo_bibliotecario2/index.htm","_blank");
		return false;
	}
	/* hispana ultimo*/
	if ((document.getElementById('formu').usuario.value == 'hispana') && (document.getElementById('formu').password.value == 'ultimo')) {
		window.open("http://www.datacomcrm.com/desarrollo/hispana_ultimo/home.htm","_blank");
		return false;
	}
	/* hispana2*/
	if ((document.getElementById('formu').usuario.value == 'hispana2') && (document.getElementById('formu').password.value == 'website')) {
		window.open("http://www.datacomcrm.com/desarrollo/hispana_nueva2/index.htm","_blank");
		return false;
	}	
		/* orilla del ebro*/
	if ((document.getElementById('formu').usuario.value == 'orilla') && (document.getElementById('formu').password.value == 'ebro')) {
		window.open("http://www.datacomcrm.com/desarrollo/mujeres/index.htm","_blank");
		return false;
	}
	/* hispana3*/
	if ((document.getElementById('formu').usuario.value == 'hispana3') && (document.getElementById('formu').password.value == 'website')) {
		window.open("http://www.datacomcrm.com/desarrollo/hispana_nueva/index.htm","_blank");
		return false;
	}	
	/* dispatcher*/
	if ((document.getElementById('formu').usuario.value == 'geoconcept') && (document.getElementById('formu').password.value == 'dispatcher')) {
		window.open("http://www.datacomcrm.com/geoconcept_dispatcher.html","_blank");
		return false;
	}	
	/* gran seleccion 2009*/
	if ((document.getElementById('formu').usuario.value == 'gran seleccion') && (document.getElementById('formu').password.value == '2009')) {
		window.open("http://www.datacomcrm.com/desarrollo/granseleccion2009/index.html","_blank");
		return false;
	}	
	/* fox */
	if ((document.getElementById('formu').usuario.value == 'tena') && (document.getElementById('formu').password.value == 'fox')) {
		window.open("http://www.datacomcrm.com/FOX-TENA.zip","_blank");
		return false;
	}	
	/* feder */
	if ((document.getElementById('formu').usuario.value == 'feder') && (document.getElementById('formu').password.value == 'clm')) {
		window.open("http://www.datacomcrm.com/desarrollo/feder/indice.html","_blank");
		return false;
	}	
	/* deca */
	if ((document.getElementById('formu').usuario.value == 'decathlon') && (document.getElementById('formu').password.value == 'spot')) {
		window.open("http://www.datacomcrm.com/SPOTS_DIS.zip","_blank");
		return false;
	}
	/* alimentos */
	if ((document.getElementById('formu').usuario.value == 'acd') && (document.getElementById('formu').password.value == 'acd')) {
		window.open("http://www.datacomcrm.com/desarrollo/alimentoscalidad/index.html","_blank");
		parent.close();
		return false;
	}
	/* tena */
	if ((document.getElementById('formu').usuario.value == 'sca') && (document.getElementById('formu').password.value == 'tena')) {
		window.open("http://www.datacomcrm.com/tena.zip","_blank");
		return false;
	}
	/* pfizer web */
	if ((document.getElementById('formu').usuario.value == 'pfizer') && (document.getElementById('formu').password.value == 'web')) {
		window.open("http://www.datacomcrm.com/desarrollo/pfizer_web/index.htm","_blank");
		return false;
	}
	/* bibliotv */
	if ((document.getElementById('formu').usuario.value == 'bibliotv') && (document.getElementById('formu').password.value == 'bibliotv')) {
		window.open("http://www.datacomcrm.com/desarrollo/bibliotv/index.html","_blank");
		return false;
	}
	/* champix */
	if ((document.getElementById('formu').usuario.value == 'belen') && (document.getElementById('formu').password.value == 'champix')) {
		window.open("http://www.datacomcrm.com/desarrollo/champix/champix.htm","_blank");
		return false;
	}
	/* lectura */
	if ((document.getElementById('formu').usuario.value == 'cultura') && (document.getElementById('formu').password.value == 'lectura')) {
		window.open("http://www.datacomcrm.com/desarrollo/lectura/index.htm","_blank");
		return false;
	}
		/* pfizer */
	if ((document.getElementById('formu').usuario.value == 'pfizer') && (document.getElementById('formu').password.value == 'artrosis')) {
		window.open("http://www.datacomcrm.com/desarrollo/pfizer/artrosis.html","_blank");
		return false;
	}
	/* disney */
	if ((document.getElementById('formu').usuario.value == 'disney') && (document.getElementById('formu').password.value == 'banners')) {
		window.open("http://www.datacomcrm.com/desarrollo/disney/index.html","_blank");
		return false;
	}
	/* hispana 1*/
	if ((document.getElementById('formu').usuario.value == 'hispana') && (document.getElementById('formu').password.value == 'encuentra')) {
		window.open("http://www.datacomcrm.com/desarrollo/hispana/default.htm","_blank");
		return false;
	}
		/* presupuestos 2*/
	if ((document.getElementById('formu').usuario.value == 'presupuestos2') && (document.getElementById('formu').password.value == 'proyecto')) {
		window.open("http://www.datacomcrm.com/desarrollo/presupuestos/proyecto2.html","_blank");
		return false;
	}
	/* granseleccion banner*/
	if ((document.getElementById('formu').usuario.value == 'granseleccion') && (document.getElementById('formu').password.value == 'banner')) {
		window.open("http://www.datacomcrm.com/desarrollo/elmundo/elmundo_es_%20Líder%20mundial%20de%20información%20en%20castellano.htm","_blank");
		return false;
	}
	/* zualet */
	if ((document.getElementById('formu').usuario.value == 'zualet') && (document.getElementById('formu').password.value == 'zualet')) {
		window.open("http://www.datacomcrm.com/desarrollo/zualet/index.html","_blank");
		return false;
	}
	/* gran seleccion */
	if ((document.getElementById('formu').usuario.value == 'granseleccion') && (document.getElementById('formu').password.value == 'granseleccion')) {
		window.open("http://www.datacomcrm.com/desarrollo/granseleccion/video.html","_blank");
		return false;
	}
	/* Lisboa */
	if ((document.getElementById('formu').usuario.value == 'jccm') && (document.getElementById('formu').password.value == 'lisboa')) {
		window.open("http://www.datacomcrm.com/desarrollo/lisboa/index.html","_blank");
		return false;
	}
	/* aIREN */
	if ((document.getElementById('formu').usuario.value == 'airen2008') && (document.getElementById('formu').password.value == 'website')) {
		window.open("http://www.datacomcrm.com/desarrollo/airen/index.html","_blank");
		return false;
	}
	/* Toys rus */
	if ((document.getElementById('formu').usuario.value == 'toysrus') && (document.getElementById('formu').password.value == 'toysrus')) {
		window.open("http://www.datacomcrm.com/desarrollo/toysrus/index.html","_blank");
		return false;
	}
	/* COMUNIDAD MADRID */
	if ((document.getElementById('formu').usuario.value == 'datacom') && (document.getElementById('formu').password.value == 'conciliacion')) {
		window.open("http://www.datacomcrm.com/campanias/comunidadmadrid/index.html","_blank");
		return false;
	}
	/* JCCM Urbanismo */
	if ((document.getElementById('formu').usuario.value == 'jccm') && (document.getElementById('formu').password.value == 'urbanismo')) {
		window.open("http://www.datacomcrm.es/jccmurbanismo/index.html","_blank");
		return false;
	}	
	/* Pregunte-El Mundo */
	if ((document.getElementById('formu').usuario.value == 'bibliotecas') && (document.getElementById('formu').password.value == 'pregunte')) {
		window.open("http://www.datacomcrm.es/Pregunte-El Mundo/index.htm","_blank");
		return false;
	}	
	/* presupupestos2008 web */
	if ((document.getElementById('formu').usuario.value == 'presupuestos') && (document.getElementById('formu').password.value == 'presupuestos')) {
		window.open("http://www.datacomcrm.es/presupuestos2008/presupuestos2008.html","_blank");
		return false;
	}	
	/* Bibliotecas Públicas */
	if ((document.getElementById('formu').usuario.value == 'bibliotecas') && (document.getElementById('formu').password.value == 'publicas')) {
		window.open("http://www.datacomcrm.com/desarrollo/index_bibliotecas.html","_blank");
		return false;
	}	
	/* Pascal */
	if ((document.getElementById('formu').usuario.value == 'pascal') && (document.getElementById('formu').password.value == 'pascal')) {
		window.open("http://www.datacomcrm.com/Datacom.zip","_blank");
		return false;
	}	
	/* aegis awards 2007 */
	if ((document.getElementById('formu').usuario.value == 'aegis') && (document.getElementById('formu').password.value == 'awards')) {
		window.open("http://www.datacomcrm.com/desarrollo/aegisawards2007/index.html","_blank");
		return false;
	}	
	/* sodicaman */
	if ((document.getElementById('formu').usuario.value == 'sodicaman') && (document.getElementById('formu').password.value == 'sodicaman')) {
		window.open("http://www.datacomcrm.com/desarrollo/sodicaman/esp/index.htm","_blank");
		return false;
	}	
	/* eiffel */
	if ((document.getElementById('formu').usuario.value == 'eiffel') && (document.getElementById('formu').password.value == 'eiffel')) {
		window.open("http://www.datacomcrm.com/presentacion/eiffel/index.php","_blank");
		return false;
	}	
	/* presupupestos2007 web */
	if ((document.getElementById('formu').usuario.value == 'datacom') && (document.getElementById('formu').password.value == 'ventas')) {
		window.open("http://www.datacomcrm.com/dossierventas.zip","_blank");
		return false;
	}	
	/* presupupestos2007 web */
	if ((document.getElementById('formu').usuario.value == 'presupuestos') && (document.getElementById('formu').password.value == 'presupuestos2009')) {
		window.open("http://www.datacomcrm.com/desarrollo/presupuestos/proyecto1.html","_blank");
		return false;
	}
	/* nuevaimagenpelayo */
	if ((document.getElementById('formu').usuario.value == 'pelayo') && (document.getElementById('formu').password.value == 'imagen')) {
		window.open("http://www.datacomcrm.es/nuevaimagen/index.html","_blank");
		return false;
	}
	/* presupupestos2007 */
	if ((document.getElementById('formu').usuario.value == 'presupuestos') && (document.getElementById('formu').password.value == 'jccm')) {
		window.open("http://www.datacomcrm.com/jccm/index.html","_blank");
		return false;
	}
	/* pelayosonia */
	if ((document.getElementById('formu').usuario.value == 'sonia') && (document.getElementById('formu').password.value == 'pelayo2')) {
		window.open("http://www.datacomcrm.es/pelayo/pelipelayo.zip","_blank");
		return false;
	}
	/* pelayosonia */
	if ((document.getElementById('formu').usuario.value == 'sonia') && (document.getElementById('formu').password.value == 'pelayo')) {
		window.open("http://www.datacomcrm.es/desarrollo/misionestelarpelayo/index.html","_blank");
		return false;
	}
	/* galaxiapelayo */
	if ((document.getElementById('formu').usuario.value == 'galaxiapelayo') && (document.getElementById('formu').password.value == 'galaxiapelayo')) {
		window.open("http://www.datacomcrm.es/galaxiapelayo.zip","_blank");
		return false;
	}
	/* carat */
	if ((document.getElementById('formu').usuario.value == 'carat') && (document.getElementById('formu').password.value == 'carat')) {
		window.open("http://www.datacomcrm.es/desarrollo/carat/newsletter.htm","_blank");
		return false;
	}
	/* video jccm */
	if ((document.getElementById('formu').usuario.value == 'videojccm') && (document.getElementById('formu').password.value == 'videojccm')) {
		window.open("http://www.datacomcrm.es/desarrollo/jccm/jccm.wmv","_blank");
		return false;
	}
	/* jccm 2007 */
	if ((document.getElementById('formu').usuario.value == 'master2007') && (document.getElementById('formu').password.value == 'master2007')) {
		window.open("http://www.datacomcrm.es/desarrollo/proyecto2007.zip","_blank");
		return false;
	}
	/* jccm 2007 */
	if ((document.getElementById('formu').usuario.value == 'jccm') && (document.getElementById('formu').password.value == '2007')) {
		window.open("http://www.datacomcrm.com/desarrollo/jccm2007/index.php","_blank");
		return false;
	}
	/* pelayo */
	if ((document.getElementById('formu').usuario.value == 'jccm2007') && (document.getElementById('formu').password.value == 'jccm2007')) {
		window.open("http://www.datacomcrm.es/desarrollo/jccm/proyecto2007.zip","_blank");
		return false;
	}	
	/* pelayo */
	if ((document.getElementById('formu').usuario.value == 'proyecto2007') && (document.getElementById('formu').password.value == 'proyecto2007')) {
		window.open("http://www.datacomcrm.es/desarrollo/proyecto2007/index.html","_blank");
		return false;
	}	
	/* pelayo */
	if ((document.getElementById('formu').usuario.value == 'pelayo') && (document.getElementById('formu').password.value == 'pelayo')) {
		window.open("http://www.datacomcrm.es/desarrollo/pelayo/index.html","_blank");
		return false;
	}	
	/* /decathlon */
	/* decathlon */
	if ((document.getElementById('formu').usuario.value == 'decathlon') && (document.getElementById('formu').password.value == 'decathlon')) {
		window.open("http://www.datacomcrm.es/mailingdecathlon/index.htm","_blank");
		return false;
	}	
	/* /decathlon */
	/* mapa decathlon */
	if ((document.getElementById('formu').usuario.value == 'decathlon') && (document.getElementById('formu').password.value == 'mapa')) {
		window.open("http://www.datacomcrm.es/decathlon/Mapa Decathlon.fh9","_blank");
		return false;
	}	
	/* /mapa decathlon */	
	/* milbodas */
	if ((document.getElementById('formu').usuario.value == 'milbodas') && (document.getElementById('formu').password.value == 'milbodas')) {
		window.open("http://www.datacomcrm.es/desarrollo/milbodas/1.html","_blank");
		return false;
	}	
	/* /milbodas */
	/* deltaplus */
	if ((document.getElementById('formu').usuario.value == 'deltaplus') && (document.getElementById('formu').password.value == 'deltaplus')) {
		window.open("http://www.datacomcrm.es/desarrollo/deltaplus/index.html","_blank");
		return false;
	}	
	/* /deltaplus */
	/* hda */
	if ((document.getElementById('formu').usuario.value == 'hda') && (document.getElementById('formu').password.value == 'hda')) {
		window.open("http://www.datacomcrm.es/desarrollo/hda/index.html","_blank");
		return false;
	}
	/* energia */
	if ((document.getElementById('formu').usuario.value == 'energia') && (document.getElementById('formu').password.value == 'energia')) {
		window.open("http://www.datacomcrm.es/desarrollo/energyways/index.php","_blank");
		return false;
	}
	/* bbk */
	if ((document.getElementById('formu').usuario.value == 'bbk') && (document.getElementById('formu').password.value == 'bbk')) {
		window.open("campanias/bbk/index.html","_blank");
		return false;
	}
	/* munreco */
/*	if ((document.getElementById('formu').usuario.value == 'munreco') && (document.getElementById('formu').password.value == 'munreco1')) {
		window.open("http://62.151.163.68/web/grupomunreco2/web/esp/","_blank");
		return false;
	}*/
	if ((document.getElementById('formu').usuario.value == 'munreco') && (document.getElementById('formu').password.value == 'munreco')) {
		window.open("http://www.munreco.com/prueba/default.htm","_blank");
		return false;
	}
	// Usuario
	if (document.getElementById('formu').usuario.value == '') {
		alert('Por favor, verifique los datos introducidos en el campo \"Usuario"\ ');
		document.getElementById('formu').usuario.focus();
		return false;
	}
	// Password
	if (document.getElementById('formu').password.value == '') {
		alert('Por favor, verifique los datos introducidos en el campo \"Contraseña"\ ');
		document.getElementById('formu').password.focus();
		return false;
	}

	document.getElementById('formu').submit();
}

function activa(i) {
	if (i==1) {
		document.getElementById('submenu1').style.display="block";
//		document.getElementById('submenu2').style.display="none";
	}
	else {
		document.getElementById('submenu1').style.display="none";
//		document.getElementById('submenu2').style.display="block";
	}
}

/* SCROLL TEXTO */

/**********************************************************************************   
ScrollText 
*   Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a> 
*********************************************************************************/
/************************************************************************************
Modificado por Carlos Revillo para aceptar también scroll horizontal
*************************************************************************************/
function lib_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()

var speed = 30

var loop, timer

function makeObj(obj,nest){
	
    nest=(!nest) ? "":'document.'+nest+'.'

	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
	
  	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.up=goUp;this.down=goDown;
	/************************************/
	this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth;
	this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth;
	this.right=goRight;this.left=goLeft;
	/*************************************/
	this.moveIt=moveIt; this.x=0; this.y=0;
    this.obj = obj + "Object";
	
    eval(this.obj + "=this")
	
    return this
	
}

var px = bw.ns4||window.opera?"":"px";

function moveIt(x,y){
	
	this.x = x
	this.y = y
	this.css.left = this.x+px
	this.css.top = this.y+px
	
}

function goDown(move,obj){
	if (this.y>-this.scrollHeight+oCont.clipHeight){
		this.moveIt(0,this.y-move)
			if (loop) setTimeout(this.obj+".down("+move+")",speed)
		//swapimg('arriba',arrows[3].src);
	}
	else {
	//swapimg('abajo',arrows[2].src);
	}
}
function goUp(move){

	if (this.y<0){
		this.moveIt(0,this.y-move)
			if (loop) setTimeout(this.obj+".up("+move+")",speed)
		//swapimg('abajo',arrows[4].src);
	}
	else {
	//swapimg('arriba',arrows[1].src);
	}
}

function goRight(move) {


	if (this.x>-this.scrollWidth+oCont2.clipWidth) {

		this.moveIt(this.x-move,0);
			if (loop) setTimeout(this.obj+".right("+move+")",speed);
	}
	
}

function goLeft(move) {
	if (this.x<0) {
		this.moveIt(this.x-move,0);
			if (loop) setTimeout(this.obj+".left("+move+")",speed);
	}
	
}
function scroll(speed){
	if (scrolltextLoaded){
		loop = true;
		if (speed>0) oScroll.down(speed)
		else oScroll.up(speed)
	}
}
function scrollado(speed) {
	if (scrolltextLoaded2){
		loop = true;
		if (speed>0) oScroll2.right(speed)
		else oScroll2.left(speed)
	}
}

function noScroll(){
	loop = false
	if (timer) clearTimeout(timer)
}

var scrolltextLoaded = false
function scrolltextInit(){

	oCont = new makeObj('divScrollTextCont')
	oScroll = new makeObj('divText','divScrollTextCont')
	oScroll.moveIt(0,0)

	oCont.css.visibility = "visible"
	scrolltextLoaded = true
}

var scrolltextLoaded2 = false
function scrolltextInit2(){
	oCont = new makeObj('divScrollTextCont');
	oCont2 = new makeObj('divScrollTextCont2');
	oScroll = new makeObj('divText','divScrollTextCont')
	oScroll2 = new makeObj('divText2','divScrollTextCont2')
	oScroll.moveIt(0,0)
	oScroll2.moveIt(0,0);
	oCont.css.visibility = "visible"
	oCont2.css.visibility = "visible"
	scrolltextLoaded = true
	scrolltextLoaded2 = true
}


//if (bw.bw) onload = scrolltextInit
/* /SCROLL TEXTO */
