var totCookiesBS = 0;

/*  Delete Cookies Search History  */
function DelSearchHistory(cookieId) {
	var cookie_name = 'searchistory'+ cookieId;
	var cookie_date = new Date ( );
	cookie_date.setTime ( cookie_date.getTime() - 1 );
	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
	document.getElementById('searchistory'+ cookieId).style.display='none';
	totCookiesBS--;
	if(totCookiesBS==0){
		document.getElementById('ricerche_effettuate').style.display='none';
	}
}


var conto=0;
var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;

d = document;
n = navigator;
na = n.appVersion;
nua = n.userAgent;
win = ( na.indexOf( 'Win' ) != -1 );
mac = ( na.indexOf( 'Mac' ) != -1 );
lin = ( nua.indexOf( 'Linux' ) != -1 );

if ( !d.layers ){
	dom = ( d.getElementById );
	op = ( nua.indexOf( 'Opera' ) != -1 );
	konq = ( nua.indexOf( 'Konqueror' ) != -1 );
	saf = ( nua.indexOf( 'Safari' ) != -1 );
	moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq);
	ie = ( d.all && !op );
	ie4 = ( ie && !dom );

	/*
	ie5x tests only for functionality. ( dom||ie5x ) would be default settings. 
	Opera will register true in this test if set to identify as IE 5
	*/

	ie5x = ( d.all && dom );
	ie5mac = ( mac && ie5x );
	ie5xwin = ( win && ie5x );
}
function approva(numr) {
	document.getElementById('clic'+numr).innerHTML='<font color=#CC00CC>&nbsp;&nbsp;(Sito Visitato)<\/font>';
	conto++;
	if(conto==2)
		document.getElementById('dovevuoi').innerHTML='';
		
}

/* rollover link serp 
function Brand_add_underline(idbrand){
    document.getElementById(idbrand).style.textDecoration='underline';
}
function Brand_no_underline(idbrand){
    document.getElementById(idbrand).style.textDecoration='none';
}

function Prod_add_underline(idprod){
    document.getElementById(idprod).style.textDecoration='underline';
}
function Prod_no_underline(idprod){
    document.getElementById(idprod).style.textDecoration='none';
}
*/


