
		var gCapes = [];
		var gCapItemHeight = 20;
		
		function initMenuItems()
		{
			obj = MM_findObj("infoProducte");
			if (obj && obj.style) obj.style.left = "450px";
			gCapes[0] = MM_findObj("barraVermella");
			setTimeout("mouCapaMollaH(0, -20, 1)",500);
			gCapes[1] = MM_findObj("fitxaTecnica");
			setTimeout("canviaAltura(1, 500, 1)",1500);
			gCapes[2] = MM_findObj("imgItem")
			setTimeout("mostraImg(2,0)",1000);

			gCapes[4] = MM_findObj("contingutItems")

			gCapes[5] = MM_findObj("itemsUpDiv")
			gCapes[6] = MM_findObj("itemsDownDiv")

			
			t = numItems;
			if (t > 15) t = 15;
			alt = (t*gCapItemHeight) + 11;
			if (numItems > 15) alt += 11;
			obj = MM_findObj("taulaItems")
			if (obj && obj.style) obj.style.height = alt + "px";
			obj = MM_findObj("fonsItems")
			if (numItems <= 15) alt += gCapItemHeight;;
			if (obj && obj.style) obj.style.height = alt + "px";
			
			posaFons();
		}
		
		function mostraImg(idCapa, alpha)
		{
			if (alpha == 0){
				if (gCapes[idCapa] && gCapes[idCapa].style) gCapes[idCapa].style.visibility = "visible";
			}
			alpha += 10;
			if (alpha >= 100){
				alpha = 100;
			}
			else{
				setTimeout("mostraImg("+idCapa+","+alpha+")", 50);
			}
			canviaAlpha(idCapa, alpha);
		}
		
		function posaFons()
		{
			obj = MM_findObj("fonsItems");
			if (obj){
				if (is.ie){
					obj.style.background = "#000000";
					obj.style.filter = "alpha(opacity=5)";
				}
			}
		}
		
		var itemsVisibles = false;
		function mostraItems()
		{
			paraMoureItems = 0;
			obj = MM_findObj("fonsItems");
			if (obj && obj.style){
				obj.style.visibility = "visible";
			}
			obj = MM_findObj("taulaItems");
			if (obj && obj.style){
				obj.style.visibility = "visible";
			}
			if (gCapes[4] && gCapes[4].style && gCapes[5] && gCapes[5].style) {
				if ( parseInt(gCapes[4].style.top) != 0 && numItems >= 16){
					gCapes[5].style.visibility = "visible";
				}
				else{
					gCapes[5].style.visibility = "hidden";
				}
			}
			maxTopMenuItems = -(gCapItemHeight*numItems) + 255;
			if (gCapes[4] && gCapes[4].style && gCapes[6] && gCapes[6].style) {
				if ( parseInt(gCapes[4].style.top) != maxTopMenuItems && numItems >= 16){
					gCapes[6].style.visibility = "visible";
				}
				else{
					gCapes[6].style.visibility = "hidden";
				}
			}
		}
		function ocultaItems()
		{
			paraMoureItems = 1;
			obj = MM_findObj("fonsItems");
			if (obj && obj.style){
				obj.style.visibility = "hidden";
			}
			obj = MM_findObj("taulaItems");
			if (obj && obj.style){
				obj.style.visibility = "hidden";
			}
			if (gCapes[5] && gCapes[5].style) gCapes[5].style.visibility ="hidden";
			if (gCapes[6] && gCapes[6].style) gCapes[6].style.visibility ="hidden";
		}

		var paraMoureItems = 0;
		function pujaMenuItems()
		{
			setTimeout("pujaMenuItems2()", 200);
		}
		function baixaMenuItems()
		{
			setTimeout("baixaMenuItems2()", 200);
		}
		function pujaMenuItems2()
		{
			if (paraMoureItems == 0){
				if (!gCapes[4] || !gCapes[4].style ||!gCapes[5] || !gCapes[5].style ||!gCapes[6] || !gCapes[6].style) return;
				gCapes[5].style.visibility = "visible";
				ttop = parseInt(gCapes[4].style.top);
				ttop -= 10;
				maxTopMenuItems = -(gCapItemHeight*numItems) + 255;
				if (ttop < maxTopMenuItems){
					ttop = maxTopMenuItems;
					paraMoureItems = 1;
					gCapes[6].style.visibility = "hidden";
				}
				gCapes[4].style.top = ttop + "px";
				setTimeout("pujaMenuItems2()", 100);
			}
		}		
		function baixaMenuItems2()
		{
			if (paraMoureItems == 0){
				if (!gCapes[4] || !gCapes[4].style ||!gCapes[5] || !gCapes[5].style ||!gCapes[6] || !gCapes[6].style) return;
				gCapes[6].style.visibility = "visible";
				ttop = parseInt(gCapes[4].style.top);
				ttop += 10;
				if (ttop > 0){
					ttop = 0;
					paraMoureItems = 1;
					gCapes[5].style.visibility = "hidden";
				}
				gCapes[4].style.top = ttop + "px";
					setTimeout("baixaMenuItems2()", 100);
			}
		}		

