 
 
//var xcounter = parent.wftop.xcounter
if (xcounter == undefined)
    var xcounter = "a"
if (isNaN(xcounter)) xcounter = Math.random(1000) * 1234
   
var flash100 = 1

if (xcounter < 1000000)
   xcounter = Math.floor(Math.random(10) * 10) + 1025199    

var zflashname = "realf_bahiapart"
var zbgcolor   = "#003355" 
var zbgcolor2  = "#003355"   


function getmsg(){
window.open("realf_zform.html","_blank")
return
lang    = movie.GetVariable("lang")
nome    = movie.GetVariable("msg_nome")
email   = movie.GetVariable("msg_email")
texto   = movie.GetVariable("msg_texto")
//alert(nome + email + texto)
parent.wftop.msg1(nome, email, texto)

}


function msg_email(){
lang  = movie.GetVariable("lang")
if (lang == 1)
   alert("Por favor coloque seu EMAIL")
else if (lang == 3)
         alert("Por favor coloque su EMAIL")
else
      alert("Please write your EMAIL")
} //////////////////


function msg_datos(){
lang  = movie.GetVariable("lang")
if (lang == 1)
   alert("Por favor forneça mais informações")
else if (lang == 3)
   alert("Por favor proporcione más datos")
else 
   alert("Please provide more information")
} //////////////////


function checkemail(x){
var filter=/^.+@.+\..{2,3}$/
if (filter.test(x))
   return true
else
   return false
}

 
function getdata(){ 
var fone = "info@bahiapart.com &nbsp; </font> &nbsp; Salvador-Bahia-Brasil"
movie.SetVariable("xcounter",xcounter)
movie.SetVariable("lang",lang)
movie.SetVariable("fone",fone)
movie.TGotoLabel("/", "START")
}


function golink(){
lang    = movie.GetVariable("lang")
xlink   = movie.GetVariable("xlink")
var z   = "realtors1.php?xlang=" + lang + "&xmode=" + xlink 
var hh = screen.height - 50
var ww = screen.width - 20
window.open(z,'_blank') // , 'width='+ww+', height='+hh+', scrollbars=yes, toolbar=yes, menubar=yes, statusbar=yes')

}////////////////////////


function gocarnival(){
lang    = movie.GetVariable("lang")
var z   = "bahiapart_carnivalroomsbook.html"
window.open(z,'_blank') 

}////////////////////////

function getlang(){
lang = movie.GetVariable("lang")
}
 
 
 
if (flash100 == 1 || screen.height < 760)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="' + zflashname + '" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="scale" value="showall" />')
document.write('<param name="movie" value="' + zflashname + '.swf" />')
document.write('<param name="quality" value="best" />')
document.write('<param name="bgcolor" value="' + zbgcolor + '" />')
document.write('<embed src="' + zflashname + '.swf" quality="best" bgcolor="' + zbgcolor + '" width="100%" height="100%" name="' + zflashname + '" scale="showall"  align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>')
 
} else
{ 
document.write('<br><br><table align=center><tr><td align=center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="480" id="' + zflashname + '" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="movie" value="' + zflashname + '.swf" />')
document.write('<param name="quality" value="best" />')
document.write('<param name="bgcolor" value="' + zbgcolor + '" />')
document.write('<embed src="' + zflashname + '.swf" quality="best" bgcolor="' + zbgcolor + '" width="720" height="480" name="' + zflashname + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object></td></tr></table>')

}



var movie = eval("window.document." + zflashname)
var lang  = 2
var xlink = 1


