
function flash(t)
{
	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="419" height="150" id="coup_de_projecteur" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="/projecteur/flash.swf?dir=' + t + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="/projecteur/flash.swf?dir=' + t + '" quality="high" bgcolor="#ffffff" width="419" height="150" name="coup_de_projecteur" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function _js_lnk()
{
	for (var a in _JS_LNK_)
		document.getElementById('jslnk' + a).innerHTML = '<a href="http://' + _JS_LNK_[a][1] + '" target="_blank">' + _JS_LNK_[a][0] + '</a>';
}


var _js_photo_var = Array();
function _js_photo(p, d)
{
	for (var a in _js_photo_var)
	{
		if (_js_photo_var[a] !== false)
			document.getElementById(a).innerHTML = _js_photo_var[a];
		_js_photo_var[a] = false;
	}
	div = document.getElementById(d);
	_js_photo_var[d] = div.innerHTML;
	
	// Code html à ajouter
	html = '<div style="position: absolute; border: 1px solid gray; margin-top: 0px;">';
	//html += '<div style="position: absolute;">';
	//html += '<img src="/pics/fleche_photo.gif" border="0" />';
	//html += '</div">';
	html += '<img src="' + p + '" />';
	html += '</div">';
	div.innerHTML = html;
	//alert(d);
}


function _js_photo_out(d)
{
	for (var a in _js_photo_var)
	{
		if (_js_photo_var[a] !== false)
			document.getElementById(a).innerHTML = _js_photo_var[a];
		_js_photo_var[a] = false;
	}
}


function footer()
{
	document.write("<img src='/pics/isa.gif' align='left'>Le réseau Kalifage est édité par la société ISA Network.com.<br>Toute reproduction est strictement interdite sans l'accord écrit d'ISA Network.com<br>Les prix sont donnés à titre indicatif. Seul le prix indiqué chez le prestataire du séjour, hotel, ... est à prendre en compte.");
}



function buildPages(debut, fin, actuelle, nbp)
{
	var pages = '';

	// précédente
	if (actuelle > 0)
		pages += '<a href="' + debut + (actuelle-1) + fin + '">« Moins cher</a> - ';
		
	for (var a = 0; a != nbp; a++)
	{
		url = debut + a + fin;
		if (actuelle != a)
			pages += '<a href="' + url + '">' + (a+1) + '</a>, ';
		else
			pages += '<b>' + (a+1) + '</b>, ';
	}
	if (pages)
		pages = pages.substr(0, pages.length-2);

	// suivante
	if (actuelle < nbp - 1)
		pages += ' - <a href="' + debut + (actuelle+1) + fin + '">Plus cher »</a>';

	if (pages)
		pages = '<center>' + pages + '</center>';
	document.write(pages);
}



function buildPagesVacanceo(debut, fin, actuelle, nbp, cb)
{
	var pages = '';

	// précédente
	if (actuelle > 0)
	{
		tmp = ((actuelle-2)*cb);
		if (tmp == 0)
			tmp = '';
		pages += '<a href="' + debut + tmp + fin + '">« Précédent</a> - ';
	}
		
	for (var a = 0; a != nbp; a++)
	{
		tmp = (a*cb);
		if (tmp == 0)
			tmp = '';
		if (actuelle != (a+1))
			pages += '<a href="' + debut + tmp + fin + '">' + (a+1) + '</a>, ';
		else
			pages += '<b>' + (a+1) + '</b>, ';
	}
	if (pages)
		pages = pages.substr(0, pages.length-2);

	// suivante
	if (actuelle < nbp - 1)
		pages += ' - <a href="' + debut + ((actuelle+1)*cb) + fin + '">Suivant »</a>';

	if (pages)
		pages = '<center>' + pages + '</center><br><br>';
	document.write(pages);
}



function eR()
{
	document.write('<br><center>[ <a href="#recherche">Modifier votre recherche</a> ]</center><br>');
}



function WE(txt)
{
	url = '/weekend/';
	if (document.getElementById('WEi').value)
		url += document.getElementById('WEi').value + '/';

	url += txt + '.html';
	document.location.href = url;
	return false;
}


function infoVacanceoSimple()
{
	document.write("<div class='infoRed'><b>Info :</b> Pour affiner votre recherche, utilisez le <a href=\"#recherche\">formulaire en bas de cette page</a>.</div>");
}
