var is_pop = false;

// le skycraper 
function DrawSkycraper(i)
{
	var t="";
	t +='<table border="0" cellspacing="2" cellpadding="0">';
	t +='				<tr>';
	t +='					<td><br></td>';
	t +='				</tr>';
	t +='				<tr>';
	if(!is_pop)
	{
		t +='					<td><div align="center"><font size="2"><a href="javascript:history.back()"><font color="Blue"><b>Retour</b></font></a></div></td>';
	}
	else
	{
		t +='					<td><div align="center"><font size="2"><a href="javascript:window.close()"><font color="Blue"><b>Fermer</b></font></a></div></td>';
	}
	t +='				</tr>';
	t +='				<tr>';
	t +='					<td><br></td>';
	t +='				</tr>';
	t +='				<tr>';
	t +='					<td>';
	t +='<div align="center">';
	
	if(infopub["skycraper"][i]["lien"] != "")
	{
		if( infopub["skycraper"][i]["type"]  == "pub")
		{
			t +='		<a href="javascript:popup(\''+infopub["skycraper"][i]["lien"]+'\',1050,700,2,\'pub\')"><img src="'+infopub["skycraper"][i]["img"]+'"   border="0"></a><br>';
		}
		else
		{
			if(is_pop==false)
			{
				t +='		<a href="'+infopub["skycraper"][i]["lien"]+'"><img src="'+infopub["skycraper"][i]["img"]+'"   border="0"></a><br>';
			}
			else
			{
				t +='		<a href="javascript:window.opener.location=\''+infopub["skycraper"][i]["lien"]+'\'; window.opener.focus(); window.close();"><img src="'+infopub["skycraper"][i]["img"]+'"   border="0"></a><br>';
			}
		}
	}
	else
	{
		t +='		<img src="'+infopub["skycraper"][i]["img"]+'"   border="0"><br>';
	}
	t +='	<br>';
	t +='	<br>';
	t +='</div>';
	t +='					</td>';
	t +='				</tr>';
	t +='			</table>';
	document.getElementById("zone_skycraper").innerHTML = t;
}

// le bloc de pub dans la page fiche
function DrawBlocPub(i)
{
	var t="";
	
	if(infopub["bloc"][i]["lien"] != "")
	{
		if( infopub["bloc"][i]["type"]  == "pub")
		{
			t +='		<a href="javascript:popup(\''+infopub["bloc"][i]["lien"]+'\',1050,700,2)"><img src="'+infopub["bloc"][i]["img"]+'"   border="0"></a><br>';
		}
		else
		{
			if(!is_pop)
			{
				t +='		<a href="'+infopub["bloc"][i]["lien"]+'"><img src="'+infopub["bloc"][i]["img"]+'"   border="0"></a><br>';
			}
			else
			{
				t +='		<a href="javascript:window.opener.location=\''+infopub["bloc"][i]["lien"]+'\'; window.opener.focus(); window.close();"><img src="'+infopub["bloc"][i]["img"]+'"   border="0"></a><br>';
			}
		}
	}
	else
	{
		t +='	<img src="'+infopub["bloc"][i]["img"]+'" border="0"><br>';
	}
	document.getElementById("zone_blocpup").innerHTML = t;
}

// le bandeau de pub dans la page gallerie photo
function DrawBandeauPub(i)
{
	var t="";
	if(infopub["popup"][i]["lien"] != "")
	{
		if( infopub["popup"][i]["type"]  == "pub")
		{
			t +='		<a href="javascript:popup(\''+infopub["popup"][i]["lien"]+'\',1050,700,2, \'publicite\')"><img src="'+infopub["popup"][i]["img"]+'"   border="0"></a><br>';
		}
		else
		{
			if(!is_pop)
			{
				t +='		<a href="'+infopub["popup"][i]["lien"]+'"><img src="'+infopub["popup"][i]["img"]+'"   border="0"></a><br>';
			}
			else
			{
				t +='		<a href="javascript:window.opener.location=\''+infopub["popup"][i]["lien"]+'\'; window.opener.focus(); window.close();"><img src="'+infopub["popup"][i]["img"]+'"   border="0"></a><br>';
			}
		}
	}
	else
	{
		t +='		<img src="'+infopub["popup"][i]["img"]+'" border="0"><br>';
	}
	document.getElementById("zone_bandeaupub").innerHTML = t;
}


//le moteur des navigations
function DrawMoteurNav()
{
	var t="";
	
	t +='<table width="200" border="0" cellspacing="2" cellpadding="0">';
	t +='				<tr>';
	t +='					<td><div align="center"><font size="2"><a href="/index.html"><font color="Blue"><b>Accueil</b></font></a></div></td>';
	t +='				</tr>';
	t +='				<tr>';
	t +='					<td><br></td>';
	t +='				</tr>';
	t +='				<tr>';
	t +='					<td>';
	t +='						<div align="center">';
	t +='						<form name="form_moteur" method="GET" style="display:inline">';
	t +='							<table id="moteurNav" width="190" border="0" cellspacing="0" cellpadding="0" class="tabMoteur">';
	t +='		<tr>';
	t +='			<th height="25"><img src="/Images/Nav/Vcaraibes/moteur_up.png" border="0"></th>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td height="40" valign="bottom" style="padding-bottom:5px">Destination</td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td><select name="pays" onchange="createListeDeroulante(\'hebergement\')" style="width:170px" id="moteur_pays_option">';
	t +='											<option value = ""></option>';
	t +='										</select></td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td height="40" valign="bottom" style="padding-bottom:5px">Type d\'offre</td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td><select name="hebergement" onchange="createListeDeroulante(\'ville\')" style="width:170px">';
	t +='											<option value = ""></option>';
	t +='										</select></td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td height="40" valign="bottom" style="padding-bottom:5px">Localisation</td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td><select name="ville" style="width:170px">';
	t +='											<option value = "">Choisissez</option>';
	t +='										</select></td>';
	t +='		</tr>';
	t +='		<tr>';
	t +='			<td height="60"><input type="button" value="Rechercher" class="btnMoteur" onclick="validForm()"></td>';
	t +='		</tr>';
	t +='	</table>';
	t +='							</form>';
	t +='							</div>';
	t +='						</td>';	
	t +='					</tr>';
	t +='				<tr height="20">';
	t +='					<td height="20"><br></td>';
	t +='				</tr>';
	t +='				<tr>';
	t +='					<td>';
	t +='						<div align="center">';
	t +='							<br>'
	t +='							<a href="javascript:popup(\'/pop_up_newsletter.html\',675,575,1)"><img src="/Images/Nav/Vcaraibes/newsletter.jpg" border="0"></a></div>';
	t +='					</td>';
	t +='				</tr>';
	t +='			</table>';
	
	document.write(t);
}

function DrawNavHorizontale()
{
	var t = '';
	
	t += '<table border="0" cellspacing="0" cellpadding="0" class="tabNavHori" width="100%">';
	t += '		<tr height="22">';
	t += '			<td colspan="3" align="center" valign="middle" height="22">';
	t += '				<div align="center">';
	t += '					<table border="0" cellspacing="1" cellpadding="0" class="tabNavHori">';
	t += '						<tr align="center" valign="middle">';
	t += '							<td align="center" valign="middle"  width="212">';
	t += '								<div align="center">';
	t += '									<a href="/sejours.html"><img src="/Images/Nav/Vcaraibes/sejours.png" alt="Sejours en Guadeloupe, Martinique, Saint Martin, Sainte Lucie, Cuba, Republique Dominicaine, Bahamas" height="22" width="180" border="0"></a></div>';
	t += '							</td>';
	t += '							<td align="center" valign="middle"  width="170"><a href="/heberg.html"><img src="/Images/Nav/Vcaraibes/heberg.png" alt="location de vacances en Guadeloupe, Martinique et toutes les Caraïbes" height="22" width="216" border="0"></a></td>';
	t += '							<td align="center" valign="middle"  width="170"><a href="/croisieres.html"><img src="/Images/Nav/Vcaraibes/croisieres.png" alt="Croisières aux Antilles et dans les Caraïbes" height="22" width="105" border="0"></a></td>';
	t += '							<td align="center" valign="middle"  width="213"><a href="/Vol.php"><img src="/Images/Nav/Vcaraibes/Billetsavion.png" alt="Billets avion Guadeloupe, Martinique, Saint Martin, Antilles et Caraïbes" height="22" width="139" border="0"></a></td>';
	t += '							<td align="center" valign="middle"  width="165"><a href="/Voiture.html"><img src="/Images/Nav/Vcaraibes/locationvoitures.png" alt="Location voiture Guadeloupe Martinique Antilles" height="22" width="169" border="0"></a></td>';
	t += '							<td align="center" valign="middle" ><a href="/surplace.html"><img src="/Images/Nav/Vcaraibes/Surplace.png" alt="Excursions en Guadeloupe Martinique et toutes les Caraïbes" height="22" width="144" border="0"></a></td>';
	t += '						</tr>';
	t += '					</table>';
	t += '				</div>';
	t += '			</td>';
	t +='		</tr>';
	t += '	</table>';
	
	document.write(t);
}

function DrawFooter()
{
	var t = '';
	t += '	<div align="center">';
	t += '	<br>';
	t += '	<br>';
	t += '	<br>';
	t += '		<br>';
	t += '		<b><a href="/nous.html">Qui sommes-nous ?</a> - <a href="/contact.html">Contacts</a> - <a href="/annonceurs.html"> Propriétaires</a> - <a href="/activites.html"> Gérants activités sur place </a> - <a href="/garanties.html">Nos agr&eacute;ments</a> - <a href="/conditions.html">Conditions de vente</a> - <a href="/Assurances.html">Assurances</a> - <a href="/partenaires.html">Nos partenaires</a><br>';
	t += '		</b><br>';
	t += '		<table width="275" border="0" cellspacing="5" cellpadding="0">';
	t += '			<tr>';
	t += '				<td align="center" valign="middle">';
	t += '					<div align="center">';
	t += '						<img src="/Images/garanties/footer/tsecurisee.gif" alt="" height="35" width="48" border="0"></div>';
	t += '				</td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/cic.gif" alt="" height="25" width="56" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/cartebleue.gif" alt="" height="25" width="39" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/VISA.gif" alt="" height="25" width="39" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/euromastercard.gif" alt="" height="25" width="39" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/chequevacances.gif" alt="Chèques vacances" height="35" width="60" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/gan.gif" alt="" height="35" width="38" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/tms.gif" alt="" height="35" width="38" border="0"></td>';
	t += '				<td align="center" valign="middle"><img src="/Images/garanties/footer/aps.gif" alt="" height="35" width="35" border="0"></td>';
	t += '			</tr>';
	t += '		</table>';
	t += '						&copy; Souslestropiques.com - Toute reproduction textuelle ou graphique interdite<br>';
	t += '		<br>';
	t += '		<br>';
	t += '		<br>';
	t += '		</div>';
	
	document.write(t);
}
