<!-- 
function addslashes(str) {
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	return str;
}
// importato da adserver - start
document.writeln('<div id="advosl_quickinfodiv" style="position:absolute; left:0; top:0; width:200; visibility:hidden"></div>');

/*arc commentato il ramo if per il controllo sul mac
if (navigator.platform=="MacPPC-arc")
	{advosl_HideInfo();}
else
{
*/
advosl_qidiv = document.getElementById("advosl_quickinfodiv");
function advosl_descr(advosl_str){
		var advosl_off=advosl_str.indexOf(". ");
		if (advosl_off > 0)
			{advosl_str = advosl_str.substr(0,advosl_off+1)}
		if(advosl_str.length>= descr_maxchar)
			{
			advosl_str=advosl_str.substr(0,descr_maxchar-4);
			advosl_off=advosl_str.lastIndexOf(" ");
			if (advosl_off > 90)
				{advosl_str = advosl_str.substr(0,advosl_off)}
			advosl_str += "...";
			}
		document.writeln(advosl_str)
		//document.writeln(navigator.appName)
	}
function advosl_ShowInfo(text, e)
{
    input  = "<table width="+advosl_qiwidth+" border=0 cellpadding=1 cellspacing=0 class=\"spd_TableBorderAlert\" ><tr><td><table width=\"100%\" border=0 cellpadding=3 cellspacing=0 class=\"spd_TableBodyAlert\" ><tr><td class=\"spdAlert\">"+text+"</td></tr></table></td></tr></table>";
    advosl_qidiv.innerHTML = input;
	if(navigator.appName.indexOf("Netscape") != -1 || navigator.appName.indexOf("Mozilla") != -1)
    {
	  advosl_qidiv.style.top   = e.pageY + 20;
      xpos = e.pageX - (advosl_qiwidth/2);
      if(xpos<0) xpos=0;
      else if(xpos>(window.innerWidth-advosl_qiwidth-20)) xpos = window.innerWidth-advosl_qiwidth-20;
      advosl_qidiv.style.left  = xpos;
    }
    else
    {
      advosl_qidiv.style.top   = document.body.scrollTop + event.y + 20;
      xpos = document.body.scrollLeft + event.x - (advosl_qiwidth/2);
      if(xpos<0) xpos=0;
      else if(xpos>(document.body.clientWidth-advosl_qiwidth-10)) xpos = document.body.clientWidth-advosl_qiwidth-10;
      advosl_qidiv.style.left  = xpos;
    }
    advosl_qidiv.style.visibility = "visible";
}
function advosl_HideInfo()
{
    advosl_qidiv.style.visibility = "hidden";
}
function advosl_count(advosl_str){
		var advosl_newstr=advosl_str.substr(0,4);
		var advosl_count;
		if (advosl_newstr == 'www.')			{advosl_str = advosl_str.substr(4,advosl_str.length)}
		advosl_newstr=advosl_str;
		advosl_count = advosl_str.length
		if(advosl_count>=host_maxchar)			{advosl_newstr=advosl_str.substr(0,host_maxchar - 4)+"..."}
		document.write(advosl_newstr)
	}
// } arc commentato il ramo if per il controllo sul mac

// importato da adserver - end
// funzione ShowListings Yahoo - start
<!-- Define ShowListings function that processes Content Match 2 results  -->
function ShowListings() {
	var i=6; 
	
	var spd_ricevuti = (zSr.length / 6) -1;
	
	if (advosl_align=="horizontal"){
		var larghezza = advosl_width / spd_ricevuti;
		var style_div = 'float: left; width:' + larghezza + 'px;';
	}else{
		var style_div = 'clear:both;';		
		if (advosl_width != undefined )  style_div = style_div + 'width:'+ advosl_width+ 'px;';
	}
	
	while (i < zSr.length) {
		var descr = addslashes(zSr[i++]); // listing description
		var unused1 = zSr[i++]; // (ignore)
		var clickURL = zSr[i++]; // listing link
		var title = zSr[i++]; // listing title
		var sitehost = zSr[i++]; // advertisers domain name
		var unused2 = zSr[i++]; // (ignore)
		
		
		document.writeln('<div class="spdBoxType" style="' + style_div + '" onclick="return popup(\'' + clickURL + '\');">');
		var style_title_color="";
		var style_descr_color="";
		var style_host_color="";
		if (advosl_title_color!= undefined) style_title_color = 'style="color: '+ advosl_title_color+';"';
		if (advosl_descr_color!= undefined) style_descr_color = 'style="color: '+ advosl_descr_color+';"';
		if (advosl_host_color!= undefined) style_host_color = 'style="color: '+ advosl_host_color+';"';
		
		if (ShowAlert==1){
			document.writeln('<div class="spdLink" '+ style_title_color+' ><A  href="' + clickURL + '"  target="_new" class="spdTitle" onMouseOver="advosl_ShowInfo(&quot;' + descr + '&quot;, event)" onMouseOut="advosl_HideInfo();" onFocus="this.blur();">' + title + '</A></div>');
		}else{
			document.writeln('<div class="spdLink" '+ style_title_color+' ><A  href="' + clickURL + '"  target="_new" class="spdTitle" >' + title + '</A></div>');
		}
		document.writeln('<div class="spdDescr" '+ style_descr_color+'  ><script language="Javascript">advosl_descr(\'' + descr + '\')</scri'+'pt></div>');
		document.writeln('<div class="spdHost" '+ style_host_color+'  ><script language="Javascript">advosl_count(\'' + sitehost + '\')</scri'+'pt></div>');
		document.writeln('</div>');
	}
	
}
// funzione ShowListings Yahoo - end	



var nn_win=0;
function popup(openurl) {	
  
  if (nn_win) if (nn_win.close) nn_win.close();
  nn_win=0;

  nn_win = window.open (openurl, 'popup');  
  if (nn_win.focus) nn_win.focus();
  return false;
}


//conf

var Mytype;
var MyctxtId;
var MyctxtKeywords; 
var MymaxCount;

var ShowAlert;	
var advosl_align;
var advosl_width; 
var advosl_qiwidth;
var descr_maxchar;
var host_maxchar;

var advosl_title_color;
var advosl_descr_color;
var advosl_host_color;

//costanti
var Myt = Math.floor(Math.random() * 100000);   
var MyctxtUrl=escape(document.location.href); 
var Mymkt="it";
var Mysource="libero_js_it_ctxt_libero"; 
var Myconfig="9552172970";  
var MyoutputCharEnc="latin1";

var Mycb=(new Date()).getTime();


var MyRichiesta = '<SCR'+'IPT type="text/javascript" language="Javascript" SRC="http://cm.it.overture.com/js_flat_1_0/?mkt='+Mymkt+'&maxCount='+MymaxCount+'&source='+Mysource+'&config='+Myconfig+'&outputCharEnc='+MyoutputCharEnc+ '&type='+Mytype;//+'&t='+Myt;

if (MyctxtId!="" && MyctxtId!=undefined ){MyRichiesta = MyRichiesta + '&ctxtId='+MyctxtId;}
MyRichiesta = MyRichiesta +'&cb='+Mycb;
if (MyctxtKeywords!="" && MyctxtKeywords!=undefined  ) { MyctxtKeywords=escape(MyctxtKeywords); MyRichiesta = MyRichiesta +'&ctxtKeywords='+MyctxtKeywords;}

	
	
MyRichiesta = MyRichiesta +'&ctxtUrl='+MyctxtUrl+'"></SCR'+'IPT>';

document.write(MyRichiesta);



//-->;

