var text1 = 9
var text2 = 11



var pagename = "salvadorcarnival_zmainframe.html"
var aa = window.location.search
if (parent.aa != "")
    top.location = "salvadorcarnival_zmainframe.html?" + aa

 


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,170,245)
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
 
if (webcotiza == undefined)
void(0)
else
{  tcotiza[1] = webcotiza[1]
   tcotiza[2] = webcotiza[2]
   tcotiza[3] = webcotiza[3]
}
 
var a = window.location.search.substring(1)
if (a.length > 0)
{ 
  
  if (a.substring(0,3) == "con")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 100
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }    
  else if (a.substring(0,3) == "for")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 101
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }    
  else if (a.substring(0,3) == "vid")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 110
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }  
  else if (a.substring(0,3) == "mus")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 120
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }  
  else if (a.substring(0,3) == "pas")
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 200
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }  
  else if (a.substring(0,3) == "aba") // to buy
  {   a = a.substring(3)
      var temp = a.split(",")
      thisoption = 210
      thisplace  = temp[0]
      thiscity   = (temp[1] * 1) 
      thiscurrency = (temp[2] * 1) 
  }  
  else if (a.substring(0,1) == "a") 
  {  a = a.substring(1)
     thisoption = 0
     if (a == "1") thiscurrency = 1
     if (a == "2") thiscurrency = 2     
     if (a == "3") thiscurrency = 3
  } 

  else if (a.substring(0,1) == "c") 
  {  a = a.substring(1)
     thiscity = a * 1
     
  } 
  else if (a.substring(0,1) == "m")
  {   a = a.substring(1)
      var temp = a.split(",")
      thisoption = temp[0]
      thiscity   = (temp[1] * 1) + 1
      thiscurrency = (temp[2] * 1) + 1
     
  }    
}

//cities
var tcity = new Array("","SALVADOR","MORRO DE SÃO PAULO","PRAIA DO FORTE","LENÇÓIS - CHAPADA DIAMANTINA","ILHEUS","ITACARE","PORTO SEGURO","TRANCOSO")
var tcur  = new Array("","BRL Brazilian Real","USD American Dolar","EUR Euro")
var ttopic = new Array("","Choose a Topic","Place to Stay","Passes/Abadas","Videos","Music", "Other")



//Fotos will have the number on the list
var tmusic = new Array()
x = 0
tmusic[++x] = new Array("Daniela Mercury","Rapunzel")
tmusic[++x] = new Array("Olodum"         ,"Requebra")
tmusic[++x] = new Array("Ivete Sangalo"  ,"Chupa Toda")
tmusic[++x] = new Array("Timbalada"      ,"É para beber")
tmusic[++x] = new Array("Chiclete"       ,"Cabelo raspadinho")
tmusic[++x] = new Array("Araketu"        ,"Pipoca")
tmusic[++x] = new Array("Claudia Leite"  ,"Canudinho")
tmusic[++x] = new Array("Psirico"        ,"Toda Boa")
tmusic[++x] = new Array("Jamil"          ,"Solteiro em Salvador")



var tabadas = new Array()
x = 0
 
tabadas[++x] = new Array("Araketu","","Barra","Avenida","Avenida","","Barra","Araketu",230)
tabadas[++x] = new Array("Cheiro","Barra","","","Avenida","Avenida","Avenida","Cheiro",260)
tabadas[++x] = new Array("Chiclete","","","","Barra","Avenida","Avenida","Camaleão",840)
tabadas[++x] = new Array("Claudia Leite","Barra","","","Avenida","Barra","Barra","BlocoBarra",330)
tabadas[++x] = new Array("Daniela Mercuri","","","","Barra","Barra","Barra","Crocodilo",290)
tabadas[++x] = new Array("Ivete Sangalo","","","","Avenida","Barra","Barra","Coruja",690)
tabadas[++x] = new Array("Jamil","","Barra","","Barra","Barra","Barra","Balada",290)
tabadas[++x] = new Array("Motumba","","","","Avenida","Barra","Avenida","Beijo",120)
tabadas[++x] = new Array("Olodum","","","","Avenida","Barra","Avenida","Olodum",450)
tabadas[++x] = new Array("Psirico","","Barra","","Barra","","Barra","Alo Inter",90)
tabadas[++x] = new Array("Timbalada","","Barra","Barra","","","","Timbalada",290)




thiscity = 1
var flash100 = 1
var zflashfotos = "salvadorcarnival_photos"
var zflashmusic = "salvadorcarnival_music"
var rowfoto    = 300
var colfoto    = 225
var zflashname = "salvadorcarnival_side2" // novideo
if (thisoption == 110)
    zflashname = "salvadorcarnival_fix"
var zbgcolor   = "#ffffff" 
var zbgcolor2  = "#ffffff"   
var row1    = 176
var col1    = 368
var rowvid  = 425
var colvid  = 344
var vidw    = 253
var vidh    = 215
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('Carnival 2008 w/Fat Boy Slim','http://www.youtube.com/watch?v=2R18cl03v80','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/2R18cl03v80&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/2R18cl03v80&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[2] = new Array('Carnival 2008','http://www.youtube.com/watch?v=T6cn4mnsJdc','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/T6cn4mnsJdc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/T6cn4mnsJdc&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[3] = new Array('Carnival 2008 w/Chiclete','http://www.youtube.com/watch?v=RcV5mJDPBgQ','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/RcV5mJDPBgQ&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/RcV5mJDPBgQ&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[4] = new Array('Carnival 2008 Smirnoff Experience','http://www.youtube.com/watch?v=Sf7pG8M0E50','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/Sf7pG8M0E50&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Sf7pG8M0E50&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[5] = new Array('Carnival 2007 w/Fat Boy Slim','http://www.youtube.com/watch?v=GG1lXXxI2kE&feature=related','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/GG1lXXxI2kE&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/GG1lXXxI2kE&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[6] = new Array('Carnaval 2007 Chiclete','http://www.youtube.com/watch?v=oXZstwMjjjU','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/oXZstwMjjjU&hl=pt-br&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/oXZstwMjjjU&hl=pt-br&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="' + vidw + '" height="' + vidh + '"></embed></object>')
tvideos[7] = new Array('Carnival 2006 Ivete + U2','http://www.youtube.com/watch?v=PUEtp06-e2c&feature=related','<object width="' + vidw + '" height="' + vidh + '"><param name="movie" value="http://www.youtube.com/v/PUEtp06-e2c&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/PUEtp06-e2c&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: #ff5000; text-decoration: none;}')
document.write('A:active {color: #ff5000; text-decoration: none;}')
document.write('A:hover {color: #ffaa55; text-decoration: none;}')
document.write('select  { font-size: 9px; font-family: Verdana;	color:#000000; background-color:#ffffff; }')
document.write('</style>')


 