

var text=new Array()
var textlink=new Array()
var texttarget=new Array()

/////////////////////////////////////////////////////////////////////
// START OF
// CONFIGURATION ZONE
////////////////////////////////////////////////////////////////////

// Your messages. Add as many as you like. Experienced webmasters may even embed simple HTML-tags (see samples below)
text[0]="<strong><i>Offerte Speciali con Bimbi Gratis</i> </strong>  Consulta la sezione!"

text[1]="<strong><i>Viaggi e Vacanze Web!</i></strong>  Il catalogo solo on-line di offerte speciali e roulette!"

text[2]="<strong><i>Nuovi Giopartyclub.it</i></strong> P.C. Shoni Bay Marsa Alam, Irene Palace P.F. Rodi e Sirenis Ibiza"

text[3]="<strong><i>Novità complesso Resta Resorts</i></strong> in esclusiva da Maggio P.F. Resta Reef e Grand Resta"

text[4]="<strong><i>Novità BestPrice Estate 2012</i></strong>  E' on line il catalogo BestPrice Estate 2012!"

// Add a link for each message
// Enter "#" if you don't want to link a message (see sample below)
textlink[0]="../../docs/AreaOfferte/offerte_pdf_tutti.php"
textlink[1]="../../viaggievacanzeweb-redirect.html"
textlink[2]="../../docs/AreaGioPartyClub/giopartyclub.php"
textlink[3]="../../docs/AreaGioPartyClub/giopartyclub.php"
textlink[3]="../../docs/BestPrice/estate/area_generale.php"

// Add the target of the link
// Corect values are "_blank","_top", "_self", "_parent" or the name of any frame
texttarget[0]="_blank"
texttarget[1]="_blank"
texttarget[2]="_blank"
texttarget[3]="_blank"
texttarget[3]="_blank"

// Font
var textfont="Arial"

// Font-color
var textfontcolor="#000000"

// Font-color on rollover
var textfontcolorrollover="DARKGRAY"

// Font-size
var textfontsize=9

// Enter true "true" if you want add an underline, else add "none"
var textdecoration="none"

// Background-color
var textbgcolor="#FFFFFF"

// Font-weight. Enter "bold" or "normal"
var textweight="normal"

// Font-style. Enter "italic" or "normal"
var textitalic="normal"

// width and height of ticker (pixels)
var textwidth=500
var textheight=28

// Pause between the Messages (Sekunden)
var textpause=3

// Border-width (write 0 if you don't want to add a border)
var textborder=0

// Border-color
var textbordercolor="#F5F5DCGRAY"

// Speed (higher=slower)
var speed=1

/////////////////////////////////////////////////////////////////////
// END OF
// CONFIGURATION ZONE
////////////////////////////////////////////////////////////////////
// Do not edit below this line

document.write("<table border=0 cellpadding=0 cellspacing=0>")
document.write("<tr><td width="+textwidth+" height="+textheight+" valign=top>")

var textalign="left"
var textvalign="top"
var textitalicA=""
var textitalicB=""
var textweightA=""
var textweightB=""
var textfontsizeHTML=1
var i_mes=0

var i_substring=0
var i_presubstring=0
var i_text=0
var textcontent=""
var notag=true
var textpresubstring=""
var textaftersubstring=""
textpause*=1000

var browserinfos=navigator.userAgent 
var ie4=!document.getElementById&&document.all&&!browserinfos.match(/Opera/)
var ie5=document.getElementById&&document.all&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all&&!browserinfos.match(/Opera/)
var opera=browserinfos.match(/Opera/)  

function gettextcontent() {
	tablewidth=textwidth-2*textborder
	tableheight=textheight-2*textborder
	textpresubstring=text[i_text].substring(0,i_presubstring)
	var i_prepre=i_presubstring-1
	if (i_prepre<0) {i_prepre=0}
	if (text[i_text].substring(i_prepre,i_presubstring)=="<"){notag=false}
	if (text[i_text].substring(i_prepre,i_presubstring)==">"){notag=true}
	if (notag) {
		textcontent="<table border=0 cellpadding=4 width="+tablewidth+" height="+tableheight+"><tr valign="+textvalign+"><td align="+textalign+">"
		textcontent+="<a href='../2012/js/"+textlink[i_text]+"' target='"+texttarget[i_text]+"' style='position:relative; font-family:"+textfont+";text-decoration:"+textdecoration+";font-family:"+textfont+";color:"+textfontcolor+";font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+"' onMouseOver=\"this.style.color=\'"+textfontcolorrollover+"\'\" onMouseOut=\"this.style.color=\'"+textfontcolor+"\'\">"
		textcontent+=textpresubstring
		textcontent+="</a>"
		textcontent+="</td></tr></table>"
	}
}

function showtickerNS6() {
	textcontent="<table border=0 cellpadding=4 width="+textwidth+" height="+textheight+"><tr valign="+textvalign+"><td align="+textalign+">"
	textcontent+="<a href='../2012/js/"+textlink[i_text]+"' target='"+texttarget[i_text]+"' style='position:relative; font-family:"+textfont+";text-decoration:"+textdecoration+";font-family:"+textfont+";color:"+textfontcolor+";font-size:"+textfontsize+"pt;font-weight:"+textweight+";font-style:"+textitalic+"' onMouseOver=\"this.style.color=\'"+textfontcolorrollover+"\'\" onMouseOut=\"this.style.color=\'"+textfontcolor+"\'\">"
	textcontent+=text[i_text]
	textcontent+="</a>"
	textcontent+="</td></tr></table>"
	document.getElementById("ticker").innerHTML=textcontent
	i_text++
	if (i_text>=text.length-1) {i_text=0}
	var timer=setTimeout("showtickerNS6()", 2*textpause)
}

function showticker() {
	if (i_substring<=text[i_text].length) {
			i_substring++
			i_presubstring=i_substring-1
			if (i_presubstring<0) {i_presubstring=0}
			gettextcontent()
		if (ie4) {
			ticker.innerHTML=textcontent
			var timer=setTimeout("showticker()", speed)
		}
		if (ie5 || opera || ns6) {
			document.getElementById("ticker").innerHTML=textcontent
			var timer=setTimeout("showticker()", speed)
		}
	}
	else {
		clearTimeout(timer)
		var timer=setTimeout("changetext()", textpause)
	}
}

function changetext() {
	i_substring=0
	i_presubstring=0
	i_text++
	if (i_text>text.length-1) {
		i_text=0
	}
	showticker()
}


if (ie5 || ns6 || opera) {
	if (ns6) {
		textwidth-=2*textborder
		textheight-=2*textborder
	}
	document.write('<div ID="roof" style="position:relative;width:'+textwidth+'px;height:'+textheight+'px;border-style:solid;border-width:'+textborder+'px;border-color:'+textbordercolor+';background-color:'+textbgcolor+'">')
	document.write('<span ID="ticker" style="position:absolute;top:0px;left:0px;width:'+textwidth+'px;height:'+textheight+'px;"></span>')
	document.write('</div>')
}

window.onload=showticker
document.write("</td></tr></table>")


