
var marqueewidth
var marqueeheight
var marqueetop
var marqueeleft
var marqueespeed //-> 1-10
var marqueebgcolor

//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=0

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<nobr><SPAN CLASS="f9"><FONT COLOR="#005B83">¿Tiene dudas sobre su p&oacute;liza actual...? ¿...sobre alg&uacute;n siniestro reciente...? ¿...sobre el tipo de seguro que le ofrecen?</FONT></SPAN></nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualwidth=''
var cross_marquee, ns_marquee

function initMarquesina(topM,leftM,widthM,heightM,speedM,bgM){
	marqueewidth=widthM
	marqueeheight=heightM
	marqueetop=topM
	marqueeleft=leftM
	marqueespeed=speedM
	marqueebgcolor=bgM
	
	copyspeed=marqueespeed
	pausespeed=(pauseit==0)? copyspeed: 0
	iedom=document.all||document.getElementById

	if (iedom){
		document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+marqueecontent+'</span>')
	}
	else{
		marqueetop=marqueetop-2 //Para netscape 4.x
	}
	
	window.onload=populate

	if (iedom||document.layers){
		with (document){
			//**document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
			if (iedom){
				//**write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
				write('<div style="position:absolute;left:'+marqueeleft+';top:'+marqueetop+';width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden;background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
				write('<div id="iemarquee" style="position:absolute;left:0;top:0"></div>')
				write('</div>')
				write('</div>')
				}
			else if (document.layers){
				//**write('<ilayer left='+marqueeleft+' top='+marqueetop+' width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
				//**write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
				//**write('</ilayer>')
				write('<layer name="ns_marquee" left='+marqueeleft+' top='+marqueetop+' width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'><layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer></layer>')
			}
			//**document.write('</td></table>')
		}
	}
}

function populate(){
initTicker()
	if (iedom){
		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
		cross_marquee.style.left=marqueewidth+8
		cross_marquee.innerHTML=marqueecontent
		actualwidth=document.all? cross_marquee.offsetWidth : document.getElementById("temp").offsetWidth
	}
	else if (document.layers){
		ns_marquee=document.ns_marquee.document.ns_marquee2
		ns_marquee.left=marqueewidth+8
		ns_marquee.document.write(marqueecontent)
		ns_marquee.document.close()
		actualwidth=ns_marquee.document.width
	}
	lefttime=setInterval("scrollmarquee()",20)
}


function scrollmarquee(){
	if (iedom){
		if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
			cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed
		else
			cross_marquee.style.left=marqueewidth+8
	}
	else if (document.layers){
		if (ns_marquee.left>(actualwidth*(-1)+8))
			ns_marquee.left-=copyspeed
		else
			ns_marquee.left=marqueewidth+8
	}
}

