		// START: animatie7cadre 7 poze
		
		// definim variabilele necesare animatiei de 7 poze
		var animatie7cadre_oprita = false;				// daca e true (daca s-a pus mouse-ul peste un link) animatia se opreste.
		var animatie7cadre_idx_img = 0;							// incepe cu prima poza
		var animatie7cadre_wait = 5000;						// timpul intre 2 schimbari (in ms)
		

		function startAnimatie7cadre() {
			animatie7cadre();							// afisam primul cadru al animatiei imediat
			setInterval('animatie7cadre()', animatie7cadre_wait);	// repetam animatia periodic
		}
		
		
		function animatie7cadre() {
			// daca tine mouse-ul pe un link oprim animatia pana ii da drumul
			if (animatie7cadre_oprita) return;
		
			// animatie circulara
		  	animatie7cadre_idx_img = (animatie7cadre_idx_img + 1) % 7;
			if (animatie7cadre_idx_img == 0)
				animatie7cadre_idx_img = 7;
	
			Effect.divSwap('ImgZoom' + animatie7cadre_idx_img, 'poze');
	
			// refac si apoi schimb imaginea mica cu sageata
			MM_swapImgRestore();		
			MM_swapImage('Img' + animatie7cadre_idx_img,'','images/icon-home-7on.gif',1);
		}
	
		function animatie7cadre_setImg(idx_imagine) {
			animatie7cadre_oprita = true;
			
			// setam var animatie7cadre_idx_img ca sa continue animatia automata de la urmatoarea imagine
			animatie7cadre_idx_img = idx_imagine;
	
			// ascundem sageata precedent afisata
			MM_swapImgRestore();		
			// afisam sageata curenta
			MM_swapImage('Img' + idx_imagine, '', 'images/icon-home-7on.gif',1);
	
			Effect.divSwap('ImgZoom' + idx_imagine, 'poze');
		}

		Effect.divSwap = function(element,container){
		    var div = document.getElementById(container);
		    var nodeList = div.childNodes;
		    var queue = Effect.Queues.get('foto7');
			var idx;
		
	        if(Element.visible(element)==false){
	            for(idx=0;idx<nodeList.length;idx++){
	                if(nodeList.item(idx).nodeName=="DIV" && nodeList.item(idx).id!=element){
	                    if(Element.visible(nodeList.item(idx))==true){
	                        Effect.Fade(nodeList.item(idx), {queue:{scope:'foto7'}})
	                    }
	                }
	            }
	            Effect.Appear(element, {queue:{scope:'foto7'}})
	       }
		}
		// STOP:  animatie7cadre 7 poze
		
