<!--

var hex1= 186
var hex2= 182
var hex3=106
var timerID

var hex=204
var timerID1


function fade_out_1(){
if( (hex1<232) || (hex2<236) || (hex3<156) ) { //If color is not black yet
	hex1+=3; // increase color darkness
	hex2+=3; // increase color darkness
	hex3+=3; // increase color darkness
	document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";

	timerID=setTimeout("fade_out_1()",20);
}
else
	{

		document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";
		fade_in_2()

	}

}


function fade_in_1(){
if( (hex1>186) && (hex2> 182 ) && (hex3> 106) ) { //If color is not black yet
	hex1-=3; // increase color darkness
	hex2-=3; // increase color darkness
	hex3-=3; // increase color darkness
	document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";
	timerID=setTimeout("fade_in_1()",20);

}
else
	{
		timerID=setTimeout("fade_out_1()",20)
	}
}

function fade_in_2(){
if( (hex1>186) && (hex2> 182 ) && (hex3> 106) ) { //If color is not black yet
	hex1-=3; // increase color darkness
	hex2-=3; // increase color darkness
	hex3-=3; // increase color darkness
	document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";
	timerID=setTimeout("fade_in_2()",60);

}
else
	{
		timerID=setTimeout("fade_out_2()",20)
	}
}





function fade_out_2(){
if( (hex1<232) || (hex2<236) || (hex3<156) ) { //If color is not black yet
	hex1+=3; // increase color darkness
	hex2+=3; // increase color darkness
	hex3+=3; // increase color darkness
	document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";

	timerID=setTimeout("fade_out_2()",60);
}
else
	{
 hex1= 232
 hex2= 236
 hex3=156

		document.getElementById('ICT').style.color="rgb("+hex1+","+hex2+","+hex3+")";
		timerID=setTimeout("fade_in_3()",500);

	}

}

function fade_out_3(){
if(hex<204) { //If color is not black yet
	hex+=8; // increase color darkness
	document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";


	timerID1=setTimeout("fade_out_3()",20); 
}
else
	{	
		hex=204;//reset hex value
		document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";
		fade_in_4()

	}

}

function fade_in_3(){
if(hex>0) { //If color is not black yet
	hex-=8; // increase color darkness
	document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";
	timerID1=setTimeout("fade_in_3()",20); 
}
else
	{	
		hex=0; //reset hex value

		timerID1=setTimeout("fade_out_3()",20)
	}
}

function fade_in_4(){
if(hex>0) { //If color is not black yet
	hex-=8; // increase color darkness
	document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";
	timerID1=setTimeout("fade_in_4()",20); 
}
else
	{	
		hex=0; //reset hex value

		timerID1=setTimeout("fade_out_4()",20)
	}
}

function fade_out_4(){
if(hex<204) { //If color is not black yet
	hex+=8; // increase color darkness
	document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";


	timerID1=setTimeout("fade_out_4()",60);
}
else
	{	
		hex=204;//reset hex value
		document.getElementById('man').style.color="rgb("+hex+","+hex+","+hex+")";
		timerID1=setTimeout("fade_in_1()",2000); 
	}

}




top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
function nero_I()
{
	clearTimeout(timerID)
	clearTimeout(timerID1)
	
	document.getElementById('ICT').style.color="rgb(182,186,106)";
	document.getElementById('man').style.color="rgb(204,204,204)";

}
function nero_M()
{
	clearTimeout(timerID)
	clearTimeout(timerID1)
	
	document.getElementById('man').style.color="rgb(0,0,0)";
	document.getElementById('ict').style.color="rgb(232,236,156)";
	
}

function grigio()
{
	hex=204
	hex=204
	document.getElementById('man').style.color="rgb(204,204,204)";	
	document.getElementById('ICT').style.color="rgb(232,236,156)";
	timerID=setTimeout("fade_in_1()",1000); 

}





var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
//-->
