//____________________________________________________________________________________________
//___________________________________________cilindros e fechaduras mecânicas____________________________________________
//____________________________________________________________________________________________
function content_produtos_cefechmecanicas(){
	//define qual o item de menu que esta activo
	document.getElementById('puxadores').className='';
	document.getElementById('complementos').className='';
	document.getElementById('cefechmecanicas').className='activo';
	document.getElementById('cacessos').className='';
	document.getElementById('equipamentos').className='';
	
	//retira banner e coloca conteudos 3 partes
	document.getElementById('p3_c').style.visibility='visible';
	
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_cileames();'>cilindros e amestramentos</a><a href='#' class='itens' onclick='cf_fmecanicas();'>fechaduras mecânicas</a>";
		document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById("Scrollerla"), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className="class1";
	document.getElementById('detalhes').innerHTML="";
	document.getElementById('inlinktit').innerHTML="";
	document.getElementById('inlinktxt').innerHTML="";
	document.getElementById('scrolls_inlink').style.visibility ='hidden';

	scroller  = new jsScroller(document.getElementById("Scroller-1"), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:500px; height:355px; display:block; position:relative; top:1px; left:-168px;'><div class='imageElement'><h3></h3><p></p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/img1.jpg' class='full' /> <img src='img/cefechmecanicas/img1.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p></p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/img2.jpg' class='full' /> <img src='img/cefechmecanicas/img2.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p></p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/img3.jpg' class='full' /> <img src='img/cefechmecanicas/img3.jpg' class='thumbnail' /> </div></div>";
	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: false,
	showInfopane:false,
	showCarousel: false,
	embedLinks: false
	});
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";
}

//cilindros e amestramentos
function cf_cileames() {
	//define qual o item de menu que esta activo
	document.getElementById('puxadores').className='';
	document.getElementById('complementos').className='';
	document.getElementById('cefechmecanicas').className='activo';
	document.getElementById('cacessos').className='';
	document.getElementById('equipamentos').className='';
	
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_cileames();'>cilindros e amestramentos</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_ca_cilindros();'>cilindros</a><a href='#' class='itens' onclick='cf_ca_amestramentos();'>amestramentos</a><a href='#' class='itens' onclick='cf_ca_efer();'>efer</a>";
		document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById("Scrollerla"), 270, 320);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className="class1";
	document.getElementById('detalhes').innerHTML="";
	document.getElementById('inlinktit').innerHTML="";
	document.getElementById('inlinktxt').innerHTML="";
	document.getElementById('scrolls_inlink').style.visibility ='hidden';

	scroller  = new jsScroller(document.getElementById("Scroller-1"), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<ul class='minis' id='thumbs' ><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/ca_cilindros.jpg);' id='ca_cilindros' onmouseover='ca_cilindros_over();' onmouseout='ca_cilindros_out();' title='imagens de ambiente não disponíveis' /></li><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/ca_amestramentos.jpg);' id='ca_amestramentos' onmouseover='ca_amestramentos_over();' onmouseout='ca_amestramentos_out();' title='imagens de ambiente não disponíveis' /></li><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/ca_efer.jpg);' id='ca_efer' onmouseover='ca_efer_over();' onmouseout='ca_efer_out();' title='imagens de ambiente não disponíveis' /></li></ul> <div class='labels'><span class='left' id='label'></span><span class='right' id='pags'></span> </div>";
	
	Shadowbox.init();
	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: false,
	showInfopane:false,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";
}


//____________________________________________________________________________________________
//___________________________________________cilindros________________________________________
//____________________________________________________________________________________________
//ca_cilindros over____________________________________________________________________________________________________________________________________
function ca_cilindros_over() {
	document.getElementById('ca_cilindros').style.background = "url('img/cefechmecanicas/thumbs/ca_cilindros_h.jpg')";
	document.getElementById('label').innerHTML = 'cilindros';
}


//ca_cilindros out____________________________________________________________________________________________________________________________________
function ca_cilindros_out() {
	document.getElementById('ca_cilindros').style.background = "url('img/cefechmecanicas/thumbs/ca_cilindros.jpg')";
	document.getElementById('label').innerHTML = '';
}

//ca_cilindros____________________________________________________________________________________________________________________________________
function cf_ca_cilindros() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_cileames();'>cilindros e amestramentos</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_ca_cilindros();'>cilindros</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_ca_cilindros();' id='bold_act'>cilindros</a><a href='#' class='itens' onclick='cf_ca_amestramentos();'>amestramentos</a><a href='#' class='itens' onclick='cf_ca_efer();'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='63px'/><img src='img/acabamentos/031.jpg' title='latão' /><img src='img/acabamentos/720.jpg' title='niquelado' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='ca_cilindros1()'>> meio cilindro de 1 entrada (1 fila de pinos) 10x30 mm</a><a href='#' onclick='ca_cilindros2()'>> meio cilindro de 1 entrada (1 fila de pinos) 10x40 mm</a><a href='#' onclick='ca_cilindros3()'>> meio cilindro de 1 entrada (1 fila de pinos) 10x50 mm</a><a href='#' onclick='ca_cilindros4()'>> meio cilindro de 1 entrada (1 fila de pinos) 10x60 mm</a><a href='#' onclick='ca_cilindros5()'>> meio cilindro de 2 entradas (2 fila de pinos) 27,5x27,5 mm</a><a href='#' onclick='ca_cilindros6()'>> meio cilindro de 2 entradas (2 fila de pinos) 30x30 mm</a><a href='#' onclick='ca_cilindros7()'>> meio cilindro de 2 entradas (2 fila de pinos) 35x35 mm</a><a href='#' onclick='ca_cilindros8()'>> meio cilindro de 2 entradas (2 fila de pinos) 40x30 mm</a><a href='#' onclick='ca_cilindros9()'>> meio cilindro de 2 entradas (2 fila de pinos) 30x40 mm</a><a href='#' onclick='ca_cilindros10()'>> meio cilindro de 2 entradas (2 fila de pinos) 40x40 mm</a><a href='#' onclick='ca_cilindros11()'>> meio cilindro de 2 entradas (2 fila de pinos) 50x30 mm</a><a href='#' onclick='ca_cilindros12()'>> meio cilindro de 2 entradas (2 fila de pinos) 30x50 mm</a><a href='#' onclick='ca_cilindros13()'>> meio cilindro de 2 entradas (2 fila de pinos) 45x35 mm</a><a href='#' onclick='ca_cilindros14()'>> meio cilindro de 2 entradas (2 fila de pinos) 35x45 mm</a><a href='#' onclick='ca_cilindros15()'>> meio cilindro de 2 entradas (2 fila de pinos) 45x45 mm</a><a href='#' onclick='ca_cilindros16()'>> meio cilindro de 2 entradas (2 fila de pinos) 60x30 mm</a><a href='#' onclick='ca_cilindros17()'>> meio cilindro de 2 entradas (2 fila de pinos) 30x60 mm</a><a href='#' onclick='ca_cilindros18()'>> meio cilindro de 2 entradas (2 fila de pinos) 50x40 mm</a><a href='#' onclick='ca_cilindros19()'>> cilindros de 1 entrada com botão (1 fila de pinos) 27,5x27,5 mm</a><a href='#' onclick='ca_cilindros20()'>> cilindros de 1 entrada com botão (1 fila de pinos) 30x30 mm</a><a href='#' onclick='ca_cilindros21()'>> cilindros de 1 entrada com botão (1 fila de pinos) 35x35 mm</a><a href='#' onclick='ca_cilindros22()'>> cilindros de 1 entrada com botão (1 fila de pinos) 40x30 mm</a><a href='#' onclick='ca_cilindros23()'>> cilindros de 1 entrada com botão (1 fila de pinos) 30x40 mm</a><a href='#' onclick='ca_cilindros24()'>> cilindros de 1 entrada com botão (1 fila de pinos) 40x40 mm</a><a href='#' onclick='ca_cilindros25()'>> cilindros de 1 entrada com botão (1 fila de pinos) 50x30 mm</a><a href='#' onclick='ca_cilindros26()'>> cilindros de 1 entrada com botão (1 fila de pinos) 30x50 mm</a><a href='#' onclick='ca_cilindros27()'>> cilindros de 1 entrada com botão (1 fila de pinos) 45x35 mm</a><a href='#' onclick='ca_cilindros28()'>> cilindros de 1 entrada com botão (1 fila de pinos) 35x45 mm</a><a href='#' onclick='ca_cilindros29()'>> cilindros de 1 entrada com botão (1 fila de pinos) 45x45 mm</a><a href='#' onclick='ca_cilindros30()'>> cilindros de 1 entrada com botão (1 fila de pinos) 60x30 mm</a><a href='#' onclick='ca_cilindros31()'>> cilindros de 1 entrada com botão (1 fila de pinos) 30x60 mm</a><a href='#' onclick='ca_cilindros32()'>> cilindros de 1 entrada com botão (1 fila de pinos) 50x40 mm</a><a href='#' onclick='ca_cilindros33()'>> cilindro perfil europeu para WC 27,5x27,5mm</a><a href='#' onclick='ca_cilindros34()'>> cilindro perfil europeu para WC 30x30mm</a><a href='#' onclick='ca_cilindros35()'>> cilindro S/90 (4 entradas)</a><a href='#' onclick='ca_cilindros36()'>> cilindro S/41 (4 entradas)</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>meio colindro de 1 entrada (1 fila de pinos)</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img1.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img1.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>cilindro de 2 entradas (2 filas de pinos)</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img2.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img2.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>cilindros de 1 entrada com botão (1 fila de pinos)</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img3.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img3.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>cilindro perfil europeu para WC</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img4.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img4.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function ca_cilindros1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil1&gLink=23101&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil2&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil3&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil4&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil5&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil6&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros7() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil7&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros8() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil8&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros9() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil9&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros10() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil10&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros11() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil11&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros12() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil12&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros13() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil13&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros14() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil14&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros15() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil15&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros16() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil16&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros17() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil17&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros18() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil18&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros19() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil19&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros20() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil20&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros21() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil21&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros22() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil22&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros23() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil23&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros24() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil24&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros25() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil25&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros26() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil26&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros27() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil27&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros28() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil28&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros29() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil29&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros30() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil30&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros31() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil31&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros32() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil32&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros33() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil33&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros34() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil34&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros35() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil35&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_cilindros36() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=!cil36&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};

//____________________________________________________________________________________________
//___________________________________________amestramentos________________________________________
//____________________________________________________________________________________________
//ca_amestramentos over____________________________________________________________________________________________________________________________________
function ca_amestramentos_over() {
	document.getElementById('ca_amestramentos').style.background = "url('img/cefechmecanicas/thumbs/ca_amestramentos_h.jpg')";
	document.getElementById('label').innerHTML = 'amestramentos';
}


//ca_amestramentos out____________________________________________________________________________________________________________________________________
function ca_amestramentos_out() {
	document.getElementById('ca_amestramentos').style.background = "url('img/cefechmecanicas/thumbs/ca_amestramentos.jpg')";
	document.getElementById('label').innerHTML = '';
}

//ca_amestramentos____________________________________________________________________________________________________________________________________
function cf_ca_amestramentos() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_cileames();'>cilindros e amestramentos</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_ca_amestramentos();'>amestramentos</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_ca_cilindros();'>cilindros</a><a href='#' class='itens' onclick='cf_ca_amestramentos();' id='bold_act'>amestramentos</a><a href='#' class='itens' onclick='cf_ca_efer();'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='63px'/><img src='img/acabamentos/031.jpg' title='latão' /><img src='img/acabamentos/720.jpg' title='niquelado' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='ca_amestramentos1()'>> mestragem 1.ºnível 27,5x27,5 mm</a><a href='#' onclick='ca_amestramentos2()'>> mestragem 1.ºnível 27,5x27,5 mm</a><a href='#' onclick='ca_amestramentos3()'>> mestragem 1.ºnível 30x30 mm</a><a href='#' onclick='ca_amestramentos4()'>> mestragem 1.ºnível 30x30 mm</a><a href='#' onclick='ca_amestramentos5()'>> mestragem 1.ºnível 30x35 mm</a><a href='#' onclick='ca_amestramentos6()'>> mestragem 1.ºnível 35x30 mm</a><a href='#' onclick='ca_amestramentos7()'>> mestragem 1.ºnível 35x35 mm</a><a href='#' onclick='ca_amestramentos8()'>> mestragem 1.ºnível 35x35 mm</a><a href='#' onclick='ca_amestramentos9()'>> chave mestra 1.º nível</a><a href='#' onclick='ca_amestramentos10()'>> mestragem 2.ºnível 27,5x27,5 mm</a><a href='#' onclick='ca_amestramentos11()'>> mestragem 2.ºnível 27,5x27,5 mm</a><a href='#' onclick='ca_amestramentos12()'>> mestragem 2.º nível 30x30 mm</a><a href='#' onclick='ca_amestramentos13()'>> mestragem 2.º nível 30x30 mm</a><a href='#' onclick='ca_amestramentos14()'>> mestragem 2.ºnível 30x35 mm</a><a href='#' onclick='ca_amestramentos15()'>> mestragem 2.ºnível 35x30 mm</a><a href='#' onclick='ca_amestramentos16()'>> mestragem 2.ºnível 35x35 mm</a><a href='#' onclick='ca_amestramentos17()'>> mestragem 2.ºnível 35x35 mm</a><a href='#' onclick='ca_amestramentos18()'>> chave mestra 2.º nível</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>mestragem de 1.º nível </p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img5.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img5.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>mestragem de 2.º nível</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/cileames/img6.jpg' class='full' /> <img src='img/cefechmecanicas/cileames/img6.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function ca_amestramentos1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920020&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920021&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920023&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920024&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920026&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920027&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos7() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920029&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos8() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920030&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos9() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920008&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos10() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920032&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos11() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920033&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos12() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920035&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos13() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920036&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos14() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920038&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos15() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920038&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos16() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920038&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos17() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920038&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_amestramentos18() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920011&gLink=23102&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};


//____________________________________________________________________________________________
//___________________________________________efer________________________________________
//____________________________________________________________________________________________
//ca_efer over____________________________________________________________________________________________________________________________________
function ca_efer_over() {
	document.getElementById('ca_efer').style.background = "url('img/cefechmecanicas/thumbs/ca_efer_h.jpg')";
	document.getElementById('label').innerHTML = 'efer';
}


//ca_efer out____________________________________________________________________________________________________________________________________
function ca_efer_out() {
	document.getElementById('ca_efer').style.background = "url('img/cefechmecanicas/thumbs/ca_efer.jpg')";
	document.getElementById('label').innerHTML = '';
}

//ca_efer____________________________________________________________________________________________________________________________________
function cf_ca_efer() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_cileames();'>cilindros e amestramentos</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_ca_efer();'>efer</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_ca_cilindros();'>cilindros</a><a href='#' class='itens' onclick='cf_ca_amestramentos();' >amestramentos</a><a href='#' class='itens' onclick='cf_ca_efer();' id='bold_act'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='63px'/><img src='img/acabamentos/031.jpg' title='latão' /><img src='img/acabamentos/720.jpg' title='niquelado' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='ca_efer1()'>> cilindros de segurança de perfil europeu 27,5x27,5 mm</a><a href='#' onclick='ca_efer2()'>> cilindros de segurança de perfil europeu 27,5x27,5 mm</a><a href='#' onclick='ca_efer3()'>> cilindros de segurança de perfil europeu 30x30 mm</a><a href='#' onclick='ca_efer4()'>> cilindros de segurança de perfil europeu 30x30 mm</a><a href='#' onclick='ca_efer5()'>> cilindros de segurança de perfil europeu 35x35 mm</a><a href='#' onclick='ca_efer6()'>> cilindros de segurança de perfil europeu 35x35 mm</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<img style='position:relative; left:34px;' src='img/cefechmecanicas/cileames/img8.jpg'>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function ca_efer1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920140&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_efer2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920160&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_efer4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920161&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_efer5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920142&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_efer6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920162&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function ca_efer3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920141&gLink=23103&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};




//fechaduras mecanicas
function cf_fmecanicas() {
	//define qual o item de menu que esta activo
	document.getElementById('puxadores').className='';
	document.getElementById('complementos').className='';
	document.getElementById('cefechmecanicas').className='activo';
	document.getElementById('cacessos').className='';
	document.getElementById('equipamentos').className='';
	
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_fmecanicas();'>fechaduras mecânicas</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_fm_embutir();'>embutir</a><a href='#' class='itens' onclick='cf_fm_sobrepor();'>sobrepor</a><a href='#' class='itens' onclick='cf_fm_tubular();'>trincos e fechos tubulares</a><a href='#' class='itens' onclick='cf_fm_efer();'>efer</a>";
		document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById("Scrollerla"), 270, 320);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className="class1";
	document.getElementById('detalhes').innerHTML="";
	document.getElementById('inlinktit').innerHTML="";
	document.getElementById('inlinktxt').innerHTML="";
	document.getElementById('scrolls_inlink').style.visibility ='hidden';

	scroller  = new jsScroller(document.getElementById("Scroller-1"), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<ul class='minis' id='thumbs' ><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/fm_embutir.jpg);' id='fm_embutir' onmouseover='fm_embutir_over();' onmouseout='fm_embutir_out();' title='imagens de ambiente não disponíveis' /></li><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/fm_sobrepor.jpg);' id='fm_sobrepor' onmouseover='fm_sobrepor_over();' onmouseout='fm_sobrepor_out();' title='imagens de ambiente não disponíveis' /></li><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/fm_tubular.jpg);' id='fm_tubular' onmouseover='fm_tubular_over();' onmouseout='fm_tubular_out();' title='imagens de ambiente não disponíveis' /></li><li><img src='img/spacer.gif' style='background:url(img/cefechmecanicas/thumbs/fm_efer.jpg);' id='fm_efer' onmouseover='fm_efer_over();' onmouseout='fm_efer_out();' title='imagens de ambiente não disponíveis' /></li></ul> <div class='labels'><span class='left' id='label'></span><span class='right' id='pags'></span> </div>";
	
	Shadowbox.init();
	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: false,
	showInfopane:false,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";
}

//____________________________________________________________________________________________
//___________________________________________embutir________________________________________
//____________________________________________________________________________________________
//fm_embutir over____________________________________________________________________________________________________________________________________
function fm_embutir_over() {
	document.getElementById('fm_embutir').style.background = "url('img/cefechmecanicas/thumbs/fm_embutir_h.jpg')";
	document.getElementById('label').innerHTML = 'embutir';
}


//fm_embutir out____________________________________________________________________________________________________________________________________
function fm_embutir_out() {
	document.getElementById('fm_embutir').style.background = "url('img/cefechmecanicas/thumbs/fm_embutir.jpg')";
	document.getElementById('label').innerHTML = '';
}

//fm_embutir____________________________________________________________________________________________________________________________________
function cf_fm_embutir() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_fmecanicas();'>fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_fm_embutir();'>embutir</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_fm_embutir();' id='bold_act'>embutir</a><a href='#' class='itens' onclick='cf_fm_sobrepor();'>sobrepor</a><a href='#' class='itens' onclick='cf_fm_tubular();'>trincos e fechos tubulares</a><a href='#' class='itens' onclick='cf_fm_efer();'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='13px'/><img src='img/acabamentos/630.jpg' title='aço inox escovado' /><img src='img/acabamentos/605.jpg' title='latão polido' /><img src='img/acabamentos/x10.jpg' title='latão polido PVD' /><img src='img/acabamentos/509.jpg' title='bronze' /><img src='img/acabamentos/625.jpg' title='cromado brilhante' /><img src='img/acabamentos/626.jpg' title='cromado fosco' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='fm_embutir1()'>> S6 - fechadura de embutir (trinco) 25mm</a><a href='#' onclick='fm_embutir2()'>> S6 - fechadura de embutir (trinco) 30mm</a><a href='#' onclick='fm_embutir3()'>> S6R - fechadura de embutir (trinco) 25mm</a><a href='#' onclick='fm_embutir4()'>> S6R - fechadura de embutir (trinco) 30mm</a><a href='#' onclick='fm_embutir5()'>> S10 - fechadura de embutir 55mm</a><a href='#' onclick='fm_embutir6()'>> S10 - fechadura de embutir 55mm WC</a><a href='#' onclick='fm_embutir7()'>> S10 - fechadura de embutir 60mm</a><a href='#' onclick='fm_embutir8()'>> S10 - fechadura de embutir 60mm WC</a><a href='#' onclick='fm_embutir9()'>> S11 - fechadura de embutir 60mm</a><a href='#' onclick='fm_embutir10()'>> S11 - fechadura de embutir 60mm WC</a><a href='#' onclick='fm_embutir11()'>> S72 - fechadura de embutir 55mm</a><a href='#' onclick='fm_embutir12()'>> S72 - fechadura de embutir 60mm</a><a href='#' onclick='fm_embutir13()'>> S72 - fechadura de embutir 65mm</a><a href='#' onclick='fm_embutir14()'>> S21 - fechadura de embutir 60mm</a><a href='#' onclick='fm_embutir15()'>> Fechadura de segurança de embutir multiponto S22 60mm</a><a href='#' onclick='fm_embutir16()'>> Fechadura de segurança de embutir multiponto S23 25mm</a><a href='#' onclick='fm_embutir17()'>> Fechadura de segurança de embutir multiponto S23 30mm</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>S6 - fechadura mecânica de embutir</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img1.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img1.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S10 - fechadura mecânica de embutir</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img2.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img2.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S72 - fechadura mecânica de embutir</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img3.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img3.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S21 - fechadura mecânica de embutir</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img5.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img5.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>fechadura de sobrepor 2 trancas, cilindro 4 entradas</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img6.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img6.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function fm_embutir1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920129&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920130&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920131&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920132&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=223217DC&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=223227DC&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir7() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=223257&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir8() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=223267DC&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir9() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920127&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir10() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=223227EC&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir11() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224078D&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir12() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224078D&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir13() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224078D&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir14() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920148&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir15() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920117&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir16() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920119&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir17() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920120&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir18() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224068D&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir19() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224078E&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir20() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224068E&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir21() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920123&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir22() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920122&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir23() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224078F&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir24() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=224068E&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir25() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920148&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir26() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920116&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir27() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920117&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir28() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920118&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir29() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920119&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_embutir30() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920120&gLink=23201&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};

//____________________________________________________________________________________________
//___________________________________________sobrepor________________________________________
//____________________________________________________________________________________________
//fm_sobrepor over____________________________________________________________________________________________________________________________________
function fm_sobrepor_over() {
	document.getElementById('fm_sobrepor').style.background = "url('img/cefechmecanicas/thumbs/fm_sobrepor_h.jpg')";
	document.getElementById('label').innerHTML = 'sobrepor';
}


//fm_sobrepor out____________________________________________________________________________________________________________________________________
function fm_sobrepor_out() {
	document.getElementById('fm_sobrepor').style.background = "url('img/cefechmecanicas/thumbs/fm_sobrepor.jpg')";
	document.getElementById('label').innerHTML = '';
}

//fm_sobrepor____________________________________________________________________________________________________________________________________
function cf_fm_sobrepor() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_fmecanicas();'>fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_fm_sobrepor();'>sobrepor</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_fm_embutir();'>embutir</a><a href='#' class='itens' onclick='cf_fm_sobrepor();' id='bold_act'>sobrepor</a><a href='#' class='itens' onclick='cf_fm_tubular();'>trincos e fechos tubulares</a><a href='#' class='itens' onclick='cf_fm_efer();'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='13px'/><img src='img/acabamentos/214.jpg' title='caixa pintada com cromados' /><img src='img/acabamentos/605.jpg' title='latão polido' /><img src='img/acabamentos/x10.jpg' title='latão polido PVD' /><img src='img/acabamentos/509.jpg' title='bronze' /><img src='img/acabamentos/625.jpg' title='cromado brilhante' /><img src='img/acabamentos/626.jpg' title='cromado fosco' /><img src='img/acabamentos/606.jpg' title='latão polido' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='fm_sobrepor1()'>> 1963 - fechadura de sobrepor 45mm esquerda</a><a href='#' onclick='fm_sobrepor2()'>> 1963 - fechadura de sobrepor 45mm direita</a><a href='#' onclick='fm_sobrepor3()'>> 1963 - fechadura de sobrepor 55mm esquerda</a><a href='#' onclick='fm_sobrepor4()'>> 1963 - fechadura de sobrepor 55mm direita</a><a href='#' onclick='fm_sobrepor5()'>> 1963 - fechadura de sobrepor 65mm esquerda</a><a href='#' onclick='fm_sobrepor6()'>> 1963 - fechadura de sobrepor 65mm direita</a><a href='#' onclick='fm_sobrepor7()'>> 1963 - fechadura de sobrepor 75mm esquerda</a><a href='#' onclick='fm_sobrepor8()'>> 1963 - fechadura de sobrepor 75mm esquerda</a><a href='#' onclick='fm_sobrepor9()'>> chave de uma entrada - 100 unidades</a><a href='#' onclick='fm_sobrepor10()'>> S42 - fechadura de sobrepor de segurança 60mm esquerda</a><a href='#' onclick='fm_sobrepor11()'>> S42 - fechadura de sobrepor de segurança 60mm direita</a><a href='#' onclick='fm_sobrepor12()'>> S42 - fechadura de sobrepor de segurança 70mm esquerda</a><a href='#' onclick='fm_sobrepor13()'>> S42 - fechadura de sobrepor de segurança 70mm direita</a><a href='#' onclick='fm_sobrepor14()'>> S90 - fechadura de sobrepor 2 trancas cilindro 4 entradas 55mm esquerda</a><a href='#' onclick='fm_sobrepor15()'>> S90 - fechadura de sobrepor 2 trancas cilindro 4 entradas 55mm direita</a><a href='#' onclick='fm_sobrepor16()'>>  S90 - fechadura de sobrepor 2 trancas cilindro 4 entradas 65mm esquerda</a><a href='#' onclick='fm_sobrepor17()'>>  S90 - fechadura de sobrepor 2 trancas cilindro 4 entradas 65mm direita</a><a href='#' onclick='fm_sobrepor18()'>>  Jogo de 2 trancas</a><a href='#' onclick='fm_sobrepor19()'>>  chave 4 entradas 100 unidades</a><a href='#' onclick='fm_sobrepor20()'>>  S82 - fechadura de segurança de sobrepor 2 trancas esquerda</a><a href='#' onclick='fm_sobrepor21()'>>  S82 - fechadura de segurança de sobrepor 2 trancas direita</a><a href='#' onclick='fm_sobrepor22()'>>  S82 - fechadura de segurança de sobrepor 2 trancas esquerda + chave de serviço</a><a href='#' onclick='fm_sobrepor23()'>>  S82 - fechadura de segurança de sobrepor 2 trancas direita + chave de serviço</a><a href='#' onclick='fm_sobrepor24()'>>  S82 - chave telescópica</a><a href='#' onclick='fm_sobrepor25()'>>  S82 - fechadura de segurança de sobrepor 4 trancas esquerda</a><a href='#' onclick='fm_sobrepor26()'>>  S82 - fechadura de segurança de sobrepor 4 trancas direita</a><a href='#' onclick='fm_sobrepor27()'>>  S82 - fechadura de segurança de sobrepor 4 trancas esquerda + chave de serviço</a><a href='#' onclick='fm_sobrepor28()'>>  S82 - fechadura de segurança de sobrepor 4 trancas direita + chave de serviço</a><a href='#' onclick='fm_sobrepor29()'>>  S82 - chave telescópica</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>1963 - fechadura mecânica de sobrepor</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img7.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img7.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S42 - fechadura mecânica de sobrepor</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img8.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img8.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S90 - fechadura mecânica de sobrepor</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img9.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img9.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S82 - fechadura mecânica de sobrepor 2 trancas</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img10.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img10.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S82 - fechadura mecânica de sobrepor 4 trancas</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img11.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img11.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function fm_sobrepor1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055B&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056B&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055D&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056D&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055F&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056F&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor7() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055H&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor8() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056H&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor9() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920170&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor10() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920165&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor11() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920145&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor12() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920166&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor13() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920146&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor14() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217905DC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor15() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217906DC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor16() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217905FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor17() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217906FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor18() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=2360255C214&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor19() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920202&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor20() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217825FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor21() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217826FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor22() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217895FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor23() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217896FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor24() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920250&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor25() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217835Fc&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor26() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217836fc&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor27() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217875FC&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor28() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=217876fc&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_sobrepor29() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920250&gLink=23202&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};


//____________________________________________________________________________________________
//___________________________________________tubular________________________________________
//____________________________________________________________________________________________
//fm_tubular over____________________________________________________________________________________________________________________________________
function fm_tubular_over() {
	document.getElementById('fm_tubular').style.background = "url('img/cefechmecanicas/thumbs/fm_tubular_h.jpg')";
	document.getElementById('label').innerHTML = 'tubular';
}


//fm_tubular out____________________________________________________________________________________________________________________________________
function fm_tubular_out() {
	document.getElementById('fm_tubular').style.background = "url('img/cefechmecanicas/thumbs/fm_tubular.jpg')";
	document.getElementById('label').innerHTML = '';
}

//fm_tubular____________________________________________________________________________________________________________________________________
function cf_fm_tubular() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_fmecanicas();'>fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_fm_tubular();'>tubular</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_fm_embutir();'>embutir</a><a href='#' class='itens' onclick='cf_fm_sobrepor();'>sobrepor</a><a href='#' class='itens' onclick='cf_fm_tubular();' id='bold_act'>trincos e fechos tubulares</a><a href='#' class='itens' onclick='cf_fm_efer();'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='63px'/><img src='img/acabamentos/605.jpg' title='latão polido' /><img src='img/acabamentos/509.jpg' title='bonze' /><img src='img/acabamentos/x10.jpg' title='latão polido PVD' /><img src='img/acabamentos/625.jpg' title='cromado brilhante' /><img src='img/acabamentos/626.jpg' title='cromado fosco' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='fm_tubular1()'>> trinco tubular de passagem 60mm</a><a href='#' onclick='fm_tubular2()'>> trinco tubular de passagem 70mm</a><a href='#' onclick='fm_tubular3()'>> trinco tubular de travão 80mm</a><a href='#' onclick='fm_tubular4()'>> trinco tubular de travão 70mm</a><a href='#' onclick='fm_tubular5()'>> fecho tubular 60mm</a><a href='#' onclick='fm_tubular6()'>> fecho tubular 70mm</a><br />";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>trinco tubular de passagem</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img12.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img12.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>trinco tubular travão</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img13.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img13.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>fecho tubular</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img14.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img14.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function fm_tubular1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251468WC&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_tubular2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251468yc&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_tubular3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251268wc&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_tubular4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251268yc&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_tubular5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251515wc&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_tubular6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=251515yc2&gLink=23203&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};

//____________________________________________________________________________________________
//___________________________________________efer________________________________________
//____________________________________________________________________________________________
//fm_efer over____________________________________________________________________________________________________________________________________
function fm_efer_over() {
	document.getElementById('fm_efer').style.background = "url('img/cefechmecanicas/thumbs/fm_efer_h.jpg')";
	document.getElementById('label').innerHTML = 'efer';
}


//fm_efer out____________________________________________________________________________________________________________________________________
function fm_efer_out() {
	document.getElementById('fm_efer').style.background = "url('img/cefechmecanicas/thumbs/fm_efer.jpg')";
	document.getElementById('label').innerHTML = '';
}

//fm_efer____________________________________________________________________________________________________________________________________
function cf_fm_efer() {
	//coloca caminho na barra de cima
	document.getElementById('header_door').innerHTML="<a href='#' onclick='content_produtos_cefechmecanicas();'>cilindros e fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' onclick='cf_fmecanicas();'>fechaduras mecânicas</a> &nbsp; | &nbsp; <a href='#' class='itens' onclick='cf_fm_efer();'>efer</a>";
	
	//coloca lista lado esquerdo e scroll se for o caso	
	document.getElementById('listagem').innerHTML="<a href='#' class='itens' onclick='cf_fm_embutir();'>embutir</a><a href='#' class='itens' onclick='cf_fm_sobrepor();'>sobrepor</a><a href='#' class='itens' onclick='cf_fm_tubular();'>trincos e fechos eferes</a><a href='#' class='itens' onclick='cf_fm_efer();' id='bold_act'>efer</a>";
	document.getElementById('scrolls_lista').style.visibility ='hidden';
	
	lalala  = new jsScroller2(document.getElementById('Scrollerla'), 270, 100);
	lalala.scrollTo(0,0);
	
	
	//coloca titulo, texto e scroll se for o caso
	document.getElementById('Scroller-1').className='class2';
	document.getElementById('detalhes').innerHTML="<img src='img/spacer.gif' width='166px' height='63px'/><img src='img/acabamentos/630.jpg' title='aço inox murçado' /><img src='img/acabamentos/625.jpg' title='cromado brilhante' />";
	document.getElementById('inlinktit').innerHTML='DETALHES TÉCNICOS';
	document.getElementById('inlinktxt').innerHTML="<a href='#' onclick='fm_efer1()'>> T727 - fechadura de embutir para porta de alumínio</a><a href='#' onclick='fm_efer2()'>>S9 - fechadura de gorjas de embutir para porta de madeira</a><a href='#' onclick='fm_efer3()'>> S52 - fechadura de cilindro de embutir</a><a href='#' onclick='fm_efer4()'>> 1963 - fechadura de sobrepor 45mm esquerda</a><a href='#' onclick='fm_efer5()'>> 1963 - fechadura de sobrepor 45mm direita</a><a href='#' onclick='fm_efer6()'>> 1963 - fechadura de sobrepor 55mm esquerda</a><a href='#' onclick='fm_efer7()'>> 1963 - fechadura de sobrepor 55mm direita</a><a href='#' onclick='fm_efer8()'>> 1963 - fechadura de sobrepor 65mm esquerda</a><a href='#' onclick='fm_efer9()'>> 1963 - fechadura de sobrepor 65mm direita</a><a href='#' onclick='fm_efer10()'>> 1963 - fechadura de sobrepor 75mm esquerda</a><a href='#' onclick='fm_efer11()'>> 1963 - fechadura de sobrepor 75mm direita</a><a href='#' onclick='fm_efer12()'>> 1963 - fechadura de sobrepor 60mm esquerda</a><a href='#' onclick='fm_efer13()'>> 1963 - fechadura de sobrepor 60mm direita</a><a href='#' onclick='fm_efer14()'>> 1963 - fechadura de sobrepor 70mm esquerda</a><a href='#' onclick='fm_efer15()'>> 1963 - fechadura de sobrepor 70mm direita</a><a href='#' onclick='fm_efer16()'>> chave de 1 entrada</a><a href='#' onclick='fm_efer17()'>> S42 - fechadura de sobrepor de segurança 60mm esquerda</a><a href='#' onclick='fm_efer18()'>> S42 - fechadura de sobrepor de segurança 70mm esquerda</a>";

	document.getElementById('scrolls_inlink').style.visibility ='visible';


	scroller  = new jsScroller(document.getElementById('Scroller-1'), 270, 100);
	scroller.scrollTo(0,0);
	

	//coloca imagem ou ss
	document.getElementById('img_inlink').innerHTML="<div id='myGallery' style='float:left; width:300px; height:355px; display:block; position:relative; top:1px; left:32px;'><div class='imageElement'><h3></h3><p>T727 fechadura de embutir para porta aluminio</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img15.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img15.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S9 - fechadura de gorjas de embutir para porta madeira</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img16.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img16.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S52 - fechadura de cilindro de embutir</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img17.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img17.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>1963 - fechadura de sobrepor</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img18.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img18.jpg' class='thumbnail' /> </div><div class='imageElement'><h3></h3><p>S42 - fechadura de sobrepor de segurança</p><a href='#' title='open image' class='open'></a> <img src='img/cefechmecanicas/fechmecanicas/img19.jpg' class='full' /> <img src='img/cefechmecanicas/fechmecanicas/img19.jpg' class='thumbnail' /> </div></div>";	
	var myGallery = new gallery($('myGallery'), {
	timed: true,
	showArrows: true,
	showInfopane:true,
	showCarousel: false,
	embedLinks: false
	});	
	
	//retira link para continuar
	document.getElementById('ssgd').innerHTML="";

}
function fm_efer1() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920133&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer2() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920124&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer3() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920121&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer4() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055B&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer5() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056b&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer6() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055d&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer7() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056d&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer8() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055f&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer9() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056f&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer10() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214055h&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer11() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=214056h&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer12() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920163&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer13() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920143&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer14() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920164&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer15() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920144&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer16() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920170&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer17() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920165&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer18() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920145&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer19() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920166&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};
function fm_efer20() {
    var g = {
        player:     'iframe',
        content:    'http://www.cifial.pt/v4/produto.asp?Ref=1920146&gLink=23204&gLng=1', title: '', width: '685px', height: '500px'
    };

    Shadowbox.open([g]);

};