
window.onload=function()	{
	
	typer() ;
	
	Nifty("div#container");
	Nifty("div#content,div#nav","same-height small");
	
	//Nifty("div#content","small");
	//Nifty("div#nav","small");
	Nifty("ul#nav h2","transparent tr br");
	Nifty("div#header,div#footer,div.footer_adsense","small");
	//Nifty("div.image","same-height transparent big tl tr bl br");
	Nifty("div.image","transparent big tl tr bl br");
	Nifty("div.forum_category","transparent tl tr bl br");
	
	expandText( -11 , 7 , 1 , 10 ) ;
}


function Vai(lnk,tg)
{
	if (tg=="s"||tg=="t")
	{
		lnko=lnk; 
		tgT=tg;
		setTimeout('rVai()',30);
	}
	else if (tg=="b")
	{
		pp = window.open(lnk,'','width='+BrW+',height='+BrH+',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes');
		pp.focus() ;
	}
	else if (tg=="p")
	{
		window.open(lnk,'','toolbar=no,location=no,scrollbars=yes,top=80,left=50,width=600,height=550');
	}
	else if (tg=="psa")
	{
		window.open(lnk,'','toolbar=no,location=no,scrollbars=yes,top=80,left=50,width=600,height=550');
	}
	else if (tg=="confirm")
	{
		window.open(lnk,'','toolbar=no,location=no,scrollbars=yes,top=200,left=400,width=400,height=100');
	}
	else if (tg!="" && tg!="s" && tg!="b" && tg!="p" && tg!="t")
	{
		top[tg].location.href=lnk;
	}
}

function rVai()
{
	if (tgT=='s')
	{
		self.location.href=lnko;
	}
	else
	{
		top.location.href=lnko;
	}
}

function show_hide_category( id )
{
	//background-image: url(/image/triangolo-up.png) ;
	//background-image: url(/image/triangolo-right1.png) ;
	
	if( document.getElementById( 'categoria'+id ).style.display == 'block' )
	{
		document.getElementById( 'categoria'+id ).style.display = 'none' ;
		document.getElementById('triangolo'+id).style.backgroundImage = 'url(/image/triangolo-up.png)' ;
	}
	else
	{
		document.getElementById( 'categoria'+id ).style.display = 'block' ;
		document.getElementById('triangolo'+id).style.backgroundImage = 'url(/image/triangolo-right1.png)' ;
	}
}

function forum_show_hide_category( id )
{
	document.getElementById( 'dettagli_cat_'+id ).style.display = 'block' ;
	last_show = document.getElementById( 'last_show' ).value ;
	
	document.getElementById( 'last_show' ).value = id ;
	
	if( last_show != 0 && last_show != id )
		document.getElementById( 'dettagli_cat_'+last_show ).style.display = 'none' ;
}
/*
function OverMenu(i)
{
	document.getElementById("selectedItem"+i).style.backgroundColor = "#fff" ;
	Nifty("div#selectedItem"+i, "tr br");
}

function OutMenu(i)
{
	document.getElementById("selectedItem"+i).style.backgroundColor = "#ff6ffd" ;
	document.getElementById("nav").style.backgroundColor = "#ff6ffd" ;
	//Nifty("div#selectedItem"+i, "tr br");
	//Nifty("div#nav","same-height small");
	//Nifty("ul#nav a","small transparent top");
}*/

//Nifty("div#content","same-height small");
//Nifty("div#nav","small");
//Nifty("div#content,div#menu","same-height small");

//Nifty("div#selectedItem1", "tr br");
//Nifty("div#selectedItem2", "tr br");
//Nifty("div#selectedItem3", "tr br");
//Nifty("div#selectedItem4", "tr br");
//Nifty("div#selectedItem5", "tr br");
//Nifty("div#selectedItem6", "tr br");
//Nifty("div#selectedItem7", "tr br");
