function Loadtopswf(lojadesig, lojawebsite,lang)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' wmode='transparent' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='860' height='112' id='topswf' align='middle' VIEWASTEXT>");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='movie' value='imagens/era_top.swf?lng="+lang+"&loja="+lojadesig+"&lojaurl="+lojawebsite+"&lite=' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='bgcolor' value='#FFFFFF' />");
	document.write("<param name='menu' value='false' />");
	document.write("<embed src='imagens/era_top.swf?lng="+lang+"&loja="+lojadesig+"&lojaurl="+lojawebsite+"&lite=' quality='high' bgcolor='#FFFFFF' width='860' height='112' menu='false' name='top_swf' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function LoadtopAlgarve(lang)
{
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' wmode='transparent' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='460' height='220' id='topswfALG' align='middle' VIEWASTEXT>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='movie' value='imagens/main_algarve_"+lang+".swf' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='bgcolor' value='#FFFFFF' />");
    document.write("<param name='menu' value='false' />");
    document.write("<embed src='imagens/main_algarve_"+lang+".swf' quality='high' bgcolor='#FFFFFF' width='460' height='220' menu='false' name='top_swfALG' align='middle' wmode='transparent' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
}

function LoadMap()
{
	document.write('<OBJECT id="mapa_base" wmode="transparent" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
	document.write('height="230" width="250" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" VIEWASTEXT>');
	document.write('<PARAM NAME="_cx" VALUE="6615">');
	document.write('<PARAM NAME="_cy" VALUE="6085">');
	document.write('<PARAM NAME="wmode" value="transparent">');
	document.write('<PARAM NAME="FlashVars" VALUE="">');
	document.write('<PARAM NAME="Movie" VALUE="mapa_base.swf">');
	document.write('<PARAM NAME="Src" VALUE="imagens/mapa_base.swf">');
	//document.write('<PARAM NAME="Play" VALUE="0">');
	document.write('<PARAM NAME="Loop" VALUE="-1">');
	document.write('<PARAM NAME="Quality" VALUE="High">');
	document.write('<PARAM NAME="SAlign" VALUE="">');
	document.write('<PARAM NAME="Menu" VALUE="-1">');
	document.write('<PARAM NAME="Base" VALUE="">');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll">');
	document.write('<PARAM NAME="DeviceFont" VALUE="0">');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0">');
	document.write('<PARAM NAME="BGColor" VALUE="FFFFFF">');
	document.write('<PARAM NAME="SWRemote" VALUE="">');
	document.write('<PARAM NAME="MovieData" VALUE="">');
	document.write('<embed src="imagens/mapa_base.swf" width="250" height="230"');
	document.write('swLiveConnect="true" name="mapa_base" wmode="transparent" allowScriptAccess="sameDomain"');
	document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</OBJECT>');
	
}

function Load_xs(lang)
{
	document.write("<OBJECT id='banner_xs' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' height='75' width='130' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' VIEWASTEXT>");
	document.write("<PARAM NAME='_cx' VALUE='3440'>");
	document.write("<PARAM NAME='_cy' VALUE='1984'>");
	document.write("<PARAM NAME='FlashVars' VALUE=''>");
	document.write("<PARAM NAME='Movie' VALUE='imagens/banner_xs1.swf?xurl=genericStatic.aspx?page=FormRecrutamento+lang="+lang+"'>");
	document.write("<PARAM NAME='Src' VALUE='imagens/banner_xs1.swf?xurl=genericStatic.aspx?page=FormRecrutamento+lang="+lang+"'>");
	document.write("<PARAM NAME='WMode' VALUE='Window'>");
	document.write("<PARAM NAME='Play' VALUE='-1'>");
	document.write("<PARAM NAME='Loop' VALUE='-1'>");
	document.write("<PARAM NAME='Quality' VALUE='High'>");
	document.write("<PARAM NAME='SAlign' VALUE=''>");
	document.write("<PARAM NAME='Menu' VALUE='0'>");
	document.write("<PARAM NAME='Base' VALUE=''>");
	document.write("<PARAM NAME='AllowScriptAccess' VALUE='sameDomain'>");
	document.write("<PARAM NAME='Scale' VALUE='ShowAll'>");
	document.write("<PARAM NAME='DeviceFont' VALUE='0'>");
	document.write("<PARAM NAME='EmbedMovie' VALUE='0'>");
	document.write("<PARAM NAME='BGColor' VALUE='FFFFFF'>");
	document.write("<PARAM NAME='SWRemote' VALUE=''>");
	document.write("<PARAM NAME='MovieData' VALUE=''>");
	document.write("<PARAM NAME='SeamlessTabbing' VALUE='1'>");
	document.write("<PARAM NAME='Profile' VALUE='0'>");
	document.write("<PARAM NAME='ProfileAddress' VALUE=''>");
	document.write("<PARAM NAME='ProfilePort' VALUE='0'>");
	document.write("<embed src='imagens/banner_xs1.swf?xurl=genericStatic.aspx?page=FormRecrutamento+lang="+lang+"' quality='high' bgcolor='#FFFFFF' width='130' height='75' menu='false' name='banner_xs' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</OBJECT>");
}

function Loadbanner_m(lang)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-4445535400050' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='180' height='200' id='banner_m' align='middle'>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    //document.write("<param name='movie' value='imagens/banner_m25.swf?xurl=genericStatic.aspx?page=FormQuerVender+lang="+lang+"' />");
    document.write("<param name='movie' value='imagens/banner100000.swf' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='bgcolor' value='#CC0000' />");
    document.write("<param name='menu' value='false' />");
    document.write("<embed src='imagens/banner100000.swf' quality='high' bgcolor='#CC0000' width='180' height='200' menu='false' name='banner_m' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function Loadbanner_s(lang)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='180' height='180' id='banner_s' align='middle' VIEWASTEXT>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='movie' value='imagens/banner_ERA.swf' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='bgcolor' value='#FFFFFF' />");
    document.write("<param name='menu' value='false' />");
    document.write("<embed src='imagens/banner_ERA.swf' quality='high' bgcolor='#FFFFFF' width='180' height='180' menu='false' name='banner_s' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
}

function LoadBannerLeftBPI()
{
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='130' height='130' id='130x130' align='middle'>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='movie' value='imagens/130x130.swf' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='bgcolor' value='#000000' />");
    document.write("<embed src='imagens/130x130.swf' quality='high' bgcolor='#000000' width='130' height='130' name='130x130' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
}

function Loadsim_ERA(valorForSim)
{
	document.write("<applet align=absmiddle codebase='http://rep.bancobpi.pt/applets/habit/' archive='simulador.jar' code='simHabitacao.class' width='220' height='155' VIEWASTEXT>");
	document.write("<param name=cliente value=era>");
	document.write("<param name=financiamento value="+valorForSim+">");
	document.write("<param name=ve value="+valorForSim+">");
	document.write("</applet>");
	/*
	document.write("<OBJECT id='sim_ERA' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' height='190' width='260' align='middle' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' VIEWASTEXT>");
	document.write("<PARAM NAME='_cx' VALUE='6879'>");
	document.write("<PARAM NAME='_cy' VALUE='5027'>");
	document.write("<PARAM NAME='FlashVars' VALUE=''>");
	document.write("<PARAM NAME='Movie' VALUE='imagens/imagensextra/sim_a.swf?financiaMax="+valorForSim+"&amp;financia=90&amp;prazoMax=50&amp;prazoMin=0&amp;prazo=30&amp;segvida=280&amp;taxa=4.625&amp;dataOK=OK&amp'>");
	document.write("<PARAM NAME='Src' VALUE='imagens/imagensextra/sim_a.swf?financiaMax="+valorForSim+"&amp;financia=90&amp;prazoMax=50&amp;prazoMin=0&amp;prazo=30&amp;segvida=280&amp;taxa=4.625&amp;dataOK=OK&amp'>");
	document.write("<PARAM NAME='WMode' VALUE='Window'>");
	document.write("<PARAM NAME='Play' VALUE='-1'>");
	document.write("<PARAM NAME='Loop' VALUE='-1'>");
	document.write("<PARAM NAME='Quality' VALUE='High'>");
	document.write("<PARAM NAME='SAlign' VALUE=''>");
	document.write("<PARAM NAME='Menu' VALUE='-1'>");
	document.write("<PARAM NAME='Base' VALUE=''>");
	document.write("<PARAM NAME='AllowScriptAccess' VALUE='sameDomain'>");
	document.write("<PARAM NAME='Scale' VALUE='ShowAll'>");
	document.write("<PARAM NAME='DeviceFont' VALUE='0'>");
	document.write("<PARAM NAME='EmbedMovie' VALUE='0'>");
	document.write("<PARAM NAME='BGColor' VALUE='FFDBBB'>");
	document.write("<PARAM NAME='SWRemote' VALUE=''>");
	document.write("<PARAM NAME='MovieData' VALUE=''>");
	document.write("<PARAM NAME='SeamlessTabbing' VALUE='1'>");
	document.write("<PARAM NAME='Profile' VALUE='0'>");
	document.write("<PARAM NAME='ProfileAddress' VALUE=''>");
	document.write("<PARAM NAME='ProfilePort' VALUE='0'>");
	document.write("<embed src='imagens/imagensextra/sim_a.swf?financiaMax="+valorForSim+"&amp;financia=90&amp;prazoMax=50&amp;prazoMin=0&amp;prazo=30&amp;segvida=280&amp;taxa=4.625&amp;dataOK=OK&amp' quality='high' bgcolor='#FFDBBB' width='260' height='190' name='sim_ERA' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</OBJECT>");
	*/
}

function LoadFlashCasaAberta(hora, morada)
{
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='460' height='230' id='e_aqui' align='middle'>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='movie' value='imagens/e_aquicasaaberta.swf?datahora=" + hora + "&morada=" + morada + "' /><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='imagens/e_aquicasaaberta.swf?datahora=" + hora + "&morada=" + morada + "' quality='high' bgcolor='#ffffff' width='460' height='230' name='e_aqui' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
}


function LoadFlashBannerCasaAberta()
{
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='180' height='207' id='Object1' align='middle'>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='movie' value='imagens/banner_casaaberta.swf?xurl=genericStatic.aspx?page=menucasaaberta&casaaberta=true' />");
    document.write("<param name='Src' value='imagens/banner_casaaberta.swf?xurl=genericStatic.aspx?page=menucasaaberta&casaaberta=true' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='bgcolor' value='#ffffff' />");
    document.write("<embed src='imagens/banner_casaaberta.swf?xurl=genericStatic.aspx?page=menucasaaberta&casaaberta=true' quality='high' bgcolor='#ffffff' width='180' height='207' name='Banner' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
}