var text1 = 9
var text2 = 11

var pagename = "bahiacarnival.html"
var pagename2 = "bahiacarnival.html"
var pageindex = 1




var turl = new Array("a","b","c","d","e","g","h","k","m","n","o","p","q","r","s","u","v","w","x","y","z")
var turln = new Array("Porto da Barra", "Farol da Barra", "Ladeira da Barra", "Cristo da Barra", "Ondina", "Vitoria", "Pelourinho","Rio Vermelho", "Amaralina", "Barra Jardim Brasil") // 10

var aurl = 1
var zurl = document.URL

////if (zurl.indexOf(pagename) < 1)
////    pageindex = 0




var la   = zurl.lastIndexOf("/")
zurl     = zurl.substring(la+1)
la = zurl.indexOf("html")
 

if (la > 1)
{   var nume = zurl.substring(la-2,la-1)
    zurl     = zurl.substring(la - 3,la-2)
    if (isNaN(nume))
        nume = 1
    aurl = ((geturl(zurl) + 1) * 10) + (nume * 1)
    if (aurl > 140)
        aurl -= 100
    
    // alert(aurl)
     
}
    
function geturl(z){
for (i=0; i<turl.length; i++) { if (turl[i] == z)  return i; }
return 0  
}///////////////////







var rownum   = 5
var emaildefault = "info@salvadorcarnival.info"
//cores
var corname   = "#444444"
var cortext   = "#444444"
var cormore   = "#ff5000"  //"#dd0000"
var corrating = "#304080"
var corprice  = "#ff5000"  //"#dd0000"  
var corrating2 = "#ffffff"
var corrating3 = "#ffcc00"
var corlink    = "#ff5000"
var thiscorrating = ""
var thiscorrating3 = ""

var thisplace    = 0
var thisoption   = 999
var thiscity     = 1
var thiscurrency = 3
var thisrate     = 0
var thisrate2 = 0
var thisrate3 = 0
var ttype     = new Array("","","","","")
var tcurrency = new Array("","BRL","USD","EUR")
var tcotiza   = new Array("",100,195,271)
var tpay      = new Array("Payment options","Credit Card","Paypal direct","Western Union")
var tdays     = new Array("","Thu","Fri","Sat","Sun","Mon","Tue")
var rating = 0
var ratingimg = ""
var musicprevious = 0
 

var a = window.location.search.substring(1)
if (a.length > 0)
{ 
  if (a.substring(0,3) == "for")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 101
      thisplace  = temp[0]
      pageindex = 0 
      
  }    
  else if (a.substring(0,3) == "vid")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 110
      thisplace  = temp[0]
      pageindex = 0
      
  }  

}

 




 
var flash100 = 1
var zflashfotos = "fotofix_fade"
var zflashmusic = "salvadorcarnival_music"
var rowfoto    = 400
var colfoto    = 266
var zflashname = "salvadorcarnival_side2" // novideo
if (thisoption == 110)
    zflashname = "salvadorcarnival_fix"
var zbgcolor   = "#ff7000" 
var zbgcolor2  = "#ff7000"   
var row1    = 176
var col1    = 368
var rowvid  = 425   // // 542 (1.28) or 531 at 1.25
var colvid  = 344   // 430 1.25
var vidw    = 380
var vidh    = 310
var rowmap  = 425
var colmap  = 282
var rowtext = 530
var coltext = 400
var rowfoto1 = 100
var rowonefoto = 546
var colonefoto = 225
var mwidth = 116
var mheight = 18
var itemwidth = 546
var itemheight = 225
var itemfotowidth = 100
var bookbut = "salvadorcarnival_booknow2.gif"
var totalabadas = 0


if (screen.width > 800)
{   row1 = Math.floor(screen.width * 0.22)   // 220
    col1 = Math.floor(screen.height * 0.61)  // 460
    rowvid  = Math.floor(screen.width * 0.53)   // 
    colvid  = Math.floor(screen.height * 0.56)   //
    vidw    = Math.floor(vidw * 1.25)   // 
    vidh    = Math.floor(vidh * 1.25)   //
    rowmap  = Math.floor(screen.width * 0.53)   // 
    colmap  = Math.floor(screen.height * 0.47)   // 
    rowtext = Math.floor(screen.width * 0.66)   // 
    coltext = Math.floor(screen.height * 0.66)   // 
    rowfoto1 = Math.floor(rowfoto1 * 1.25)
    rowfoto  = Math.floor(rowfoto  * 1.25)
    colfoto  = Math.floor(colfoto  * 1.25)
    rowonefoto  = Math.floor(rowonefoto  * 1.25)
    colonefoto  = Math.floor(colonefoto  * 1.25)
    mwidth      = Math.floor(mwidth  * 1.25)
    mheight     = Math.floor(mheight * 1.25)
    itemwidth      = Math.floor(itemwidth  * 1.25)
    itemheight     = Math.floor(itemheight * 1.25)
    itemfotowidth  = Math.floor(itemfotowidth  * 1.25)
    bookbut = "salvadorcarnival_booknow.gif"
   // if (thisoption == 999)
   text1   = 12   // 
   text2   = 15   // 
   // }

}


var tvideos = new Array()
tvideos[1] = new Array('Salvador Carnival Guide','http://www.youtube.com/watch?v=kbIFP-DwAP8','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/kbIFP-DwAP8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/kbIFP-DwAP8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[2] = new Array('Psirico','http://www.youtube.com/watch?v=F4qYGRYda9w','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/F4qYGRYda9w&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/F4qYGRYda9w&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')

tvideos[3] = new Array('Salvador Bahia Documentary','http://www.youtube.com/watch?v=M3nQChVzZCI','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/M3nQChVzZCI&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/M3nQChVzZCI&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[4] = new Array('Carnival in Pelourinho','http://www.youtube.com/watch?v=lXMUPpfcSEk','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/lXMUPpfcSEk&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lXMUPpfcSEk&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[5] = new Array('Olodum','http://www.youtube.com/watch?v=OfFA8CppNR8','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/OfFA8CppNR8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OfFA8CppNR8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[6] = new Array('Carnival Dancing','http://www.youtube.com/watch?v=zl4COmIFtwE','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/zl4COmIFtwE&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zl4COmIFtwE&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[7] = new Array('Chiclete','http://www.youtube.com/watch?v=JfVd1NIiuTs&feature=related','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/JfVd1NIiuTs&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/JfVd1NIiuTs&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[8] = new Array('Carnival 2006 Gil + U2','http://www.youtube.com/watch?v=4RXYCGOhk9A&feature=related','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/4RXYCGOhk9A&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/4RXYCGOhk9A&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
 

document.write('<style lang="text/css"> td {font: normal ' + text1 + 'pt/' + text2 + 'pt verdana; align=middle}')
document.write('A:link, A:visited {color: #ffffff; text-decoration: none;}')
document.write('A:active {color: #ffffff; text-decoration: none;}')
document.write('A:hover {color: #ffc000; text-decoration: none;}')
document.write('select  { font-size: 9px; font-family: Verdana;	color:#000000; background-color:#ffffff; }')
document.write('</style>')
 
