path = "http://teatrodelaluna.org/tem/19/"
ima_path = "http://teatrodelaluna.org/tem/19/"

arpas_name = "Latin American Harp Festival"
festival_name = "12th International Festival of Hispanic Theater"
maratonjov_name = "10th Young People's Poetry Marathon"
festivaljov_name = "Children's Theater Festival"
winter_name = "Chúmbale (Every Love Bird Needs a Nest)"
maraton_name = "18th Poetry Marathon"
spring_name = "Heartstrings"

arpas_path = path + "arpas/home.htm"
arpas_ban = "<a class=\"banners\"href=" + arpas_path + ">" + arpas_name + "</a>"
arpas_ban_bol = "<a target=\"_blank\"class=\"banners\"href=http://teatrodelaluna.org/ssl/arpas.htm>" + arpas_name + "</a>"

festival_path = path + "festival/home.htm"
festival_ban = "<a class=\"banners\"href=" + festival_path + ">" + festival_name + "</a>"
festival_ban_bol = "<a target=\"_blank\"class=\"banners\"href=http://teatrodelaluna.org/ssl/festival.htm>" + festival_name + "</a>"

maratonjov_path = path + "maratonjov/home.htm"
maratonjov_ban = "<a class=\"banners\"href=" + maratonjov_path + ">" + maratonjov_name + "</a>"

festivaljov_path = path + "festivaljov/home.htm"
festivaljov_ban = "<a class=\"banners\"href=" + festivaljov_path + ">" + festivaljov_name + "</a>"
festivaljov_ban_bol = "<a target=\"_blank\"class=\"banners\"href=http://teatrodelaluna.org/ssl/experiencia.htm>" + festivaljov_name + "</a>"

winter_path = path + "winter/home.htm"
winter_ban = "<a class=\"banners\"href=" + winter_path + ">" + winter_name + "</a>"
winter_ban_bol = "<a target=\"_blank\"class=\"banners\"href=http://teatrodelaluna.org/ssl/winter.htm>" + winter_name + "</a>"

maraton_path = path + "maraton/home.htm"
maraton_ban = "<a class=\"banners\"href=" + maraton_path + ">" + maraton_name + "</a>"

spring_path = path + "spring/home.htm"
spring_ban = "<a class=\"banners\"href=" + spring_path + ">" + spring_name + "</a>"
spring_ban_bol = "<a target=\"_blank\"class=\"banners\"href=http://teatrodelaluna.org/ssl/spring.htm>" + spring_name + "</a>"

var arpas=new Array()
arpas[0]=[ima_path + "arpas/ima/170/0.jpg", arpas_path, "_self", arpas_name] 
arpas[1]=[ima_path + "arpas/ima/170/1.jpg", arpas_path, "_self", arpas_name]
arpas[2]=[ima_path + "arpas/ima/170/2.jpg", arpas_path, "_self", arpas_name]
arpas[3]=[ima_path + "arpas/ima/170/3.jpg", arpas_path, "_self", arpas_name]
arpas[4]=[ima_path + "arpas/ima/170/4.jpg", arpas_path, "_self", arpas_name]

var arpas_low=new Array()
arpas_low[0]=[ima_path + "arpas/ima/170/0.jpg", arpas_path, "_self", arpas_name] 
arpas_low[1]=[ima_path + "arpas/ima/170/0.jpg", arpas_path, "_self", arpas_name]

var arpas_bol=new Array()
arpas_bol[0]=[ima_path + "arpas/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/arpas.htm", "_blank", arpas_name] 
arpas_bol[1]=[ima_path + "arpas/ima/170/1.jpg", "http://teatrodelaluna.org/ssl/arpas.htm", "_blank", arpas_name]
arpas_bol[2]=[ima_path + "arpas/ima/170/2.jpg", "http://teatrodelaluna.org/ssl/arpas.htm", "_blank", arpas_name]
arpas_bol[3]=[ima_path + "arpas/ima/170/3.jpg", "http://teatrodelaluna.org/ssl/arpas.htm", "_blank", arpas_name]
arpas_bol[4]=[ima_path + "arpas/ima/170/4.jpg", "http://teatrodelaluna.org/ssl/arpas.htm", "_blank", arpas_name]

var festival=new Array()
festival[0]=[ima_path + "festival/ima/170/0.jpg", festival_path, "_self", festival_name] 
festival[1]=[ima_path + "festival/ima/170/1.jpg", festival_path, "_self", festival_name]
festival[2]=[ima_path + "festival/ima/170/2.jpg", festival_path, "_self", festival_name]
festival[3]=[ima_path + "festival/ima/170/3.jpg", festival_path, "_self", festival_name]
festival[4]=[ima_path + "festival/ima/170/4.jpg", festival_path, "_self", festival_name] 
festival[5]=[ima_path + "festival/ima/170/5.jpg", festival_path, "_self", festival_name] 
festival[6]=[ima_path + "festival/ima/170/6.jpg", festival_path, "_self", festival_name]
festival[7]=[ima_path + "festival/ima/170/7.jpg", festival_path, "_self", festival_name]
festival[8]=[ima_path + "festival/ima/170/8.jpg", festival_path, "_self", festival_name]
festival[9]=[ima_path + "festival/ima/170/9.jpg", festival_path, "_self", festival_name] 
festival[10]=[ima_path + "festival/ima/170/0.jpg", festival_path, "_self", festival_name] 

var festival_bol=new Array()
festival_bol[0]=[ima_path + "festival/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name] 
festival_bol[1]=[ima_path + "festival/ima/170/1.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[2]=[ima_path + "festival/ima/170/2.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[3]=[ima_path + "festival/ima/170/3.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[4]=[ima_path + "festival/ima/170/4.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[5]=[ima_path + "festival/ima/170/5.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name] 
festival_bol[6]=[ima_path + "festival/ima/170/6.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[7]=[ima_path + "festival/ima/170/7.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[8]=[ima_path + "festival/ima/170/8.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name]
festival_bol[9]=[ima_path + "festival/ima/170/9.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name] 
festival_bol[10]=[ima_path + "festival/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/festival.htm", "_blank", festival_name] 

var festival_low=new Array()
festival_low[0]=[ima_path + "festival/ima/170/0.jpg", festival_path, "_self", festival_name] 
festival_low[1]=[ima_path + "festival/ima/170/0.jpg", festival_path, "_self", festival_name]

var maratonjov=new Array()
maratonjov[0]=[ima_path + "maratonjov/ima/170/0.jpg", maratonjov_path, "_self", maratonjov_name] 
maratonjov[1]=[ima_path + "maratonjov/ima/170/1.jpg", maratonjov_path, "_self", maratonjov_name]
maratonjov[2]=[ima_path + "maratonjov/ima/170/2.jpg", maratonjov_path, "_self", maratonjov_name]
maratonjov[3]=[ima_path + "maratonjov/ima/170/3.jpg", maratonjov_path, "_self", maratonjov_name]
maratonjov[4]=[ima_path + "maratonjov/ima/170/4.jpg", maratonjov_path, "_self", maratonjov_name] 
maratonjov[5]=[ima_path + "maratonjov/ima/170/0.jpg", maratonjov_path, "_self", maratonjov_name] 

var maratonjov_low=new Array()
maratonjov_low[0]=[ima_path + "maratonjov/ima/170/0.jpg", maratonjov_path, "_self", maratonjov_name] 
maratonjov_low[1]=[ima_path + "maratonjov/ima/170/0.jpg", maratonjov_path, "_self", maratonjov_name]

var festivaljov=new Array()
festivaljov[0]=[ima_path + "festivaljov/ima/170/0.jpg", festivaljov_path, "_self", festivaljov_name] 
festivaljov[1]=[ima_path + "festivaljov/ima/170/1.jpg", festivaljov_path, "_self", festivaljov_name]
festivaljov[2]=[ima_path + "festivaljov/ima/170/2.jpg", festivaljov_path, "_self", festivaljov_name]
festivaljov[3]=[ima_path + "festivaljov/ima/170/3.jpg", festivaljov_path, "_self", festivaljov_name]
festivaljov[4]=[ima_path + "festivaljov/ima/170/4.jpg", festivaljov_path, "_self", festivaljov_name] 
festivaljov[5]=[ima_path + "festivaljov/ima/170/0.jpg", festivaljov_path, "_self", festivaljov_name] 

var festivaljov_bol=new Array()
festivaljov_bol[0]=[ima_path + "festivaljov/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name] 
festivaljov_bol[1]=[ima_path + "festivaljov/ima/170/1.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name]
festivaljov_bol[2]=[ima_path + "festivaljov/ima/170/2.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name]
festivaljov_bol[3]=[ima_path + "festivaljov/ima/170/3.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name]
festivaljov_bol[4]=[ima_path + "festivaljov/ima/170/4.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name] 
festivaljov_bol[5]=[ima_path + "festivaljov/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/experiencia.htm", "_blank", festivaljov_name] 

var festivaljov_low=new Array()
festivaljov_low[0]=[ima_path + "festivaljov/ima/170/0.jpg", festivaljov_path, "_self", festivaljov_name] 
festivaljov_low[1]=[ima_path + "festivaljov/ima/170/0.jpg", festivaljov_path, "_self", festivaljov_name]

var winter=new Array()
winter[0]=[ima_path + "winter/ima/170/0.jpg", winter_path, "_self", winter_name] 
winter[1]=[ima_path + "winter/ima/170/1.jpg", winter_path, "_self", winter_name]
winter[2]=[ima_path + "winter/ima/170/2.jpg", winter_path, "_self", winter_name]
winter[3]=[ima_path + "winter/ima/170/3.jpg", winter_path, "_self", winter_name]
winter[4]=[ima_path + "winter/ima/170/4.jpg", winter_path, "_self", winter_name] 
winter[5]=[ima_path + "winter/ima/170/0.jpg", winter_path, "_self", winter_name] 

var winter_low=new Array()
winter_low[0]=[ima_path + "winter/ima/170/0.jpg", winter_path, "_self", winter_name] 
winter_low[1]=[ima_path + "winter/ima/170/0.jpg", winter_path, "_self", winter_name]

var winter_bol=new Array()
winter_bol[0]=[ima_path + "winter/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name] 
winter_bol[1]=[ima_path + "winter/ima/170/1.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name]
winter_bol[2]=[ima_path + "winter/ima/170/2.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name]
winter_bol[3]=[ima_path + "winter/ima/170/3.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name]
winter_bol[4]=[ima_path + "winter/ima/170/4.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name]
winter_bol[5]=[ima_path + "winter/ima/170/5.jpg", "http://teatrodelaluna.org/ssl/winter.htm", "_blank", winter_name]

var maraton=new Array()
maraton[0]=[ima_path + "maraton/ima/170/0.jpg", maraton_path, "_self", maraton_name] 
maraton[1]=[ima_path + "maraton/ima/170/1.jpg", maraton_path, "_self", maraton_name]
maraton[2]=[ima_path + "maraton/ima/170/2.jpg", maraton_path, "_self", maraton_name]
maraton[3]=[ima_path + "maraton/ima/170/3.jpg", maraton_path, "_self", maraton_name]
maraton[4]=[ima_path + "maraton/ima/170/4.jpg", maraton_path, "_self", maraton_name] 
maraton[5]=[ima_path + "maraton/ima/170/0.jpg", maraton_path, "_self", maraton_name] 

var maraton_low=new Array()
maraton_low[0]=[ima_path + "maraton/ima/170/0.jpg", maraton_path, "_self", maraton_name] 
maraton_low[1]=[ima_path + "maraton/ima/170/0.jpg", maraton_path, "_self", maraton_name]

var spring=new Array()
spring[0]=[ima_path + "spring/ima/170/0.jpg", spring_path, "_self", spring_name] 
spring[1]=[ima_path + "spring/ima/170/1.jpg", spring_path, "_self", spring_name]
spring[2]=[ima_path + "spring/ima/170/2.jpg", spring_path, "_self", spring_name]
spring[3]=[ima_path + "spring/ima/170/3.jpg", spring_path, "_self", spring_name]
spring[4]=[ima_path + "spring/ima/170/4.jpg", spring_path, "_self", spring_name] 
spring[5]=[ima_path + "spring/ima/170/0.jpg", spring_path, "_self", spring_name] 

var spring_low=new Array()
spring_low[0]=[ima_path + "spring/ima/170/0.jpg", spring_path, "_self", spring_name] 
spring_low[1]=[ima_path + "spring/ima/170/0.jpg", spring_path, "_self", spring_name]

var spring_bol=new Array()
spring_bol[0]=[ima_path + "spring/ima/170/0.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name] 
spring_bol[1]=[ima_path + "spring/ima/170/1.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name]
spring_bol[2]=[ima_path + "spring/ima/170/2.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name]
spring_bol[3]=[ima_path + "spring/ima/170/3.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name]
spring_bol[4]=[ima_path + "spring/ima/170/4.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name]
spring_bol[5]=[ima_path + "spring/ima/170/5.jpg", "http://teatrodelaluna.org/ssl/spring.htm", "_blank", spring_name]

var experiencia=new Array()
experiencia[0]=["http://teatrodelaluna.org/tem/13/lacaja/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "Experience Theater"] 
experiencia[1]=["http://teatrodelaluna.org/tem/17/pinocho/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "The Adventures of Pinocchio"]
experiencia[2]=["http://teatrodelaluna.org/tem/18/hanselygretel/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "Hansel & Gretel"]
experiencia[3]=["http://teatrodelaluna.org/tem/14/labelladurmiente/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "La Bella Durmiente"]
experiencia[4]=["http://teatrodelaluna.org/tem/13/anacleto/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "Don Anacleto the Miser"] 
experiencia[5]=["http://teatrodelaluna.org/tem/18/abe/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "ABE, a dream fulfilled"]
experiencia[6]=["http://teatrodelaluna.org/tem/19/elgato/ima/0_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "The Cat and the Seagull"]
experiencia[7]=["http://teatrodelaluna.org/tem/06/pluf/ima/2_170.jpg", "http://teatrodelaluna.org/homes/experiencia_i.htm", "_self", "Pluf, The Little Ghost"]

var experiencia_low=new Array()
experiencia_low[0]=["http://teatrodelaluna.org/tem/13/lacaja/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia.htm", "_self", "Experience Theater"] 
experiencia_low[1]=["http://teatrodelaluna.org/tem/13/lacaja/ima/1_170.jpg", "http://teatrodelaluna.org/homes/experiencia.htm", "_self", "Experience Theater"]

var fadebgcolor="black"
var fadearray=new Array()
var fadeclear=new Array()
var dom=(document.getElementById)
var iebrowser=document.all
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();})
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array()
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
if (iebrowser&&dom||dom)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
if (iebrowser&&dom||dom)
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}
function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number")
obj.tempobj.filters[0].opacity=obj.degree
else
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="")
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'" title="'+this.theimages[picindex][3]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="")
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1)
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number")
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
