 

var maindomain = "openhousehostels.com"
var zflashname = "openhouse_hostels"
 
var flash100 = 1
var zbgcolor   = "#95AC9F" 
var zbgcolor2  = "#95AC9F"  
 
 
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>')
}

/*
document.write('<br><FORM NAME="xmail"   METHOD="POST" ACTION="http://www.' + maindomain + '/zendmsg.php">')
document.write('<INPUT TYPE="HIDDEN" NAME="subject"   VALUE="Salvadorms: ">')
document.write('<INPUT TYPE="HIDDEN" NAME="email"     VALUE="">')
document.write('<INPUT TYPE="HIDDEN" NAME="texto"     VALUE="">')
document.write('</form>') 
*/
var movie = eval("window.document." + zflashname)

function getmovie(){ 
movie.SetVariable("check", check2) 
movie.SetVariable("moviename", moviename) 
movie.TGotoLabel("/", "XSTART") 
check2 = ""
}//////////////////

function getmsg(n){
lang        = movie.GetVariable("lang")
var nome    = movie.GetVariable("msg_campo1")
var email   = movie.GetVariable("msg_campo3")
var fone    = movie.GetVariable("msg_campo2")
var texto   = movie.GetVariable("msg_campo4")
//alert(nome + email + fone + texto)
texto = nome + "\n" + fone + "\n" + email + "\n" + texto
domsg(email, texto)
//parent.wftop.getmsg(texto,email)
}////////////////////

 

function domsg(email,texto){
document.xmail.subject.value += email
document.xmail.email.value = email
document.xmail.texto.value = texto 
document.xmail.submit()
}/////////////////////////////

 
