

//Función MouseOver
function imgover(imgname, img){
imgname.src = img
}
//Función MouseOut
function imgout(imgname, img){
imgname.src = img
}

function MM_openBrWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}

function CrearMenuIdioma (idioma,path_1,path_2,path_3,path_4,path_5)
{
var strC='';

strC+='<table cellpadding="0" cellspacing="0" border="0">';

strC+='<tr>';

strC+= '<td width="67%"></td>';

if (idioma == 'cat') 	strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><span class="idiomes_on">català</span></td><td><img src="../imatges/fons_idioma_fi.gif"></td></td>';
else			strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><a class="idiomes_off" href=" ' + path_1 + ' ">català</a></td><td><img src="../imatges/fons_idioma_fi.gif"></td>';	

if (idioma == 'esp') 	strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><span class="idiomes_on">castellano</span></td><td><img src="../imatges/fons_idioma_fi.gif"></td></td>';
else			strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><a class="idiomes_off" href=" ' + path_2 + ' ">castellano</a></td><td><img src="../imatges/fons_idioma_fi.gif"></td>';	

if (idioma == 'ang') 	strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><span class="idiomes_on">english</span></td><td><img src="../imatges/fons_idioma_fi.gif"></td></td>';
else			strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><a class="idiomes_off" href=" ' + path_3 + ' ">english</a></td><td><img src="../imatges/fons_idioma_fi.gif"></td>';	

if (idioma == 'fra') 	strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><span class="idiomes_on">française</span></td><td><img src="../imatges/fons_idioma_fi.gif"></td></td>';
else			strC+='		<td><img src="../imatges/fons_idioma_ini.gif"></td><td background="../imatges/fons_idioma_cos.gif"><a class="idiomes_off" href=" ' + path_4 + ' ">française</a></td><td><img src="../imatges/fons_idioma_fi.gif"></td>';	

strC+='</tr>';

strC+= '</table>';

document.write(strC);

}


function CrearMenuLateral (idioma,seleccio,path_1,path_2,path_3,path_4,path_5)
{

var path_img='';

path_img='../imatges_ang';
switch(idioma)
{	
	case 'cat':
		path_img='../imatges_cat';	
		break;
	case 'ang':
		path_img='../imatges_ang';	
		break;
	case 'esp':
		path_img='../imatges_esp';	
		break;
	case 'fra':
		path_img='../imatges_fra';	
		break;		
}

var strC='';

strC+='<table cellpadding="0" cellspacing="0" border="0" align="center">';

strC+='<tr>';

strC+= '<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

if (seleccio == 'presentacio')	strC+='<td align="center"><img src="' + path_img + '/presentacio_on.gif" border="0"></td>';
else				strC+='<td align="center"><a href="'+ path_1 +'"><img src="' + path_img + '/presentacio_off.gif" border="0"></a></td>';	

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

if (seleccio == 'instalacio')	strC+='<td align="center"><img src="' + path_img + '/instalacions_on.gif" border="0"></td>';
else				strC+='<td align="center"><a href="' + path_2 + '"><img src="' + path_img + '/instalacions_off.gif" border="0"></a></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

if (seleccio == 'serveis')	strC+='<td align="center"><img src="' + path_img + '/serveis_on.gif" border="0"></td>';
else				strC+='<td align="center"><a href="'+ path_3 +'"><img src="' + path_img + '/serveis_off.gif" border="0"></a></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

if (seleccio == 'contacti')	strC+='<td align="center"><img src="' + path_img + '/contacti_on.gif" border="0"></td>';
else				strC+='<td align="center"><a href="'+ path_4 +'"><img src="' + path_img + '/contacti_off.gif" border="0"></a></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height"4"></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+='<tr>';

if (seleccio == 'preus')	strC+='<td align="center"><img src="' + path_img + '/preus_on.gif" border="0"></td>';
else				strC+='<td align="center"><a href="'+ path_5 +'"><img src="' + path_img + '/preus_off.gif" border="0"></a></td>';

strC+='</tr>';

strC+='<tr>';

strC+='<td height="4"></td>';

strC+='</tr>';

strC+= '</table>';

document.write(strC);

}

function CrearMenuSuperiorServeis (idioma,lloc)
{
	
var strC='';
var nom_opcio1, nom_opcio2, nom_opcio3, nom_opcio4
var path_opcio1, path_opcio2, path_opcio3, path_opcio4

switch(idioma)
{	
	case 'cat':
		nom_opcio1 = 'RECEPCIÓ';
		path_opcio1 = 'frm_recepcio.htm';
		nom_opcio2 = 'HABITACIONS';
		path_opcio2 = 'frm_habitacio.htm';		
		nom_opcio3 = 'SALONS';
		path_opcio3 = 'frm_salo.htm';	
		nom_opcio4 = 'BAR-TERRASSA';
		path_opcio4 = 'frm_bar.htm';
		break;	
	case 'ang':
		nom_opcio1 = 'RECEPTION AREA';
		path_opcio1 = 'frm_recepcio.htm';
		nom_opcio2 = 'ROOMS';
		path_opcio2 = 'frm_habitacio.htm';		
		nom_opcio3 = 'LOUNGE';
		path_opcio3 = 'frm_salo.htm';	
		nom_opcio4 = 'BAR-TERRACE';
		path_opcio4 = 'frm_bar.htm';		
		break;		
	case 'esp':
		nom_opcio1 = 'RECEPCIÓN';
		path_opcio1 = 'frm_recepcio.htm';
		nom_opcio2 = 'HABITACIONES';
		path_opcio2 = 'frm_habitacio.htm';		
		nom_opcio3 = 'SALONS';
		path_opcio3 = 'frm_salo.htm';	
		nom_opcio4 = 'BAR-TERRAZA';
		path_opcio4 = 'frm_bar.htm';
		break;	
	case 'fra':
		nom_opcio1 = 'RÉCEPTION';
		path_opcio1 = 'frm_recepcio.htm';
		nom_opcio2 = 'CHAMBRES';
		path_opcio2 = 'frm_habitacio.htm';		
		nom_opcio3 = 'SALON';
		path_opcio3 = 'frm_salo.htm';	
		nom_opcio4 = 'BAR TERRASSE';
		path_opcio4 = 'frm_bar.htm';
		break;					
}


strC+='		<table cellpadding="0" cellspacing="0" border="0">';
strC+='		<tr>';

if (lloc=='recepcio') 	strC+='<td><span class="titol_on">&nbsp;' + nom_opcio1 + '&nbsp;</span></td>';
else 			strC+='<td><a href="' + path_opcio1 + '" class="titol_off">&nbsp;' + nom_opcio1 + '&nbsp;</a></td>';

if (lloc=='habitacio') 	strC+='<td><span class="titol_on">&nbsp;' + nom_opcio2 + '&nbsp;</span></td>';
else 			strC+='<td><a href="' + path_opcio2 + '" class="titol_off">&nbsp;' + nom_opcio2 + '&nbsp;</a></td>';

if (lloc=='salo') 	strC+='<td><span class="titol_on">&nbsp;' + nom_opcio3 + '&nbsp;</span></td>';
else 			strC+='<td><a href="' + path_opcio3 + '" class="titol_off">&nbsp;' + nom_opcio3 + '&nbsp;</a></td>';

if (lloc=='bar') 	strC+='<td><span class="titol_on">&nbsp;' + nom_opcio4 + '&nbsp;</span></td>';
else 			strC+='<td><a href="' + path_opcio4 + '" class="titol_off">&nbsp;' + nom_opcio4 + '&nbsp;</a></td>';

strC+='</tr>';
strC+='</table>';

document.write(strC);

}		


function CrearFrm (idioma,lloc)
{
	
var strC='';
var path='';

switch(lloc)
{	
	case 'presentacio': path = 'frm_presentacio.htm'; break;
	case 'recepcio': path = 'frm_recepcio.htm'; break;
	case 'habitacio': path = 'frm_habitacio.htm'; break;			
	case 'salo': path = 'frm_salo.htm'; break;		
	case 'bar': path = 'frm_bar.htm'; break;			
}

strC+='		<table height="100%" cellpadding="0" cellspacing="0" border="0">';
strC+='		<tr><td width="100%" height="238"><iframe name="texte" frameborder="0" src="' + path + '" scrolling="no" marginheight="0" marginwidth="0" width="612" height="258"></iframe></td></tr>';
strC+='		<tr><td width="100%" height="20" background="../imatges/fons_peu.jpg"></td></tr>';
strC+='		</table>';

document.write(strC);

}		
