	var valueWater=new Array(14);
	valueWater[0]= "/gallery/photowater/Internocasenew_low.jpg";
	valueWater[1]= "/gallery/photowater/Retrocase_low.jpg";
	valueWater[2]= "/gallery/photowater/NJ1700+trap2_low.jpg";
	valueWater[3]= "/gallery/photowater/Rad+Supporto_low.jpg";
	valueWater[4]= "/gallery/photowater/InternoCaseNuovoPCadAria_low.jpg";
	valueWater[5]= "/gallery/photowater/intRev1.1_close_low.jpg";
	valueWater[6]= "/gallery/photowater/IntRev1.1_open_low.jpg";
	valueWater[7]= "/gallery/photowater/Det_Pompa+K5_low.jpg";
	valueWater[8]= "/gallery/photowater/integrazione_rev0.9_low.jpg";
	valueWater[9]= "/gallery/photowater/InternoCase_low.jpg";
	valueWater[10]="/gallery/photowater/NJ1200+WB_Mod_low.jpg";
	valueWater[11]="/gallery/photowater/assemblaggio_rev0.1_low.jpg";
	valueWater[12]="/gallery/photowater/IMieiRad_low.jpg";
	valueWater[13]="/gallery/photowater/IMieiWB_low.jpg";

	var textWater=new Array(14);
	textWater[0]= 'Integrazione rev 1.2 - case aperto';
	textWater[1]= 'Integrazione rev 1.2 - Rad sul tetto e cablaggi sul retro';
	textWater[2]= 'Integrazione rev 1.2 - NJ1700 con cristaltrap';
	textWater[3]= 'Integrazione rev 1.2 - Radiatore con cablaggio e supporto';
	textWater[4]= 'Integrazione rev 1.2 - Il nuovo PC ancora ad aria';
	textWater[5]= 'Integrazione rev 1.1 - case chiuso';
	textWater[6]= 'Integrazione rev 1.1 - case aperto';
	textWater[7]= 'Integrazione rev 1.1 - K5 con 5900FX';
	textWater[8]= 'Integrazione rev 0.9 - case chiuso';
	textWater[9]= 'Integrazione rev 0.9 - case aperto';
	textWater[10]='Integrazione rev 0.9 - modifica sulla pompa';
	textWater[11]='Un primo assemblaggio';
	textWater[12]='I miei radiatori - airfreezer300 and BlackIceExtreme';
	textWater[13]='Tutti i miei waterblock - K10, K5 chipset and K5 gpu';

	var valueBench=new Array(10);
	valueBench[0]="/gallery/photobench/SPI_Opteron148@2748Mhz_1M_29.8s.jpg";
	valueBench[1]="/gallery/photobench/SPI_Opteron148@2714Mhz_32M_27m.jpg";
	valueBench[2]="/gallery/photobench/SPI_Athlon64_3500+@2667Mhz_1M_31.8s.jpg";
	valueBench[3]="/gallery/photobench/3DMark2003_3500+@2434Mhz_fx5900@500-920.jpg";
	valueBench[4]="/gallery/photobench/3DMark2003_2400+@2300Mhz_9600Pro@470-690.jpg";
	valueBench[5]="/gallery/photobench/3DMark2001_2400+@2700+_9600Pro@480-690.jpg";
	valueBench[6]="/gallery/photobench/Acquamark3_2400+@2700+_9600Pro@480-690.jpg";
	valueBench[7]="/gallery/photobench/3DMark2001_2400+@2700+_5200@300-520.jpg";
	valueBench[8]="/gallery/photobench/SPI_AthlonXP_2400+@2425Mhz_1M_42s.jpg";
	valueBench[9]="/gallery/photobench/cpuBench_AthlonXP_2400+@2425Mhz.jpg";

	var textBench=new Array(10);
	textBench[0]="Il mio record a SuperPI col mio Opteron148 a 2748Mhz";
	textBench[1]="Il mio Opteron148 a 2714Mhz per uso quotidiano";
	textBench[2]="Un SuperPI da 1 MB con un Athlon64 3500+ a 2667Mhz";
	textBench[3]="Un 3DMark2003 con un 3500+ e una geForce5900";
	textBench[4]="Un 3DMark2003 con un 2400+ e una ATI 9600Pro";
	textBench[5]="Un 3DMark2001 con un 2400+ e una ATI 9600Pro";
	textBench[6]="Un Acquamark3 con un 2400+ e una ATI 9600Pro";
	textBench[7]="Un 3DMark2001 con un 2400 e una geForce 5200";
	textBench[8]="Un SuperPI da 1MB con un AthlonXP_2400+ a 2425Mhz";
	textBench[9]="Un cpuBench con un AthlonXP 2400+ a 2425Mhz";

	function setOption(textArray,valueArray) {
		var select=document.getElementById("picture");
		var initialLength=select.length;
		for(i=1;i<=initialLength;i++) select.remove(initialLength-i);
 		for (i=0;i<textArray.length;i++) {
			var option=document.createElement('option');
  			option.text=textArray[i];
			option.value=valueArray[i];
		  	try {
    				select.add(option,null);	// standards compliant
			} catch(ex) {
    				select.add(option);		// IE only
			}
		}
	}

	function changeCat() {
		if(document.mygallery.category.options[document.mygallery.category.selectedIndex].value=='benchmark')
			setOption(textBench,valueBench);
			else setOption(textWater,valueWater);
		document.images.pictures.src=document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value;
	}

	function showimage() {
		document.images.pictures.src=document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
	}

	function backward() {
		if((document.mygallery.picture.selectedIndex-1)<0)
			document.mygallery.picture.selectedIndex=document.mygallery.picture.length-1
			else document.mygallery.picture.selectedIndex=document.mygallery.picture.selectedIndex-1
		document.images.pictures.src=document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
		}

	function forward() {
		if((document.mygallery.picture.selectedIndex+1)>=document.mygallery.picture.length)
			document.mygallery.picture.selectedIndex=0
			else document.mygallery.picture.selectedIndex=document.mygallery.picture.selectedIndex+1
		document.images.pictures.src=document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
	}


	function apriw(pag) {
		win = window.open(pag,'win','toolbar=0,menubar=0,scrollbar=0,resizable=0,width=1050,height=800');
		win.focus();
	}
