
js_ns = (navigator.appName=="Netscape");
js_ie = (navigator.appName == "Microsoft Internet Explorer");
js_ver = parseInt(navigator.appVersion);
js_ie4 = navigator.userAgent.indexOf('MSIE 4') > 0;
js_ie5 = navigator.userAgent.indexOf('MSIE 5') > 0;
js_ns4 = (js_ns&&parseInt(navigator.appVersion)==4);
js_ns5 = (js_ns&&parseInt(navigator.appVersion)==5);
js_v5 = (js_ie5||js_ns5);

var js_timerid = '';

function js_ps()
{
	return js_ss('Indicazioni e suggerimenti.');
}
function js_pb()
{
	return js_ss('Premi per acquistare.');
}
function js_pk()
{
	return js_ss('Premi per saperne di piu`.');
}

function js_ss(msg)
{
        window.status=msg;
        if ( navigator.userAgent.indexOf("Mozilla/2.0") == -1 )
        {
                if ( js_timerid != '' )
                        clearTimeout(js_timerid);
                if ( document.links[0].onmouseout == null )
                        js_timerid = setTimeout("js_cs()",3000);
        }
        return true;
}
function js_cs()
{
        window.status="";
        return true;
}



function js_sr() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function js_si() { //v3.0
  var i,j=0,x,a=js_si.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function js_s2() { //v3.0
  var i,j=0,x,a=js_s2.arguments;
   if ((x=MM_findObj(a[0]))!=null){x.src=a[1]}
}

function js_ti() { //v3.0
  var i,j=0,x,a=js_ti.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; x.nSrc=a[i+2];}
setTimeout("js_t_timer()",1000);
}

function js_t_timer() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.nSrc;i++) if(x.nSrc){if(!x.oSrc)x.oSrc=x.src;x.src=x.nSrc;}
}

function js_tr() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) {if(x.oSrc)x.src=x.oSrc;x.nSrc=null;}
}
function js_jump(url)
{
	if ( navigator.appName == "Microsoft Internet Explorer" )
		navigate(url);
	else
		window.location = url;
}
function js_bl(t)
{
	if ( t.blur )
		t.blur();
	return 1;
}
var scheda;
function js_p0()
{
	var i,args=js_p0.arguments;

	//	parametro mode:
	//		0x0
	//		0x1	buy
	//		0x2	void
	//		0x4	big
	//		0x8	know
	//
	i = 0;
	t = args[i++];
	mode = args[i++];
	img = args[i++];
	d = '<table border=0 cellspacing=1 cellpadding=3><tr><td class=scheda valign=top >';

	for (; i<args.length; i+=2)
	{
		k = args[i];
		v = args[i+1];
		if ( k != "" )
			d += '<span class=menulylw>'+k+':</span> '+v+'<br>';
		else
			d += v+'<br>';
	}
	d += '</td></tr></table>';

	if ( js_ie )
		{ x = event.x; y = document.body.scrollTop+event.y; }
	else if (js_ns4) {
		x = t.x;
		if ( x < 320 )
			x += 100;
		y = t.y;
	} else {
		x = t.offsetLeft;
		if ( x < 320 )
			x += t.offsetWidth;
		y = t.offsetTop;
	}
	if ( mode&0x8 )
		js_pk();
	else if ( mode&0x2 )
		js_cs();
	else if ( mode&0x1 )
		js_pb();
	else
		js_ps();
	js_sched_scheda(mode,x,y,img,d);
	return 1;
}
var	nx_mode;
var	nx_x;
var	nx_y;
var	nx_img;
var	nx_d;
var	nx_timerid = '';
function js_p1()
{
	if ( nx_timerid != '' )
		clearTimeout(nx_timerid);
	else
		js_close_scheda();
	js_cs();
	return 1;
}
function js_sched_scheda(mode,x,y,img,d)
{
	nx_mode = mode;
	nx_x = x;
	nx_y = y;
	nx_img = img;
	nx_d = d;
	nx_timerid = setTimeout("js_run_scheda()",100);
}
function js_run_scheda()
{
	nx_timerid = '';
	js_scheda(nx_mode,nx_x,nx_y,nx_img,nx_d);
}
function js_scheda(mode,x,y,img,d)
{
	w = 300;
	h = 200;	/* estimated */
	if ( x > 320 )
		x -= 300;
	if ( js_ie )
		{ dim = document.body.clientHeight; scr = document.body.scrollTop; }
	else
		{ dim = window.innerHeight; scr = window.pageYOffset; }
	if (js_ns4) {
		if ( scheda )
			scheda.document.close();
		scheda=new Layer(w);
		scheda.width=w;
		//scheda.height=h;
		if ( y+h-scr > dim )
		{
			y -= h;
		}
		scheda.top=y;
		scheda.left=x;
		scheda.clip.width=w;
		//scheda.clip.height=h;
		//scheda.bgColor="red";
		//scheda.document.clear();
		scheda.document.write(d);
		scheda.visibility="show";
	} else if (js_ie4) {
		;
	} else if (document.createElement && document.body.style) {
		scheda = document.getElementById("scheda");
		ftime = 0;
		if ( !scheda )
		{
			//scheda.removeNode(true);
			//scheda = null;
			scheda=document.createElement("DIV");
			scheda.id = 'scheda';
			ftime = 1;
		}
		scheda.style.position="absolute";
		scheda.style.width=w+"px";
		scheda.innerHTML=d;
		scheda.style.left=x+"px";
		scheda.style.top=y+"px";
		if ( ftime )
			document.body.appendChild(scheda);
		scheda.style.display = '';
		if ( js_ns5 )
		{
			if ( y+scheda.offsetHeight-scr > dim )
			{
				y -= scheda.offsetHeight;
				scheda.style.top=y+"px";
			}
		} else {
			if ( y+scheda.clientHeight-scr > dim )
			{
				y -= scheda.clientHeight;
				scheda.style.top=y+"px";
			}
		}
	}
}
function js_close_scheda()
{
	if (js_ns4) {
		if ( scheda )
			scheda.visibility = "hidden";
	} else if (!js_ie4 && document.createElement && document.body.style) {
		t = document.getElementById("scheda");
		if ( t )
			t.style.display = 'none';
	}
}
function js_wopen(target,name,pars)
{
	window.open(target,name,pars);
	return void(0);
}
function js_sifcr(event,form)
{
	//alert(show_props(event));
	if (event && event.which == 13)
	{
		form.submit();
		return false;
	}
	else if ( event && event.keyCode == 13 )
	{
		form.submit();
		return false;
	}
	else
	{
		return true;
	}
}

