function flash(flash, w, h, label){
if (AC_FL_RunContent == 0) {
	alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
	} else {
		AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
		'width', w,
		'height', h,
		'src', 'flash/'+flash,
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'transparent',
		'devicefont', 'false',
		'id', flash,
		'name', flash,
		'menu', 'true',
		'allowScriptAccess','sameDomain',
		'movie', 'flash/'+flash,
		'salign', 't',
		'flashvars' ,'sessao_atual='+label+'&url=http://webcompany.serveftp.com/contech/web/flash/'
		); 
	}
}

/*-----------[ MENU TOPO ]---------------------*/

$(document).ready(function(){	
									
	$('#topo-2 .1').css('background','url(img/btn-contech.jpg) no-repeat 0px 1px');  
	
	$('#topo-2 .1').mouseover(function(){
			$(this).css('background','url(img/btn-contech.jpg) no-repeat 0px -101px');					
	});
	
	$('#topo-2 .1').mouseout(function(){
			$(this).css('background','url(img/btn-contech.jpg) no-repeat 0px 1px');						   
	});
		
		
		/*--------------------------------*/
		
	$('#topo-2 .2').css('background','url(img/btn-solucoes.jpg) no-repeat 0px 1px');  
		$('#topo-2 .2').mouseover(function(){
			$(this).css('background','url(img/btn-solucoes.jpg) no-repeat 0px -101px');						   
		});
		$('#topo-2 .2').mouseout(function(){
			$(this).css('background','url(img/btn-solucoes.jpg) no-repeat 0px 1px');						   
		});
		
		/*--------------------------------*/
		
	$('#topo-2 .3').css('background','url(img/btn-inovacao.jpg) no-repeat 0px 1px');  
		$('#topo-2 .3').mouseover(function(){
			$(this).css('background','url(img/btn-inovacao.jpg) no-repeat 0px -101px');						   
		});
		$('#topo-2 .3').mouseout(function(){
			$(this).css('background','url(img/btn-inovacao.jpg) no-repeat 0px 1px');						   
		});
		
		/*--------------------------------*/
		
	$('#topo-2 .4').css('background','url(img/btn-clientes.jpg) no-repeat 0px 1px');  
		$('#topo-2 .4').mouseover(function(){
			$(this).css('background','url(img/btn-clientes.jpg) no-repeat 0px -101px');						   
		});
		$('#topo-2 .4').mouseout(function(){
			$(this).css('background','url(img/btn-clientes.jpg) no-repeat 0px 1px');						   
		});
		
		/*--------------------------------*/
		
	$('#topo-2 .5').css('background','url(img/btn-novidades.jpg) no-repeat 0px 1px');  
		$('#topo-2 .5').mouseover(function(){
			$(this).css('background','url(img/btn-novidades.jpg) no-repeat 0px -101px');						   
		});
		$('#topo-2 .5').mouseout(function(){
			$(this).css('background','url(img/btn-novidades.jpg) no-repeat 0px 1px');						   
		});
});

/*-----------[ MENU CONTECH ]---------------------*/
$(document).ready(function(){
						   
	$('.menu-contech .1').css('background','url(img/btn-sobre-contech.jpg) no-repeat 0px -34px');								   
	$('.menu-contech .1').mouseover(function(){
		$(this).css('background','url(img/btn-sobre-contech.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-contech .1').mouseout(function(){
		$(this).css('background','url(img/btn-sobre-contech.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-contech .2').css('background','url(img/btn-reconhecimento-contech.jpg) no-repeat 0px -34px');								   
	$('.menu-contech .2').mouseover(function(){
		$(this).css('background','url(img/btn-reconhecimento-contech.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-contech .2').mouseout(function(){
		$(this).css('background','url(img/btn-reconhecimento-contech.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-contech .3').css('background','url(img/btn-responsabilidade-contech.jpg) no-repeat 0px -34px');								   
	$('.menu-contech .3').mouseover(function(){
		$(this).css('background','url(img/btn-responsabilidade-contech.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-contech .3').mouseout(function(){
		$(this).css('background','url(img/btn-responsabilidade-contech.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-contech .4').css('background','url(img/btn-area-contech.jpg) no-repeat 0px -34px');								   
	$('.menu-contech .4').mouseover(function(){
		$(this).css('background','url(img/btn-area-contech.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-contech .4').mouseout(function(){
		$(this).css('background','url(img/btn-area-contech.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-contech .5').css('background','url(img/btn-mundo-contech.jpg) no-repeat 0px -34px');								   
	$('.menu-contech .5').mouseover(function(){
		$(this).css('background','url(img/btn-mundo-contech.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-contech .5').mouseout(function(){
		$(this).css('background','url(img/btn-mundo-contech.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
});
/*-----------[ MENU SOLUCOES ]---------------------*/
$(document).ready(function(){
						   
	$('.menu-solucoes .1').css('background','url(img/btn-papel-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .1').mouseover(function(){
		$(this).css('background','url(img/btn-papel-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .1').mouseout(function(){
		$(this).css('background','url(img/btn-papel-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-solucoes .2').css('background','url(img/btn-remediacao-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .2').mouseover(function(){
		$(this).css('background','url(img/btn-remediacao-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .2').mouseout(function(){
		$(this).css('background','url(img/btn-remediacao-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-solucoes .3').css('background','url(img/btn-tratamento-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .3').mouseover(function(){
		$(this).css('background','url(img/btn-tratamento-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .3').mouseout(function(){
		$(this).css('background','url(img/btn-tratamento-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-solucoes .4').css('background','url(img/btn-petroquimica-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .4').mouseover(function(){
		$(this).css('background','url(img/btn-petroquimica-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .4').mouseout(function(){
		$(this).css('background','url(img/btn-petroquimica-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-solucoes .5').css('background','url(img/btn-siderurgica-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .5').mouseover(function(){
		$(this).css('background','url(img/btn-siderurgica-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .5').mouseout(function(){
		$(this).css('background','url(img/btn-siderurgica-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
	
	$('.menu-solucoes .6').css('background','url(img/btn-limpesa-solucoes.jpg) no-repeat 0px -34px');								   
	$('.menu-solucoes .6').mouseover(function(){
		$(this).css('background','url(img/btn-limpesa-solucoes.jpg) no-repeat 0px 0px');											 
	});
	$('.menu-solucoes .6').mouseout(function(){
		$(this).css('background','url(img/btn-limpesa-solucoes.jpg) no-repeat 0px -34px');											 
	});
	
	/*--------------------------------*/
});

/*-----------[ MENU ACCORDION solucoes ]---------------------*/

	$(document).ready(function(){
		$('#menu ul').slideUp('slow');
		$('#menu h3, #menu h4').click(function(){
			$(this).next().slideToggle('slow').siblings('ul:visible').slideUp('slow');
			$(this).toggleClass('corrente').siblings('#menu h3, #menu h4').removeClass('corrente');
		});
	});

/* $(document).ready(function(){
		
	 	$("dt a, .icone").click(function(){										 							 
		 
		 // se o menu estiver aberto fecha todos
		 if( $(this).parent().next().is(':visible') ){
			    $("dd:visible").slideUp("slow");
				$(this).next('.icone').attr({'src':'img/ico-mais.jpg','cursor':'pointer'});

				
		 // se ele estiver fechado, fecha todos e abre ele
		 }else {
				$("dd:visible").slideUp("slow");
				$(this).parent().next().slideDown("slow");
				$('.icone').attr('src','img/ico-mais.jpg');
				$(this).next('.icone').attr({'src':'img/ico-menos.jpg','cursor':'pointer'});
		 }		 		 
		 
		 return false;  
	  	});		
				
});
*/ 
/*-----------[ MENU SLIDE HORIZONTAL ]---------------------*/

$(document).ready(function(){	
			$("#slider").easySlider();
		});	

$(document).ready(function(){	
			$("#slider-home").easySlider();
		});	
/*-----------[ LIGHTBOX ]---------------------*/
 $(function() {
        $('#gallery a').lightBox();
    });
 
/*-----------[ LIGHTBOX - HTML]---------------------*/ 

$(document).ready(function() {
			$("a[rel^='prettyPhoto']").prettyPhoto();
		});	

/*-----------[ BOX EMBREVE]---------------------*/ 

$(document).ready(function(){
	$('a#openEmbreve').click(function(){
		$('#embreve').slideDown('fast');
	});
	$('a#openEmbreve').mouseout(function(){
		$('#embreve').slideUp('fast');
	});
	$('a#openIdiomas').click(function(){
		$('#idiomas').slideDown('fast');
	});	
	$('a#openIdiomas').mouseout(function(){
		$('#idiomas').slideUp('fast');
	});
});

/*-----------[ MENU FORMULARIO ]---------------------*/ 
//$(document).ready(function(){
//	$('.box2 , .box3 , .box4').hide();
//	
//						   
//	$('.btn-info').css('background','url(img/btn-form-1.jpg) no-repeat center center');
//	$('.btn-info').hover(function(){
//		$(this).css('background','url(img/btn-form-1-hover.jpg) no-repeat center center');									  
//		$('.btn-info').click(function(){
//			$('.box2 , .box3, .box4').hide();				   
//			$('.box1').show();
//
//				$('.btn-info').css('background','url(img/btn-form-1-hover.jpg) no-repeat center center');
//				$('.btn-info').mouseout(function(){
//					$(this).css('background','url(img/btn-form-1-hover.jpg) no-repeat center center');	
//				});		
//				$('.btn-forma').css('background','url(img/btn-form-2.jpg) no-repeat center center');
//				$('.btn-forma').mouseout(function(){
//					$(this).css('background','url(img/btn-form-2.jpg) no-repeat center center');	
//				});		
//				$('.btn-areain').css('background','url(img/btn-form-3.jpg) no-repeat center center');
//				$('.btn-areain').mouseout(function(){
//					$(this).css('background','url(img/btn-form-3.jpg) no-repeat center center');	
//				});		
//				$('.btn-hist').css('background','url(img/btn-form-4.jpg) no-repeat center center');
//				$('.btn-hist').mouseout(function(){
//					$(this).css('background','url(img/btn-form-4.jpg) no-repeat center center');	
//				});		
//
//		});
//	},function(){
//		$(this).css('background','url(img/btn-form-1.jpg) no-repeat center center');									  
//	})
//	
//	$('#btn-proximo-1').click(function(){
//		$('.box1 , .box3, .box4').hide();				   
//		$('.box2').show();				   				
//	});
///*------------------*/
//	$('.btn-forma').css('background','url(img/btn-form-2.jpg) no-repeat center center');
//	$('.btn-forma').hover(function(){
//		$(this).css('background','url(img/btn-form-2-hover.jpg) no-repeat center center');									  
//		$('.btn-forma').click(function(){
//			$('.box1 , .box3, .box4').hide();	
//			$('.box2').show();	
//			
//				$('.btn-info').css('background','url(img/btn-form-1.jpg) no-repeat center center');
//				$('.btn-info').mouseout(function(){
//					$(this).css('background','url(img/btn-form-1.jpg) no-repeat center center');	
//				});		
//				$('.btn-forma').css('background','url(img/btn-form-2-hover.jpg) no-repeat center center');
//				$('.btn-forma').mouseout(function(){
//					$(this).css('background','url(img/btn-form-2-hover.jpg) no-repeat center center');	
//				});		
//				$('.btn-areain').css('background','url(img/btn-form-3.jpg) no-repeat center center');
//				$('.btn-areain').mouseout(function(){
//					$(this).css('background','url(img/btn-form-3.jpg) no-repeat center center');	
//				});		
//				$('.btn-hist').css('background','url(img/btn-form-4.jpg) no-repeat center center');
//				$('.btn-hist').mouseout(function(){
//					$(this).css('background','url(img/btn-form-4.jpg) no-repeat center center');	
//				});		
//			
//		});
//	},function(){
//		$(this).css('background','url(img/btn-form-2.jpg) no-repeat center center');									  
//	})
//	
//	$('#btn-proximo-2').click(function(){
//		$('.box1 , .box2, .box4').hide();				   
//		$('.box3').show();				   				
//	});
//	
//	$('#btn-voltar-1').click(function(){
//		$('.box2 , .box3, .box4').hide();				   
//		$('.box1').show();				   				
//	});
//
//
///*------------------*/
//	$('.btn-areain').css('background','url(img/btn-form-3.jpg) no-repeat center center');
//	$('.btn-areain').hover(function(){
//		$(this).css('background','url(img/btn-form-3-hover.jpg) no-repeat center center');									  
//		$('.btn-areain').click(function(){
//			$('.box2 , .box1, .box4').hide();	
//			$('.box3').show();
//				
//				$('.btn-info').css('background','url(img/btn-form-1.jpg) no-repeat center center');
//				$('.btn-info').mouseout(function(){
//					$(this).css('background','url(img/btn-form-1.jpg) no-repeat center center');	
//				});		
//				$('.btn-forma').css('background','url(img/btn-form-2.jpg) no-repeat center center');
//				$('.btn-forma').mouseout(function(){
//					$(this).css('background','url(img/btn-form-2.jpg) no-repeat center center');	
//				});		
//				$('.btn-areain').css('background','url(img/btn-form-3-hover.jpg) no-repeat center center');
//				$('.btn-areain').mouseout(function(){
//					$(this).css('background','url(img/btn-form-3-hover.jpg) no-repeat center center');	
//				});		
//				$('.btn-hist').css('background','url(img/btn-form-4.jpg) no-repeat center center');
//				$('.btn-hist').mouseout(function(){
//					$(this).css('background','url(img/btn-form-4.jpg) no-repeat center center');	
//				});		
//
//
//		});
//	},function(){
//		$(this).css('background','url(img/btn-form-3.jpg) no-repeat center center');									  
//	})
//	
//	$('#btn-proximo-3').click(function(){
//		$('.box1 , .box3, .box2').hide();				   
//		$('.box4').show();				   				
//	});
//	
//	$('#btn-voltar-2').click(function(){
//		$('.box1 , .box3, .box4').hide();				   
//		$('.box2').show();				   				
//	});
//
//
///*------------------*/
//	$('.btn-hist').css('background','url(img/btn-form-4.jpg) no-repeat center center');
//	$('.btn-hist').hover(function(){
//		$(this).css('background','url(img/btn-form-4-hover.jpg) no-repeat center center');									  
//		$('.btn-hist').click(function(){
//			$('.box2 , .box3, .box1').hide();	
//			$('.box4').show();
//			
//				$('.btn-info').css('background','url(img/btn-form-1.jpg) no-repeat center center');
//				$('.btn-info').mouseout(function(){
//					$(this).css('background','url(img/btn-form-1.jpg) no-repeat center center');	
//				});		
//				$('.btn-forma').css('background','url(img/btn-form-2.jpg) no-repeat center center');
//				$('.btn-forma').mouseout(function(){
//					$(this).css('background','url(img/btn-form-2.jpg) no-repeat center center');	
//				});		
//				$('.btn-areain').css('background','url(img/btn-form-3.jpg) no-repeat center center');
//				$('.btn-areain').mouseout(function(){
//					$(this).css('background','url(img/btn-form-3.jpg) no-repeat center center');	
//				});		
//				$('.btn-hist').css('background','url(img/btn-form-4-hover.jpg) no-repeat center center');
//				$('.btn-hist').mouseout(function(){
//					$(this).css('background','url(img/btn-form-4-hover.jpg) no-repeat center center');	
//				});		
//
//		});
//	},function(){
//		$(this).css('background','url(img/btn-form-4.jpg) no-repeat center center');									  
//	})	
//	
//		$('#btn-voltar-3').click(function(){
//		$('.box1 , .box2, .box4').hide();				   
//		$('.box3').show();				   				
//	});
//
//
//	
///*------------------*/
//
//
//
//});

//$(document).ready(function(){
//	$("#formulario-cv #box-1").show();
//	$("#formulario-cv #box-2, #formulario-cv #box-3, #formulario-cv #box-4").hide();
//	var i=1;
//	$("#formulario-cv #box-3").animate({scrollTop:0}, 'fast');
//	
//	$("#formulario-cv #btnProximo").click(function(){
//		$("#formulario-cv #box-"+i).hide();
//		i++;
//		if(i <= 4){
//			$("#formulario-cv #box-"+i).show();			
//		}
//	});
//	
//	$("#formulario-cv #btnVoltar").click(function(){
//		$("#formulario-cv #box-"+i).hide();
//		i--;
//		if(i >= 1){
//			$("#formulario-cv #box-"+i).show();
//		}
//	});
//	
//	$("#formulario-cv #btnVoltar2").click(function(){
//		$("#formulario-cv #box-4").hide();
//		$("#formulario-cv #box-3").show();
//		i--;
//	});
//
//	if($("#formulario-cv #box-1").is(":visible")){
//		$("#btnVoltar").hide();	
//	}
//	
//	
//});




$(document).ready(function(){
			$("#box-1,#box-2,#box-3,#box-4").hide();
			$("#box-1").show();			
			var index = 1;
			
			$("input.btnProximo").click(function(){	
				index++;
				if(index <= 4){	
				    $("#box-1,#box-2,#box-3,#box-4").hide();	
					$("#box-"+index).show();							 
				}								
			});
			
			$("input.btnVoltar").click(function(){	
				index--;
				if(index >= 1){	
				    $("#box-1,#box-2,#box-3,#box-4").hide();	
					$("#box-"+index).show();							 
				}	
			});
			

});














