var prod_status=0;
var art_status=0;
var ind_status=0;
var core_status=0;
var mnu_status=0;

var i_start_color='#99b8ff';
var i_fin_color='#000663';

var varFirstTime=0;

/* ------------------------------------*/
var CentruX=0;
var CentruY=0;
var varWidth=0;
var varHeight=0;
/* ------------------------------------*/
var fundal_old_color=0;
var fundal_color=['#0000d0','#f00000','#f0f000','#a0a0a0','#a05040','#0070b0','#00f050'];
var arrIMGtempProd =["000.jpg","000.jpg"];
var varFilter="";
/* ------------------------------------*/
var timerRedim;
var varRedim=0;
/* ------------------------------------*/
var varDetaliuHeight=0;
var varDetaliuHeight1=0;
var varDetaliuHeight2=0;
var varDetaliuHeight3=0;
var varDetaliuHeight4=0;
var varDetaliuHeight5=0;
var varDetaliuHeight6=0;

/* ------------------------------------*/
var old_mn=1;

var arrIMG1=["/IMAGINI/wait.gif","/IMAGINI/wait1.gif","/IMAGINI/favicon.ico","/IMAGINI/gol.gif","/IMAGINI/alb.gif","/IMAGINI/arr.gif","/IMAGINI/back.png","/IMAGINI/alb.gif","/IMAGINI/logo.png","/IMAGINI/m_1.jpg","/IMAGINI/slogan.png","/IMAGINI/spacer.png","/IMAGINI/mask_work.png","/IMAGINI/mnu_back.png","/IMAGINI/mnu1_back.png","/IMAGINI/sitemap.png","/IMAGINI/z0.png","/IMAGINI/z1.png","/IMAGINI/z2.png","/IMAGINI/z3.png","/IMAGINI/z4.png","/IMAGINI/z5.png","/IMAGINI/z6.png"];
var arrIMG2=["/IMAGINI/b0.jpg","/IMAGINI/b1.jpg","/IMAGINI/b2.jpg","/IMAGINI/b3.jpg","/IMAGINI/b4.jpg","/IMAGINI/b5.jpg","/IMAGINI/b6.jpg"];
var arrIMG3=["/IMAGINI/arrow0.gif","/IMAGINI/arrow1.gif","/IMAGINI/arrow2.gif","/IMAGINI/arrow3.gif","/IMAGINI/arrow4.gif","/IMAGINI/arrow5.gif","/IMAGINI/arrow6.gif"];
var arrIMG4=["/IMAGINI/arroy0.gif","/IMAGINI/arroy1.gif","/IMAGINI/arroy2.gif","/IMAGINI/arroy3.gif","/IMAGINI/arroy4.gif","/IMAGINI/arroy5.gif","/IMAGINI/arroy6.gif"];
var arrIMG5=["/IMAGINI/arroz0.gif","/IMAGINI/arroz1.gif","/IMAGINI/arroz2.gif","/IMAGINI/arroz3.gif","/IMAGINI/arroz4.gif","/IMAGINI/arroz5.gif","/IMAGINI/arroz6.gif"];
var arrIMG6=["/IMAGINI/arrox0.gif","/IMAGINI/arrox1.gif","/IMAGINI/arrox2.gif","/IMAGINI/arrox3.gif","/IMAGINI/arrox4.gif","/IMAGINI/arrox5.gif","/IMAGINI/arrox6.gif"];

var intSpec=0;

/* #########################  - INITIALIZARE -  ############################ */
Event.observe(window, 'load', Initializare, false);
/* --------------------------------------------------------------------- */
function Initializare(){new loadIMG(arrIMG1, startAnim1);}
/* --------------------------------------------------------------------- */
function startAnim1(){new loadIMG(arrIMG2, startAnim2);}
/* --------------------------------------------------------------------- */
function startAnim2(){new loadIMG(arrIMG3, startAnim3);}
/* --------------------------------------------------------------------- */
function startAnim3(){new loadIMG(arrIMG4, startAnim4);}
/* --------------------------------------------------------------------- */
function startAnim4(){new loadIMG(arrIMG5, startAnim5);}
/* --------------------------------------------------------------------- */
function startAnim5(){new loadIMG(arrIMG6, exAjaxMeniu);}
/* --------------------------------------------------------------------- */

/* --------------------------------- */
function exAjaxMeniu() {
	var pars = 'nr=0';
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;exAjaxAfisMeniu();},
		on404: function(t) {alert("2");},
		onFailure: function(t) {alert("3");}};
	new Ajax.Request('/FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exAjaxAfisMeniu() {
	$('mnu_slider_slave_mnu').innerHTML=$('Amnu_slider_slave_mnu').innerHTML;
	$('mnu_slider_slave').innerHTML=$('Amnu_slider_slave').innerHTML;
	$('mnu_slider_slave2').innerHTML=$('Amnu_slider_slave2').innerHTML;
	$('divtemp').innerHTML="";
	finalAnim();}
	/* --------------------------------- */
function finalAnim(){
		aflare_centru();
		pozitie();
		window.setTimeout("new Effect.Appear('fundal',{duration: 1.0});",500);
		window.setTimeout("StartIndex1();",1000);
		window.setTimeout("InitReady();",100);
		clearPreloadPage();
		disableSelect();
		varRedim=1;
		
		AfisareOraStatus();}
/* --------------------------------------------------------------------- */
function clearPreloadPage() {$('prepage').style.visibility='hidden';}
/* ########################################################################### */


/* #########################  - REDIMENSIONARE -  ############################ */
Event.observe(window, 'resize', ReDime, false);
/* --------------------------------- */
function ReDime(){if (varRedim==0){boolFreeState=false;clearInterval(timerRedim);timerRedim=setInterval("ReInitializare()",100);}}
/* --------------------------------- */
function ReInitializare(){clearInterval(timerRedim);varRedim=1;aflare_centru();window.setTimeout("pozitie1()",100);	window.setTimeout("InitReady()",500);}
function pozitie1(){$('dreptunghi').style.top = CentruY-775+'px';$('dreptunghi').style.left = CentruX-875+'px';}
/* --------------------------------------------------------------------- */
function InitReady(){varRedim=0;boolFreeState=true;}
	
/* ###############  - AFLA CENTRU BROWSER -  ################## */
function aflare_centru(){
  	var de = document.documentElement;
	varWidth = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	varHeight = self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	CentruX=varWidth/2;CentruY=varHeight/2;
	if (varWidth>800) {}else {}}
/* ###############  - AFISARE ORA -  ################## */
function AfisareOraStatus() {var TimerOraStatus = window.setTimeout("AfisareOraStatus()", 1000);var Astazi = new Date();var valoare = Astazi.toLocaleString();status = valoare;}
/* ###############  - DEZACTIVARE SELECTIE TEXT IN BROWSER -  ################## */
function disableSelect(){
	function disabletext(e){return false}
	function reEnable(){return true}
	document.onselectstart=new Function ("return false")//if the browser is IE4+
	if (window.sidebar){//if the browser is NS6
		document.onmousedown=disabletext
		document.onclick=reEnable}}

/* ###################  - POZITIONARE ELEMENTE IN PAGINA -  ################## */
function pozitie(){
	var tpLeft=CentruX-875;
	var tpTop=CentruY-775;
	$('dreptunghi').setStyle({top:tpTop+'px',left:tpLeft+'px'}); 
	$('prepage').setStyle({top:0+'px',left:0+'px',width:varWidth+'px',height:varHeight+'px'});
	
	Element.setOpacity($('footer'),0.5);
	Element.setOpacity($('sitemap'),0.5);
	Element.setOpacity($('fundal'),0.01);
	
	$('logo_elipsa').setStyle({top:1+'px',left:1+'px'});

	$('ind_nume').setStyle({top:140+'px',left:790+'px'});
	$('ind_continut').setStyle({top:170+'px',left:790+'px'});

	for(fi = 0; fi <= 14; fi++){
	  	gi=(15-fi)/15;fg=(fi)/15;
		$('opacLi'+fi).setStyle({top:100+fi+'px',opacity:gi});
	  	$('opacLj'+fi).setStyle({top:(205+fi)+'px',opacity:fg});
	  	$('opacM'+fi).setStyle({top:fi+'px',opacity:gi});
	  	$('opacN'+fi).setStyle({top:(325+fi)+'px',opacity:fg});
	  	$('opacW'+fi).setStyle({top:40+fi+'px',opacity:gi});
	  	$('opacQ'+fi).setStyle({top:(345+fi)+'px',opacity:fg});
	  	$('opacT'+fi).setStyle({top:40+fi+'px',opacity:gi});
	  	$('opacB'+fi).setStyle({top:(345+fi)+'px',opacity:fg});
		$('opacL'+fi).setStyle({top:fi+'px',opacity:gi});
	  	$('opacS'+fi).setStyle({top:(345+fi)+'px',opacity:fg});}
	
	$('mnu_0').setStyle({top:20+'px',left:10+'px'});
	$('mnu_1').setStyle({top:40+'px',left:10+'px'});
	$('mnu_4').setStyle({top:60+'px',left:10+'px'});
	$('mnu_5').setStyle({top:80+'px',left:10+'px'});
	$('mnu_2').setStyle({top:100+'px',left:10+'px'});
	$('mnu_3').setStyle({top:120+'px',left:10+'px'});
	$('mnu_6').setStyle({top:140+'px',left:10+'px'});
	
	$('fundal').setStyle({background:fundal_color[fundal_old_color]});
    $('banerIMG').src = arrIMG2[fundal_old_color];
    
    $('mask').setStyle({top:140+'px',left:0+'px',opacity:0});
    $('maskMnu').setStyle({top:100+'px',left:520+'px',opacity:0});
	
	$('art_nume').setStyle({top:140+'px',left:790+'px'});
	$('art_continut').setStyle({top:170+'px',left:790+'px'});
	$('prod_poza').setStyle({top:140+'px',left:-500+'px'});
	$('prod_nume').setStyle({top:140+'px',left:790+'px'});
	$('prod_continut').setStyle({top:170+'px',left:790+'px'});
	
		
	exInitializareScroller();
	exInitializareScrollerMnuProd();
	exInitializareScrollerMnuArt();
	exInitializareScrollerMnuCore();
	exInitializareScrollerArt();
	exInitializareScrollerMnu();
	}
	














/* ################################# */
function b_down_on(valoare){
	Element.setOpacity(valoare,1.0);
	$(valoare).style.color='#ff0000';}
/* --------------------------------- */
function b_down_off(valoare){
	Element.setOpacity(valoare,0.5);
	$(valoare).style.color='#701a16';}
/* --------------------------------- */
        


function aFreeze(){$('work_mask').style.zIndex='1000';}

function aFree(){$('work_mask').style.zIndex='-1';}


	   


/* ################################# */
function StartIndex1(){
	new Effect.MoveAndResizeTo('work',475,455,840,600,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){
		if (intSpec==1){
			afiseaza_logo(fundal_old_color);
			intSpec=0;	
			exImgProdSpec();}
		else if (intSpec==2){
			afiseaza_logo(fundal_old_color);
			intSpec=0;
			exImgArtSpec();}
		else if (intSpec==0){
			new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
			new Effect.Appear('mask',{duration:0.0, afterFinish: function(effect){}});
			afiseaza_logo(fundal_old_color);
			exAfisInd();};
		if (varFirstTime==0){
			varFirstTime=1;
			FirstTimeCatalog();
			aFree();};
		new Effect.MoveAndResizeTo('sitemap',980,1275,12,53,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
		new Effect.MoveAndResizeTo('footer',1050,500,750,30,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	}});}


/* --------------------------------- */
function exImgArtSpec() {
	new loadIMG(arrIMGtempArt, exAfisArtSpec);}
/* --------------------------------- */
function exAfisArtSpec() {
	prod_status=0;
	art_status=1;
	ind_status=0;
	new Effect.MoveAndResizeTo('prod_poza',140,-500,300,400,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_nume',140,790,440,40,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_continut',170,790,440,360,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_nume',140,45,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_continut',170,45,720,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_continut',170,790,700,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('mask',140,5000,790,420,{duration: 0.0});
	exScrollerArt();}



/* --------------------------------- */
function exImgProdSpec() {
	new loadIMG(arrIMGtempProd, exAfisProdSpec);}
/* --------------------------------- */
function exAfisProdSpec() {
	prod_status=1;
	art_status=0;
	ind_status=0;
	new Effect.MoveAndResizeTo('prod_poza',140,20,300,400,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_nume',140,330,440,40,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_continut',170,330,440,360,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_continut',170,790,720,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_continut',170,790,700,340,{duration: 0.0});
	$('prod_poza').src=arrIMGtempProd[0];
	$('prod_poza1').src=arrIMGtempProd[1];
	new Effect.MoveAndResizeTo('mask',140,5000,790,420,{duration: 0.0});
	exScroller();}


function exec_mnu_NEWS(val1,val2){
	HideIndex();
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	new Effect.Appear('mask',{duration:1.0});
	window.setTimeout("ascunde_logo();new Effect.Highlight('fundal',{duration: 1.0,restorecolor:fundal_color["+val1+"],startcolor:fundal_color["+fundal_old_color+"],endcolor:fundal_color["+val1+"], afterFinish: function(effect){fundal_old_color="+val1+";afiseaza_logo("+val1+");exAjaxProd("+val2+");}});",2000);
}

/* ################################# */
function exec_mnu_INDEX(valoare){
	aFreeze();
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	new Effect.Appear('mask',{duration:1.0});
	window.setTimeout("ascunde_logo();new Effect.Highlight('fundal',{duration: 1.0,restorecolor:fundal_color["+valoare+"],startcolor:fundal_color["+fundal_old_color+"],endcolor:fundal_color["+valoare+"], afterFinish: function(effect){fundal_old_color="+valoare+";afiseaza_logo("+valoare+");exAjaxInd("+valoare+");}});",1500);}
/* ################################# */
function exec_mnu(valoare){
	aFreeze();
	new Effect.Highlight('fundal',{duration: 1.0,restorecolor:fundal_color[valoare],startcolor:fundal_color[fundal_old_color],endcolor:fundal_color[valoare], afterFinish: function(effect){fundal_old_color=valoare;afiseaza_logo(valoare);}});
	ascunde_logo();
	exAjaxInd(valoare);
	timeoutMNU=setTimeout('ascunde_mnu22()',200);}
	

function b_m_on(valoare){Element.setOpacity(valoare,0.4);}
function b_m_off(valoare){Element.setOpacity(valoare,1.0);}

function b_n_on(valoare){$(valoare).style.color=fundal_color[fundal_old_color];}
function b_n_off(valoare){$(valoare).style.color='#222222';}











/* ################################################################################## */
/* ################################  - MOUSE WHELL -  ############################### */
/* ################################################################################## */

if (window.addEventListener){window.addEventListener('DOMMouseScroll', wheel, false);}
window.onmousewheel = document.onmousewheel = wheel;
/* --------------------------------- */
function wheel(event){
	var delta = 0;
    if (!event) event = window.event;
    if (event.wheelDelta) {delta = event.wheelDelta/120;if (window.opera) delta = -delta;} 
    else if (event.detail) {delta = -event.detail/3;};
    if (delta){
    	if (mnu_status1==1){handleMnuProd(delta);}
    	else if (mnu_status2==1){handleMnuArt(delta);}
    	else if (mnu_status_core==1){handleMnuCore(delta);}
    	else if (mnu_status==1){handleMnuMnu(delta);}
		else if (prod_status==1){handleProd(delta);}
    	else if (art_status==1){handleArt(delta);};
        if (event.preventDefault){event.preventDefault();};
        event.returnValue = false;}}
/* --------------------------------------------------------------------------- */
/* ###############  - INITIALIZARE SCROLLER PRODUS -  ################## */
function exInitializareScroller() {
	new Control.Slider('slider_arrow','slider_bar',{axis:'vertical',
		onSlide:function(v){$('slider_slave').style.top=-varDetaliuHeight*v+'px';},
        onChange:function(v){$('slider_slave').style.top=-varDetaliuHeight*v+'px';}});
	$('slider_bar').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER PRODUS -  ################## */
function exScroller() {
	varDetaliuHeight=$('slider_slave').offsetHeight-$('slider_master').offsetHeight+4;
	$('slider_arrow').style.top='0px';
	$('slider_slave').style.top='0px';
	if (varDetaliuHeight<=0){
		$('slider_bar').style.visibility='hidden';}
	else{
		$('slider_bar').style.visibility='visible';
		new Effect.Appear('slider_bar',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL PRODUS -  ################## */
function handleProd(delta) {
	var vDetArrow=$('slider_bar').offsetHeight-$('slider_arrow').offsetHeight;
	if (varDetaliuHeight>0){
	   	var varSS=$('slider_slave').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slave').style.top=0+'px';$('slider_arrow').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight){$('slider_slave').style.top=-varDetaliuHeight+'px';$('slider_arrow').style.top=vDetArrow+'px';}
		   	else {$('slider_slave').style.top=varResult+'px';$('slider_arrow').style.top=-($('slider_slave').offsetTop*vDetArrow)/varDetaliuHeight+'px';};}}}
/* ---------------------------------------------------------------------- */
/* ###############  - INITIALIZARE SCROLLER ARTICOL -  ################## */
function exInitializareScrollerArt() {
	new Control.Slider('slider_arrow3','slider_bar3',{axis:'vertical',
		onSlide:function(v){$('slider_slave3').style.top=-varDetaliuHeight3*v+'px';},
        onChange:function(v){$('slider_slave3').style.top=-varDetaliuHeight3*v+'px';}});
	$('slider_bar3').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER ARTICOL -  ################## */
function exScrollerArt() {
	varDetaliuHeight3=$('slider_slave3').offsetHeight-$('slider_master3').offsetHeight+4;
	$('slider_arrow3').style.top='0px';
	$('slider_slave3').style.top='0px';
	if (varDetaliuHeight3<=0){
		$('slider_bar3').style.visibility='hidden';}
	else{
		$('slider_bar3').style.visibility='visible';
		new Effect.Appear('slider_bar3',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL ARTICOL -  ################## */
function handleArt(delta) {
	var vDetArrow=$('slider_bar3').offsetHeight-$('slider_arrow3').offsetHeight;
	if (varDetaliuHeight3>0){
	   	var varSS=$('slider_slave3').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight3){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('slider_slave3').style.top=0+'px';$('slider_arrow3').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight3){$('slider_slave3').style.top=-varDetaliuHeight3+'px';$('slider_arrow3').style.top=vDetArrow+'px';}
		   	else {$('slider_slave3').style.top=varResult+'px';$('slider_arrow3').style.top=-($('slider_slave3').offsetTop*vDetArrow)/varDetaliuHeight3+'px';};}}}
/* --------------------------------------------------------------------------- */	   	
/* ###############  - INITIALIZARE SCROLLER MENIU PRODUS -  ################## */
function exInitializareScrollerMnuProd() {
	new Control.Slider('mnu_slider_arrow','mnu_slider_bar',{axis:'vertical',
		onSlide:function(s){$('mnu_slider_slave').style.top=-varDetaliuHeight1*s+'px';},
        onChange:function(s){$('mnu_slider_slave').style.top=-varDetaliuHeight1*s+'px';}});
	$('mnu_slider_bar').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER MENIU PRODUS -  ################## */
function exScrollerMnuProd(valoare) {
	varDetaliuHeight1=$('opis'+valoare).offsetHeight-$('mnu_slider_master').offsetHeight+14;
	$('mnu_slider_arrow').style.top='0px';
	$('mnu_slider_slave').style.top='0px';
	if (varDetaliuHeight1<=0){
		$('mnu_slider_bar').style.visibility='hidden';}
	else{
		$('mnu_slider_bar').style.visibility='visible';
		new Effect.Appear('mnu_slider_bar',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL MENIU PRODUS -  ################## */
function handleMnuProd(delta) {
	var vDetArrow=$('mnu_slider_bar').offsetHeight-$('mnu_slider_arrow').offsetHeight;
	if (varDetaliuHeight1>0){
	   	var varSS=$('mnu_slider_slave').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight1){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('mnu_slider_slave').style.top=0+'px';$('mnu_slider_arrow').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight1){$('mnu_slider_slave').style.top=-varDetaliuHeight1+'px';$('mnu_slider_arrow').style.top=vDetArrow+'px';}
		   	else {$('mnu_slider_slave').style.top=varResult+'px';$('mnu_slider_arrow').style.top=-($('mnu_slider_slave').offsetTop*vDetArrow)/varDetaliuHeight1+'px';};}}}
/* --------------------------------------------------------------------------- */	   	
/* ###############  - INITIALIZARE SCROLLER MENIU ARTICOL -  ################## */
function exInitializareScrollerMnuArt() {
	new Control.Slider('mnu_slider_arrow2','mnu_slider_bar2',{axis:'vertical',
		onSlide:function(s){$('mnu_slider_slave2').style.top=-varDetaliuHeight2*s+'px';},
        onChange:function(s){$('mnu_slider_slave2').style.top=-varDetaliuHeight2*s+'px';}});
	$('mnu_slider_bar2').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER MENIU ARTICOL -  ################## */
function exScrollerMnuArt(valoare) {
	varDetaliuHeight2=$('opiz'+valoare).offsetHeight-$('mnu_slider_master2').offsetHeight+14;
	$('mnu_slider_arrow2').style.top='0px';
	$('mnu_slider_slave2').style.top='0px';
	if (varDetaliuHeight2<=0){
		$('mnu_slider_bar2').style.visibility='hidden';}
	else{
		$('mnu_slider_bar2').style.visibility='visible';
		new Effect.Appear('mnu_slider_bar2',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL MENIU ARTICOL -  ################## */
function handleMnuArt(delta) {
	var vDetArrow=$('mnu_slider_bar2').offsetHeight-$('mnu_slider_arrow2').offsetHeight;
	if (varDetaliuHeight2>0){
	   	var varSS=$('mnu_slider_slave2').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight2){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('mnu_slider_slave2').style.top=0+'px';$('mnu_slider_arrow2').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight2){$('mnu_slider_slave2').style.top=-varDetaliuHeight2+'px';$('mnu_slider_arrow2').style.top=vDetArrow+'px';}
		   	else {$('mnu_slider_slave2').style.top=varResult+'px';$('mnu_slider_arrow2').style.top=-($('mnu_slider_slave2').offsetTop*vDetArrow)/varDetaliuHeight2+'px';};}}}
/* --------------------------------------------------------------------------- */
/* ###############  - INITIALIZARE SCROLLER MENIU CORELARE -  ################## */
function exInitializareScrollerMnuCore() {
	new Control.Slider('mnu_slider_arrow_core','mnu_slider_bar_core',{axis:'vertical',
		onSlide:function(s){$('mnu_slider_slave_core').style.top=-varDetaliuHeight4*s+'px';},
        onChange:function(s){$('mnu_slider_slave_core').style.top=-varDetaliuHeight4*s+'px';}});
	$('mnu_slider_bar_core').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER MENIU CORELARE -  ################## */
function exScrollerMnuCore() {
	varDetaliuHeight4=$('mnu_slider_slave_core').offsetHeight-$('mnu_slider_master_core').offsetHeight+14;
	$('mnu_slider_arrow_core').style.top='0px';
	$('mnu_slider_slave_core').style.top='0px';
	if (varDetaliuHeight4<=0){
		$('mnu_slider_bar_core').style.visibility='hidden';}
	else{
		$('mnu_slider_bar_core').style.visibility='visible';
		new Effect.Appear('mnu_slider_bar_core',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL MENIU CORELARE -  ################## */
function handleMnuCore(delta) {
	var vDetArrow=$('mnu_slider_bar_core').offsetHeight-$('mnu_slider_arrow_core').offsetHeight;
	if (varDetaliuHeight4>0){
	   	var varSS=$('mnu_slider_slave_core').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight4){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('mnu_slider_slave_core').style.top=0+'px';$('mnu_slider_arrow_core').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight4){$('mnu_slider_slave_core').style.top=-varDetaliuHeight4+'px';$('mnu_slider_arrow_core').style.top=vDetArrow+'px';}
		   	else {$('mnu_slider_slave_core').style.top=varResult+'px';$('mnu_slider_arrow_core').style.top=-($('mnu_slider_slave_core').offsetTop*vDetArrow)/varDetaliuHeight4+'px';};}}}
/* --------------------------------------------------------------------------- */
/* ###############  - INITIALIZARE SCROLLER MENIU MENIU -  ################## */
function exInitializareScrollerMnu() {
	new Control.Slider('mnu_slider_arrow_mnu','mnu_slider_bar_mnu',{axis:'vertical',
		onSlide:function(s){$('mnu_slider_slave_mnu').style.top=-varDetaliuHeight5*s+'px';},
        onChange:function(s){$('mnu_slider_slave_mnu').style.top=-varDetaliuHeight5*s+'px';}});
	$('mnu_slider_bar_mnu').style.visibility='hidden';}
/* ###############  - EXECUTIE SCROLLER MENIU MENIU -  ################## */
function exScrollerMnuMnu(valoare) {
	varDetaliuHeight5=$('mnu_slider_slave_mnu').offsetHeight-$('mnu_slider_master_mnu').offsetHeight+14;
	$('mnu_slider_arrow_mnu').style.top='0px';
	$('mnu_slider_slave_mnu').style.top='0px';
	if (varDetaliuHeight5<=0){
		$('mnu_slider_bar_mnu').style.visibility='hidden';}
	else{
		$('mnu_slider_bar_mnu').style.visibility='visible';
		new Effect.Appear('mnu_slider_bar_mnu',{duration:0.5});}}
/* ###############  - EXECUTIE WHELL MENIU MENIU -  ################## */
function handleMnuMnu(delta) {
	var vDetArrow=$('mnu_slider_bar_mnu').offsetHeight-$('mnu_slider_arrow_mnu').offsetHeight;
	if (varDetaliuHeight5>0){
	   	var varSS=$('mnu_slider_slave_mnu').offsetTop;
       	if (varSS<=0 && varSS>=-varDetaliuHeight5){
		   	var varResult=varSS+delta*20;
		   	if (varResult>=0){$('mnu_slider_slave_mnu').style.top=0+'px';$('mnu_slider_arrow_mnu').style.top=0+'px';}
		   	else if (varResult<=-varDetaliuHeight5){$('mnu_slider_slave_mnu').style.top=-varDetaliuHeight5+'px';$('mnu_slider_arrow_mnu').style.top=vDetArrow+'px';}
		   	else {$('mnu_slider_slave_mnu').style.top=varResult+'px';$('mnu_slider_arrow_mnu').style.top=-($('mnu_slider_slave_mnu').offsetTop*vDetArrow)/varDetaliuHeight5+'px';};}}}
/* ########################## xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ######################### */

/* ################################################################################## */
/* ############################ AFISARE DRAIN, ROOF ...  ############################ */
/* ################################################################################## */
function exAjaxInd(valoare) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	new Effect.Appear('mask',{duration:1.0, afterFinish: function(effect){exAjaxInd111(valoare);}});}
	/* --------------------------------- */
function exAjaxInd111(valoare) {
	var pars = 'nr=6&di='+valoare;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;$('ind_nume').innerHTML=$('ajax_nume_art').innerHTML;$('ind_continut').innerHTML=$('ajax_text_art').innerHTML;exImgInd();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('/FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exImgInd() {
	var arrIMGtemp = $A($$('.aj_img')); 
	if (arrIMGtemp.length==0){exAfisArt();}
	else {new loadIMG(arrIMGtemp, exAfisInd);};}
/* --------------------------------- */
function exAfisInd() {
	prod_status=0;
	art_status=0;
	ind_status=1;
	new Effect.MoveAndResizeTo('prod_poza',140,-500,300,400,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_nume',140,790,440,40,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_continut',170,790,440,360,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_continut',170,790,720,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_nume',140,45,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_continut',170,45,700,340,{duration: 0.0});
	$('divtemp').innerHTML="";
	window.setTimeout("new Effect.Fade('mask',{duration:0.5, afterFinish: function(effect){aFree();new Effect.MoveAndResizeTo('mask',140,5000,790,420,{duration: 0.0});}});",500);}
/* ################################################################################## */

/* ################################################################################## */
/* ################################ COMANDA FILTRU  ################################# */
/* ################################################################################## */
function exAjaxFiltru() {
	new Effect.MoveAndResizeTo('maskMnu',100,20,280,120,{duration: 0.0, afterFinish: function(effect){new Effect.Appear('maskMnu',{duration:0.5, afterFinish: function(effect){exAjaxFiltru111();}});}});}
/* --------------------------------- */
function exAjaxFiltru111() {
	var pars = 'nr=3&di='+$('filter').value;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;exAfisFiltru();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('/FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exAfisFiltru() {
	$('filtru').innerHTML=$('ajax_filtrare').innerHTML;
	$('divtemp').innerHTML="";
	exScrollerMnuCore();
	new Effect.Fade('maskMnu',{duration:0.5, afterFinish: function(effect){new Effect.MoveAndResizeTo('maskMnu',100,520,280,120,{duration: 0.0});}});}
/* ################################# COMANDA PRODUS FILTRAT  ################################ */
function exAjaxProdFiltrat(valoare,ctg) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	new Effect.Appear('mask',{duration:0.5, afterFinish: function(effect){}});
	if(fundal_old_color!=ctg){
		new Effect.Highlight('fundal',{duration: 1.0,restorecolor:fundal_color[ctg],startcolor:fundal_color[fundal_old_color],endcolor:fundal_color[ctg], afterFinish: function(effect){fundal_old_color=ctg;afiseaza_logo(ctg);}});
		ascunde_logo();
		timeoutMNU=setTimeout('ascunde_mnu22()',200);}
	ascunde_mnu_core();
	window.setTimeout("exAjaxProd111("+valoare+");",1000);}
/* ################################################################################## */

/* ################################################################################## */
/* ################################# AFISARE PRODUS  ################################ */
/* ################################################################################## */
function exAjaxProd(valoare) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	timeoutMNU=setTimeout('ascunde_mnu1()',200);
	new Effect.Appear('mask',{duration:0.5, afterFinish: function(effect){exAjaxProd111(valoare);}});}
/* --------------------------------- */
function exAjaxProd111(valoare) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0, afterFinish: function(effect){new Effect.Appear('mask',{duration:0.5});}});
	var pars = 'nr=1&di='+valoare;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;exImgProd();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('/FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exImgProd() {
	arrIMGtempProd[0] = $('ajax_poza').innerHTML; 
	arrIMGtempProd[1] = $('ajax_poza1').innerHTML; 
	if (arrIMGtempProd.length==0){exAfisProd();}
	else {new loadIMG(arrIMGtempProd, exAfisProd);};}
/* --------------------------------- */
function exAfisProd() {
	prod_status=1;
	art_status=0;
	ind_status=0;
	new Effect.MoveAndResizeTo('prod_poza',140,20,300,400,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_nume',140,330,440,40,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_continut',170,330,440,360,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_continut',170,790,720,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_continut',170,790,700,340,{duration: 0.0});
	$('prod_poza').src=arrIMGtempProd[0];
	$('prod_poza1').src=arrIMGtempProd[1];
	$('prod_nume').innerHTML=$('ajax_nume').innerHTML;
	$('prod_text').innerHTML=$('ajax_text').innerHTML;
	$('prod_gama').innerHTML=$('ajax_gama').innerHTML;
	$('prod_core').innerHTML=$('ajax_corelat').innerHTML;
	$('art_core').innerHTML=$('ajax_articol').innerHTML;
	$('divtemp').innerHTML="";
	exScroller();
	new Effect.Fade('mask',{duration:0.5, afterFinish: function(effect){aFree();new Effect.MoveAndResizeTo('mask',140,5000,790,420,{duration: 0.0});}});}
/* ################################################################################## */

/* ################################################################################## */
/* ################################ AFISARE ARTICOL  ################################ */
/* ################################################################################## */
function exAjaxArt(valoare) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0});
	timeoutMNU=setTimeout('ascunde_mnu2()',50);
	new Effect.Appear('mask',{duration:1.0, afterFinish: function(effect){exAjaxArt111(valoare);}});}
/* --------------------------------- */
function exAjaxArt111(valoare) {
	new Effect.MoveAndResizeTo('mask',140,0,790,420,{duration: 0.0, afterFinish: function(effect){new Effect.Appear('mask',{duration:0.5});}});
	var pars = 'nr=2&di='+valoare;
	var opt = {
		method: 'get',
		onSuccess: function(t) {$('divtemp').innerHTML=t.responseText;$('art_nume').innerHTML=$('ajax_nume_art').innerHTML;$('art_text').innerHTML=$('ajax_text_art').innerHTML;$('art_prod').innerHTML=$('ajax_prod').innerHTML;exImgArt();},
		on404: function(t) {},
		onFailure: function(t) {}};
	new Ajax.Request('/FILES/exec_ajax.php?'+pars, opt);}
/* --------------------------------- */
function exImgArt() {
	var arrIMGtemp = $A($$('.aj_img')); 
	if (arrIMGtemp.length==0){exAfisArt();}
	else {new loadIMG(arrIMGtemp, exAfisArt);};}
/* --------------------------------- */
function exAfisArt() {
	prod_status=0;
	art_status=1;
	ind_status=0;
	new Effect.MoveAndResizeTo('prod_poza',140,-500,300,400,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_nume',140,790,440,40,{duration: 0.0});
	new Effect.MoveAndResizeTo('prod_continut',170,790,440,360,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_nume',140,45,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('art_continut',170,45,720,340,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_nume',140,790,720,30,{duration: 0.0});
	new Effect.MoveAndResizeTo('ind_continut',170,790,700,340,{duration: 0.0});
    $('divtemp').innerHTML="";
	window.setTimeout("exScrollerArt();new Effect.Fade('mask',{duration:0.5, afterFinish: function(effect){aFree();new Effect.MoveAndResizeTo('mask',140,5000,790,420,{duration: 0.0});}});",500);}
/* ################################################################################## */

/* ################################# */
/* ################################# */
var mnu_status=0;
var mnu_move=0;
var timeoutMNU;
/* --------------------------------- */
function afisare_mnu(){
	if (mnu_move==0){
    	if (mnu_status==0){
    	   mnu_move=1;mnu_status=1;
    	   new Effect.MoveAndResizeTo('mnu_arrox11',40,50,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_mnu',300,25,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move=0;}});};};}
/* --------------------------------- */
function in_mnu(){clearTimeout(timeoutMNU);}
/* --------------------------------- */
function ascundere_mnu(){timeoutMNU=setTimeout('ascunde_mnu()',200);}
/* --------------------------------- */
function ascunde_mnu(){
	if (mnu_move==0){
    	if (mnu_status==1){
    	   mnu_move=1;mnu_status=0;
    	   new Effect.MoveAndResizeTo('mnu_arrox11',7,50,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_mnu',520,25,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move=0;}});};}
    else {timeoutMNU=setTimeout('ascunde_mnu()',200);};}
/* --------------------------------- */
function ascunde_mnu22(){
	if (mnu_move==0){
    	if (mnu_status==1){
    	   mnu_move=1;mnu_status=0;
    	   new Effect.MoveAndResizeTo('mnu_mnu',520,25,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move=0;}});};}
    else {timeoutMNU=setTimeout('ascunde_mnu()',200);};}
/* ################################# */
/* ################################# */
var mnu_status_core=0;
var mnu_move_core=0;
var timeoutMNU_core;
/* --------------------------------- */
function afisare_mnu_core(){
	if (mnu_move_core==0){
    	if (mnu_status_core==0){
    	   mnu_move_core=1;mnu_status_core=1;
    	   new Effect.MoveAndResizeTo('mnu_arrox1',40,220,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_core',300,462,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move_core=0;}});};};}
/* --------------------------------- */
function in_mnu_core(){clearTimeout(timeoutMNU_core);}
/* --------------------------------- */
function ascundere_mnu_core(){timeoutMNU_core=setTimeout('ascunde_mnu_core()',200);}
/* --------------------------------- */
function ascunde_mnu_core(){
	if (mnu_move_core==0){
    	if (mnu_status_core==1){
    	   mnu_move_core=1;mnu_status_core=0;
    	   new Effect.MoveAndResizeTo('mnu_arrox1',7,220,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_core',520,462,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move_core=0;}});};}
    else {timeoutMNU_core=setTimeout('ascunde_mnu_core()',200);};}
/* ################################# */
/* ################################# */
var mnu_status1=0;
var mnu_move1=0;
var timeoutMNU1;
/* --------------------------------- */
function afisare_mnu1(){
	if (mnu_move1==0){
    	if (mnu_status1==0){
    	   mnu_move1=1;mnu_status1=1;
    	   new Effect.MoveAndResizeTo('mnu_arroy1',308,280,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_prod_continut',140,0,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move1=0;}});};};}
/* --------------------------------- */
function in_mnu1(){clearTimeout(timeoutMNU1);}
/* --------------------------------- */
function ascundere_mnu1(){timeoutMNU1=setTimeout('ascunde_mnu1()',200);}
/* --------------------------------- */
function ascunde_mnu1(){
	if (mnu_move1==0){
    	if (mnu_status1==1){
    	   mnu_move1=1;mnu_status1=0;
    	   new Effect.MoveAndResizeTo('mnu_arroy1',308,310,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_prod_continut',140,-317,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move1=0;}});};}
    else {timeoutMNU1=setTimeout('ascunde_mnu1()',200);};}
/* ################################# */
/* ################################# */
var mnu_status2=0;
var mnu_move2=0;
var timeoutMNU2;
/* --------------------------------- */
function afisare_mnu2(){
	if (mnu_move2==0){
    	if (mnu_status2==0){
    	   mnu_move2=1;mnu_status2=1;
    	   new Effect.MoveAndResizeTo('mnu_arroy2',308,29,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_art_continut',140,450,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move2=0;}});};};}
/* --------------------------------- */
function in_mnu2(){clearTimeout(timeoutMNU2);}
/* --------------------------------- */
function ascundere_mnu2(){timeoutMNU2=setTimeout('ascunde_mnu2()',200);}
/* --------------------------------- */
function ascunde_mnu2(){
	if (mnu_move2==0){
    	if (mnu_status2==1){
    	   mnu_move2=1;mnu_status2=0;
    	   new Effect.MoveAndResizeTo('mnu_arroy2',308,-1,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
    	   new Effect.MoveAndResizeTo('mnu_art_continut',140,767,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move2=0;}});};}
    else {timeoutMNU2=setTimeout('ascunde_mnu2()',200);};}
/* ################################# */

/* ################################# */
/* ################################# */
function FirstTimeCatalog(){
		window.setTimeout("new Effect.MoveAndResizeTo('mnu_arrox11',40,50,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move=0;}});new Effect.MoveAndResizeTo('mnu_mnu',300,25,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('mnu_arrox11',7,50,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move=0;}});new Effect.MoveAndResizeTo('mnu_mnu',520,25,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});",1400);
	   	window.setTimeout("new Effect.MoveAndResizeTo('mnu_arroy2',308,29,31,47,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move2=0;}});new Effect.MoveAndResizeTo('mnu_art_continut',140,450,340,380,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('mnu_arroy2',308,-1,31,47,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move2=0;}});new Effect.MoveAndResizeTo('mnu_art_continut',140,767,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});",1900);
	   	window.setTimeout("new Effect.MoveAndResizeTo('mnu_arroy1',308,280,31,47,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move1=0;}});new Effect.MoveAndResizeTo('mnu_prod_continut',140,0,340,380,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('mnu_arroy1',308,310,31,47,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move1=0;}});new Effect.MoveAndResizeTo('mnu_prod_continut',140,-317,340,380,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});",2400);
	   	window.setTimeout("new Effect.MoveAndResizeTo('mnu_arrox1',40,220,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move_core=0;}});new Effect.MoveAndResizeTo('mnu_core',300,462,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){new Effect.MoveAndResizeTo('mnu_arrox1',7,220,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){mnu_move_core=0;}});new Effect.MoveAndResizeTo('mnu_core',520,462,320,250,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}, afterFinish: function(effect){}});}});",2900);}
/* ################################# */
/* ################################# */

/* ###############  - HIDE/SHOW LITTLE LOGO (DRAIN, ROOF, ETC.) -  ################## */
function afiseaza_logo(valoare){
	$('banerIMG').src = arrIMG2[valoare];
	$('prod_arrow').src = arrIMG3[valoare];
	$('art_arrow').src = arrIMG3[valoare];
	$('prod_mnu_arrow').src = arrIMG3[valoare];
	$('prod_mnu_arrow_core').src = arrIMG3[valoare];
	$('art_mnu_arrow').src = arrIMG3[valoare];
	$('mnu_arroy1').src = arrIMG4[valoare];
	$('mnu_arroy2').src = arrIMG5[valoare];
	$('mnu_arrox1').src = arrIMG6[valoare];
	$('mnu_arrox11').src = arrIMG6[valoare];
	$('slider_bar').style.background=fundal_color[valoare];
	$('mnu_slider_bar_core').style.background=fundal_color[valoare];
	$('slider_bar3').style.background=fundal_color[valoare];
	$('mnu_slider_bar').style.background=fundal_color[valoare];
	$('opis'+valoare).style.top = 0+'px';
	exScrollerMnuProd(valoare);
	$('mnu_slider_bar2').style.background=fundal_color[valoare];
	$('opiz'+valoare).style.top = 0+'px';
	exScrollerMnuArt(valoare);
	new Effect.Appear('banerIMG',{duration:1.0});
	new Effect.MoveAndResizeTo('mnu_arroy1',308,310,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arroy2',308,-1,31,47,{duration: 0.8,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arrox1',7,220,47,31,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arrox11',7,50,47,31,{duration: 1.2,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('logo_' + valoare,60,65,200,75,{duration: 1.0,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});}
/* --------------------------------- */
function ascunde_logo(){
	new Effect.Fade('banerIMG',{duration:0.5});
	new Effect.MoveAndResizeTo('mnu_arroy1',308,280,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arroy2',308,29,31,47,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arrox1',40,220,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	new Effect.MoveAndResizeTo('mnu_arrox11',40,50,47,31,{duration: 0.6,transition: Effect.Transitions.slowstop = function(pos) {return 1-Math.pow(0.5,10*pos);}});
	$('opis'+fundal_old_color).style.top = 5000+'px';
	$('opiz'+fundal_old_color).style.top = 5000+'px';
	new Effect.MoveAndResizeTo('logo_' + fundal_old_color,60,-520,200,75,{duration: 0.5});}
/* --------------------------------- */
/* ################################# */
/* ################################# */

