//pa saber el navegador
var obj_ca
var ns = navigator.appName == "Netscape";
var ns4 = (ns && parseInt(navigator.appVersion) == 4);
var ns5 = (ns && parseInt(navigator.appVersion) > 4);
//alert (navigator.appName+' / '+navigator.appVersion)
var amin_menu=-1
N = (document.all) ? 0 : 1;
var ob;

function escri_info(layerID,txt){
if(document.getElementById){
	document.getElementById(layerID).innerHTML=txt;
 }else if(document.all){
	document.all[layerID].innerHTML=txt;
 }else if(document.layers){
	with(document.layers[layerID].document){
		open();
		write(txt);
		close();
	}
 }
}

function mueve_ca(capa,c_x,c_y){
	alert('tt')
if (ns4){
		obj_ca=document[capa];
}else if (ns5){
		obj_ca=document.getElementById(capa);
		obj_ca=obj_ca.style
}else{
		obj_ca=document.all ? document.all[capa] : null;
		obj_ca=obj_ca.style
	}
obj_ca.left=c_x
obj_ca.top=c_y

}

function abanyo(menu){
	if (menu==0){
	//foto
	escri_info('foto','<img src="../images/foto25.jpg" width="367" height="367">')
	//escri_info('ti','// Modelo 005 // Madera Lacada')
	escri_info('tu1','<img src="../images/foto18.gif" width="84" height="84" border="0"></a>')
	escri_info('tu2','<a href="javascript:abanyo(1)"><img src="../images/foto19.gif" width="84" height="84" border="0"></a>')
	escri_info('tu3','<a href="javascript:abanyo(2)"><img src="../images/foto34_gris.gif" width="84" height="84" border="0"></a>')
	escri_info('tu4','<a href="javascript:abanyo(3)"><img src="../images/foto35_gris.gif" width="84" height="84" border="0"></a>')	
	
	}

	if (menu==1){
	//foto
	escri_info('foto','<img src="../images/foto23.jpg" width="367" height="367">')
	//escri_info('ti','// Modelo 005 // Caceroleros')
	escri_info('tu1','<a href="javascript:abanyo(0)"><img src="../images/foto22.gif" width="84" height="84" border="0"></a>')
	escri_info('tu2','<img src="../images/foto24.gif" width="84" height="84" border="0">')
	escri_info('tu3','<a href="javascript:abanyo(2)"><img src="../images/foto34_gris.gif" width="84" height="84" border="0"></a>')
	escri_info('tu4','<a href="javascript:abanyo(3)"><img src="../images/foto35_gris.gif" width="84" height="84" border="0"></a>')
	
	}
	if (menu==2){
	//foto
	escri_info('foto','<img src="../images/banyo3.jpg" width="367" height="367">')
	//escri_info('ti','// Modelo 005 // Caceroleros')
	escri_info('tu1','<a href="javascript:abanyo(0)"><img src="../images/foto22.gif" width="84" height="84" border="0"></a>')
	escri_info('tu2','<a href="javascript:abanyo(1)"><img src="../images/foto19.gif" width="84" height="84" border="0"></a>')
	escri_info('tu3','<img src="../images/foto34.gif" width="84" height="84" border="0">')
	escri_info('tu4','<a href="javascript:abanyo(3)"><img src="../images/foto35_gris.gif" width="84" height="84" border="0"></a>')	
	
	}
	if (menu==3){
	//foto
	escri_info('foto','<img src="../images/banyo4.jpg" width="367" height="367">')
	//escri_info('ti','// Modelo 005 // Caceroleros')
	escri_info('tu1','<a href="javascript:abanyo(0)"><img src="../images/foto22.gif" width="84" height="84" border="0"></a>')
	escri_info('tu2','<a href="javascript:abanyo(1)"><img src="../images/foto19.gif" width="84" height="84" border="0"></a>')
	escri_info('tu3','<a href="javascript:abanyo(2)"><img src="../images/foto34_gris.gif" width="84" height="84" border="0"></a>')
	escri_info('tu4','<img src="../images/foto35.gif" width="84" height="84" border="0">')	
	
	}

}

function get_cocina(){
coco='<table width="500" border="0" cellspacing="0" cellpadding="0" height="465" background="../images/fondxx.jpg" bgcolor="#EDEDED">'
coco+='    <tr>'
coco+='      <td width="260"><img src="../images/trans.gif" width="260" height="1"></td>'
coco+='      <td class="texto" valign="top"><br>'
coco+='        <br>'
coco+='        <br>'
coco+='        <br>'
coco+='        We have more than 100 models exposed in our points of sale, '
coco+='        where in addition they will be able to advise him in the matter '
coco+='        of design and to adapt the project to its taste and necessities. '
coco+='        <p>We have the last new features in finished ironworks and, as '
coco+='          supplies of household-electric furniture of kitchen and '
coco+='          of exhibition by renovation.</p>'
coco+='      </td>'
coco+='	  <td width="34"><img src="../images/trans.gif" width="34" height="465"></td>'
coco+='    </tr>'
coco+='  </table>'
return coco
}

function get_tienda(){
coco='<table width="500" border="0" cellspacing="0" cellpadding="0" height="465" bgcolor="#EDEDED" background="../images/fondkk.jpg">'
coco+='    <tr>'
coco+='      <td width="205"><img src="../images/trans.gif" width="205" height="1"></td>'
coco+='      <td class="texto" valign="top"><br>'
coco+='        <br>'
coco+='        <br>'
coco+='        <br>'
coco+='        &gt; <a href="murcia.html" target="_self" class="menu"><font size="2">Murcia</font></a><br>'    
coco+='        &gt; <a href="alhama.html" target="_self" class="menu"><font size="2">Alhama de Murcia</font></a><br>'
coco+='            &gt; <a href="alicante.html" target="_self" class="menu"><font size="2">Alicante</font></a><br>'          
coco+='            &gt; <a href="cartagena.html" target="_self" class="menu"><font size="2">Cartagena</font></a><br>'
coco+='            &gt; <a href="san.html" target="_self" class="menu"><font size="2">San'
coco+='           Pedro del Pinatar</font></a><br>'
coco+='           &gt; <a href="torre.html" target="_self" class="menu"><font size="2">Torre'
coco+='          Pacheco</font></a>'
coco+='      </td>'
coco+='	  <td width="134"><img src="../images/trans.gif" width="134" height="465"></td>'
coco+='    </tr>'
coco+='  </table>'
return coco
}

function get_banyo(){
coco='<table width="500" border="0" cellspacing="0" cellpadding="0" height="465" bgcolor="#EDEDED">'
coco+='    <tr>'
coco+='      <td class="texto" valign="top">'
coco+='      <table width="100%" border="0" cellspacing="0" cellpadding="0">'
coco+='        <tr> '
coco+='          <td colspan="3" height="9"><img src="../images/foto02.gif" width="471" height="9"></td>'
coco+='        </tr>'
coco+='        <tr> '
coco+='          <td width="9"><img src="../images/foto03.gif" width="9" height="367"></td>'
coco+='          <td class="texto" valign="top" width="95">'
coco+='            <table width="95" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="367">'
coco+='              <tr>'
coco+='                <td align="center" valign="middle">'
coco+='                  <div id="tu1"><a href="javascript:abanyo(0)"><img src="../images/foto22.gif" width="84" height="84" border="0"></a></div>'
coco+='                </td>'
coco+='              </tr>'
coco+='              <tr>'
coco+='                <td align="center" valign="middle">'
coco+='                  <div id="tu2"><a href="javascript:abanyo(1)"><img src="../images/foto19.gif" width="84" height="84" border="0"></a></div>'
coco+='                </td>'
coco+='              </tr>'
coco+='              <tr>'
coco+='                <td align="center" valign="middle">'
coco+='                  <div id="tu3"><a href="javascript:abanyo(2)"><img src="../images/foto34_gris.gif" width="84" height="84" border="0"></a></div>'
coco+='                </td>'
coco+='              </tr>'
coco+='              <tr>'
coco+='                <td align="center" valign="bottom">'
coco+='                  <div id="tu4"><a href="javascript:abanyo(3)"><img src="../images/foto35_gris.gif" width="84" height="84" border="0"></a></div>'
coco+='                </td>'
coco+='              </tr>'
coco+='            </table>'
coco+='            </td>'
coco+='          <td class="texto" valign="top">'
coco+='            <div id="foto"><img src="../images/foto17_2.jpg" width="367" height="367"></div>'
coco+='          </td>'
coco+='        </tr>'
coco+='      </table>'
coco+='      </td>'
coco+='	  <td width="134"><img src="../images/trans.gif" width="134" height="465"></td>'
coco+='    </tr>'
coco+='  </table>'
return coco
}

var pp1=men1
var pp2=men2
var pp3=men3
var pp4=men4

function menud_c(jijo){
	if((pp1==3)&&(jijo=='c')){
		var xx=pp2
	}else{
		var xx=0
	}
	if((pp1!=3)&&(pp1!=7)&&(pp1!=4)){
		change_men()
	}
	menu_cocina=get_men_c(xx)
	if (men_t==1){
		escri_info('c_tiendas','<img src="../images/trans.gif" width="1" height="1">')
		men_t=0
	}
	
	if (men_b==1){
		escri_info('c_banyo','<img src="../images/trans.gif" width="1" height="1">')
		men_b=0
	}

	if (men_c==0){
		escri_info('c_cocina',menu_cocina)
		men_c=1
	}else{
		escri_info('c_cocina','<img src="../images/trans.gif" width="1" height="1">')
		men_c=0
	}
	escri_info('c3','<a href="javascript:menud_c('+pp2+')" class="menu1">Kitchen <b>03</b></a>')
	escri_info('c4','<a href="javascript:menud_b('+pp4+')" class="menu">Bath <b>04</b></a>')
	escri_info('c7','<a href="javascript:menud_t('+pp3+')" class="menu">Where to buy <b>07</b></a>')
	if(jijo!='c'){
	texto_c=get_cocina()
	escri_info('c_xx',texto_c)
	}
}

function menud_t(jijo){
	if((pp1==7)&&(jijo=='t')){
		var xx=pp3
	}else{
		var xx=0
	}
	if((pp1!=3)&&(pp1!=7)&&(pp1!=4)){
	change_men()
	}
	menu_tiendas=get_men_t(xx)
	if (men_c==1){
		escri_info('c_cocina','<img src="../images/trans.gif" width="1" height="1">')
		men_c=0
	}
	
	if (men_b==1){
		escri_info('c_banyo','<img src="../images/trans.gif" width="1" height="1">')
		men_b=0
	}

	if (men_t==0){
		escri_info('c_tiendas',menu_tiendas)
		men_t=1
	}else{
		escri_info('c_tiendas','<img src="../images/trans.gif" width="1" height="1">')
		men_t=0
	}
	escri_info('c3','<a href="javascript:menud_c('+pp2+')" class="menu">Kitchen <b>03</b></a>')
	escri_info('c4','<a href="javascript:menud_b('+pp4+')" class="menu">Bath <b>04</b></a>')
	escri_info('c7','<a href="javascript:menud_t('+pp3+')" class="menu1">Where to buy <b>07</b></a>')
	if(jijo!='t'){
	texto_c=get_tienda()
	escri_info('c_xx',texto_c)
	}
}

function menud_b(jijo){
	if((pp1==4)&&(jijo=='b')){
		var xx=pp4
	}else{
		var xx=0
	}
	if((pp1!=3)&&(pp1!=7)&&(pp1!=4)){
	change_men()
	}
	menu_tiendas=get_men_b(xx)
	if (men_c==1){
		escri_info('c_cocina','<img src="../images/trans.gif" width="1" height="1">')
		men_c=0
	}
	
	if (men_t==1){
		escri_info('c_tiendas','<img src="../images/trans.gif" width="1" height="1">')
		men_t=0
	}

	if (men_b==0){
		escri_info('c_banyo',menu_tiendas)
		men_b=1
	}else{
		escri_info('c_banyo','<img src="../images/trans.gif" width="1" height="1">')
		men_b=0
	}
	escri_info('c3','<a href="javascript:menud_c('+pp2+')" class="menu">Kitchen <b>03</b></a>')
	escri_info('c4','<a href="javascript:menud_b('+pp4+')" class="menu1">Bath <b>04</b></a>')
	escri_info('c7','<a href="javascript:menud_t('+pp3+')" class="menu">Where to buy <b>07</b></a>')
	if(jijo!='b'){
	texto_c=get_banyo()
	escri_info('c_xx',texto_c)
	}
}

function change_men(){
	if(pp1>0){
	var sas='<a href="'+lmen+'" class="menu">'+tmen+'</a>';
	escri_info('smenu',sas)
	}
}

function get_men_c(menu){
	var Link = new Array();
	Link[0] = "Kitchen 03|cocinas.html";
	Link[2] = "Laminates|laminados.html";
	Link[3] = "Lacquers|lacados.html";
	Link[4] = "Marine Board|marino.html";
	Link[5] = "Hardwood|nobles.html";
	Link[6] = "Kitchen Complements|complementos.htm";
	Link[1] = "Materials|materiales.html";
	//
	var afk='<table border="0" cellspacing="0" cellpadding="0">\n';
	var espa='		  <tr>';
	espa+='			<td class="menu" align="right"><img src="../images/trans.gif" width="150" height="5"></td>';
	espa+='		  </tr>';
	for(i=1;i<Link.length;i++){
		la = Link[i].split("|");
		afk+=espa;
		afk+='        <tr>\n';
		//afk+='texto: '+la[0]+' / link:'+la[0]+'\n';
		if(i!=menu){
			afk+='          <td class="menu" align="right">';
			afk+='<a href="'+la[1]+'" class="menu">'+la[0]+'</a>\n';
		}else{
			afk+='          <td class="menu1" align="right">';
			afk+=la[0]+'\n';
		}
		afk+='            &lt;&nbsp;&nbsp;&nbsp;</td>\n';
		afk+='        </tr>\n';
	}
	afk+='        </table>\n';
	return afk;
}

function get_men_t(menu){
	var Link = new Array();
	Link[0] = "Where to buy 07|tiendas.html";
	Link[1] = "Murcia|murcia.html";
	Link[2] = "Alhama de Murcia|alhama.html";
	Link[3] = "Alicante|alicante.html";
	Link[4] = "Cartagena|cartagena.html";
	Link[5] = "San Pedro del Pinatar|san.html";
	Link[6] = "Torre Pacheco|torre.html";
	//
	var afk='<table border="0" cellspacing="0" cellpadding="0">\n';
	var espa='		  <tr>';
	espa+='			<td class="menu" align="right"><img src="../images/trans.gif" width="150" height="5"></td>';
	espa+='		  </tr>';
	for(i=1;i<Link.length;i++){
		la = Link[i].split("|");
		afk+=espa;
		afk+='        <tr>\n';
		//afk+='texto: '+la[0]+' / link:'+la[0]+'\n';
		if(i!=menu){
			afk+='          <td class="menu" align="right">';
			afk+='<a href="'+la[1]+'" class="menu">'+la[0]+'</a>\n';
		}else{
			afk+='          <td class="menu1" align="right">';
			afk+=la[0]+'\n';
		}
		afk+='            &lt;&nbsp;&nbsp;&nbsp;</td>\n';
		afk+='        </tr>\n';
	}
	afk+='        </table>\n';
	return afk;
}

function get_men_b(menu){
	var Link = new Array();
	Link[0] = "Bath 04|banyo.html";
	Link[1] = "Bathroom Fittings|acbanyo.html";
	Link[2] = "Screens|mamparas.html";
	//
	var afk='<table border="0" cellspacing="0" cellpadding="0">\n';
	var espa='		  <tr>';
	espa+='			<td class="menu" align="right"><img src="../images/trans.gif" width="150" height="5"></td>';
	espa+='		  </tr>';
	for(i=1;i<Link.length;i++){
		la = Link[i].split("|");
		afk+=espa;
		afk+='        <tr>\n';
		//afk+='texto: '+la[0]+' / link:'+la[0]+'\n';
		if(i!=menu){
			afk+='          <td class="menu" align="right">';
			afk+='<a href="'+la[1]+'" class="menu">'+la[0]+'</a>\n';
		}else{
			afk+='          <td class="menu1" align="right">';
			afk+=la[0]+'\n';
		}
		afk+='            &lt;&nbsp;&nbsp;&nbsp;</td>\n';
		afk+='        </tr>\n';
	}
	afk+='        </table>\n';
	return afk;
}

function menu_pri(menu,sumenu,sumenu1,sumenu2){
var Link1 = new Array();
	Link1[0] = "Grupo emilio <b>00</b>|grupo.html";
	Link1[1] = "Company <b>01</b>|grupo.html";
	Link1[2] = "Services <b>02</b>|servicios.html";
	Link1[3] = "Kitchen <b>03</b>|javascript:menud_c("+sumenu+")|c_cocina";
	Link1[4] = "Bath <b>04</b>|javascript:menud_b("+sumenu2+")|c_banyo";
	Link1[5] = "Built-In Wardrobe <b>05</b>|otras.html";
	Link1[6] = "Brands <b>06</b>|marcas.html";
	Link1[7] = "Where to buy <b>07</b>|javascript:menud_t("+sumenu1+")|c_tiendas";
	Link1[8] = "<img src=\"../images/novedades2.gif\" width=\"154\" height=\"17\" border=\"0\">|novedades.html";	
	Link1[9] = "Contact <b>09</b>|contacto.html";	
	//
	var afk='<table border="0" cellspacing="0" cellpadding="0" align="center">\n';
    afk+='    <tr>\n';
    afk+='      <td class="menu" align="right"><img src="../images/trans.gif" width="150" height="20"></td>\n';
    afk+='    </tr>\n';
	for(i=1;i<Link1.length;i++){
		la = Link1[i].split("|");
		afk+='        <tr>\n';
		if(i!=menu){
			afk+='          <td class="menu" align="right" bgcolor="#EEEEEE">';
			afk+='<div id="c'+i+'"><a href="'+la[1]+'" class="menu">'+la[0]+'</a></div>';
		}else{
			if(la[2]){
				afk+='          <td class="menu" align="right" bgcolor="#EEEEEE">';
				afk+='<div id="c'+i+'"><a href="'+la[1]+'" class="menu1">'+la[0]+'</a></div>';
			}else{
				afk+='          <td class="menu1" align="right" bgcolor="#EEEEEE">';
				afk+='<div id="smenu">'+la[0]+'</div>\n';
			}
		}
		afk+='            </td>\n';
		afk+='        </tr>\n';
		afk+='        <tr>\n';
		afk+='          <td class="menu" align="right">';
		if(la[2]){
			afk+='<div id="'+la[2]+'"></div>';
		}
		afk+='<img src="../images/trans.gif" width="150" height="8"></td>';
		afk+='        </tr>\n';
	}
	afk+='        </table>\n';
	escri_info('menu',afk)
	
}