
/* This source code is Copyright (c) eDintorni europe srl 2004-2010 */
var ed_k = 0;
var ed_I_Key = new Array();
var ed_I_Title = new Array();
var ed_I_Description = new Array();
var ed_I_Url = new Array();
var ed_I_Redir = new Array();
var ed_I_TextLinkActive = new Array();
var ed_I_Modality = new Array();
var ed_Key;
var ed_Title;
var ed_Description;
var ed_Url;
var ed_Redir;
var ed_KeyCount;
var ed_TextLinkActive;
var ed_Modality;
var ed_EdNoIndex = "EdNoIndex";
var ed_EdIndex = "EdIndex";
var ed_Include = true;
var ed_KeyFound = 0;
var ed_timerID;
var ed_JustLoad;
String.prototype.ed_RTrim = function(){return this.replace(/\s+$/,"");}
String.prototype.ed_LTrim = function(){return this.replace(/^\s+/,"");}
String.prototype.ed_Clean = function(){return this.replace(/[,:;!&@#=%/<>_\'\"~\-\]\}\$\(\)\*\+\.\[\?\\\^\{\|\n\r\f\t\v]/g," ");}
// ----- parameter -----
var ed_KeyHref = false;
var ed_KeyMatch = 5;
var ed_Underline = 1;
var ed_Slogan = "ADV by eDintorni"
var ed_SloganExtended = "Sponsor Link By eDintorni"
var ed_SloganLink = "http://www.edintorni.net/it/"
var ed_DivColor = "#FFFFE0";
var ed_DivBorderColor = "#808080";
var ed_TitleColor = "#0000CC";
var ed_DescriptionColor = "#000000";
var ed_UrlColor = "#000000";
var ed_TextLinkFontColor = "#008000";
var ed_SloganColor = "#000000";

ed_I_Key[0] = "eiaculazione precoce";
ed_I_Title[0] = "Eiaculazione Precoce? Io";
ed_I_Description[0] = "Queste tecniche Segrete Solo 27 Cambieranno La Tua Vita. Scaricalo";
ed_I_Url[0] = "www.eiaculazionecontrolla";
ed_I_Redir[0] = "http://adv.edintorni.net/click/?mo=T&ky=eiaculazione+precoce&af=5012&ct=it&rf=http%3A%2F%2Fwww%2Evoceditalia%2Eit%2Farticolo%2Easp%3Fid%3D61425%26titolo%3DEiaculazione+precoce%2C+ne+soffrono+4+milioni+di+italiani&re=&ts=1292407752156&hs=acfd67b207a23cf087ea3da624c9085b";

ed_I_TextLinkActive[0] = true;

ed_I_Modality[0] = "A";

ed_I_Key[1] = "eiaculazione";
ed_I_Title[1] = "Com' la Tua Erezione?";
ed_I_Description[1] = "Migliora e Sorprendi Ogni Conquista Estiva.";
ed_I_Url[1] = "it.wrerections.com/erezio";
ed_I_Redir[1] = "http://adv.edintorni.net/click/?mo=T&ky=eiaculazione&af=5012&ct=it&rf=http%3A%2F%2Fwww%2Evoceditalia%2Eit%2Farticolo%2Easp%3Fid%3D61425%26titolo%3DEiaculazione+precoce%2C+ne+soffrono+4+milioni+di+italiani&re=&ts=1292407752156&hs=f98563091e2823e86b1c68c24297f525";

ed_I_TextLinkActive[1] = true;

ed_I_Modality[1] = "A";

ed_I_Key[2] = "coppia";
ed_I_Title[2] = "Sei single?";
ed_I_Description[2] = "Trova il tuo partner ideale su Meetic!Iscriviti ora, gratis";
ed_I_Url[2] = "www.meetic.it";
ed_I_Redir[2] = "http://adv.edintorni.net/click/?mo=T&ky=coppia&af=5012&ct=it&rf=http%3A%2F%2Fwww%2Evoceditalia%2Eit%2Farticolo%2Easp%3Fid%3D61425%26titolo%3DEiaculazione+precoce%2C+ne+soffrono+4+milioni+di+italiani&re=&ts=1292407752156&hs=e1701d899de10e90b2706c41b87898c0";

ed_I_TextLinkActive[2] = false;

ed_I_Modality[2] = "A";

ed_I_Key[3] = "difficolt";
ed_I_Title[3] = "Lavoro";
ed_I_Description[3] = "";
ed_I_Url[3] = "";
ed_I_Redir[3] = "http://adv.edintorni.net/click/?mo=T&ky=imprese+in+difficolt%E0&af=5012&ct=it&rf=http%3A%2F%2Fwww%2Evoceditalia%2Eit%2Farticolo%2Easp%3Fid%3D61425%26titolo%3DEiaculazione+precoce%2C+ne+soffrono+4+milioni+di+italiani&re=&ts=1292407752156&hs=52734b8c9fbb0336c1100bf917eb4c7d";

ed_I_TextLinkActive[3] = true;

ed_I_Modality[3] = "L";

ed_I_Key[4] = "andrologo";
ed_I_Title[4] = "Home";
ed_I_Description[4] = "";
ed_I_Url[4] = "";
ed_I_Redir[4] = "http://adv.edintorni.net/click/?mo=T&ky=andrologo&af=5012&ct=it&rf=http%3A%2F%2Fwww%2Evoceditalia%2Eit%2Farticolo%2Easp%3Fid%3D61425%26titolo%3DEiaculazione+precoce%2C+ne+soffrono+4+milioni+di+italiani&re=&ts=1292407752156&hs=bbe51dec0a2069557f66d5368ec4102a";

ed_I_TextLinkActive[4] = true;

ed_I_Modality[4] = "L";

// ----- parameter -----
if (window.open == false)
{
try
{
if (ed_OpenObject)
window.open = ed_OpenObject;
}
catch (err)
{
window.open = function(ed_HrefLocation){window.location.href = ed_HrefLocation; return true;}
}
}
if (!ed_JustLoad)
{
ed_JustLoad = true;
ed_Key = new Array();
ed_Title = new Array();
ed_Description = new Array();
ed_Url = new Array();
ed_Redir = new Array();
ed_KeyCount = new Array();
ed_TextLinkActive = new Array();
ed_Modality = new Array();
ed_Key = ed_I_Key;
ed_Title = ed_I_Title;
ed_Description = ed_I_Description;
ed_Url = ed_I_Url;
ed_Redir = ed_I_Redir;
ed_TextLinkActive = ed_I_TextLinkActive;
ed_Modality = ed_I_Modality;
ed_PrepareKeyArray(ed_getMetaTag("edstopword"));
if (document.body.innerHTML.indexOf("<" + ed_EdIndex + ">", 0) != -1)
ed_Include = false;
ed_FindWords_1(document.body);
}
function ed_getMetaTag(ed_MetaTag)
{
var ed_i = 0;
var ed_Meta = "";
var ed_Content = "";
ed_Meta = document.getElementsByTagName("meta");
for(ed_i = 0; ed_i < ed_Meta.length; ed_i++)
{
if(ed_Meta[ed_i].name.toLowerCase() == ed_MetaTag.toLowerCase())
ed_Content = " " + ed_Meta[ed_i].content.ed_Clean().toLowerCase() + " ";
}
return ed_Content;
}
function ed_PrepareKeyArray(ed_StopWord)
{
var ed_i = 0;
var ed_Tag = "";
for(ed_k = 0; ed_k < ed_Key.length; ed_k++)
{
/* if (ed_Key[ed_k].substr(0,2) == "! ")
ed_TextLinkActive[ed_k] = false;
else
ed_TextLinkActive[ed_k] = true;
*/
ed_Key[ed_k] = ed_Key[ed_k].ed_Clean().toLowerCase().ed_RTrim().ed_LTrim().split(" ");
if (ed_StopWord != "")
{
for (ed_i =0; ed_i < ed_Key[ed_k].length; ed_i++)
{
if (ed_Key[ed_k][ed_i] != "")
{
if (String(" " + ed_StopWord + " ").indexOf(String(" " + ed_Key[ed_k][ed_i] + " "), 0) != -1)
ed_Key[ed_k][ed_i] = "";
}
}
}
}
}
function ed_FindWords_1(ed_Node)
{
var ed_i = 0;
var ed_newNode;
var ed_Tag = "";
for(ed_i = 0; ed_i < ed_Node.childNodes.length; ed_i++)
{
if (ed_KeyFound >= ed_KeyMatch)
return;
try
{
if (ed_Node.childNodes[ed_i].nodeType == 8)
ed_Tag = new String(ed_Node.childNodes[ed_i].nodeValue).ed_LTrim().ed_RTrim();
}
catch (err){}
if (ed_Node.childNodes[ed_i].nodeType == 8 && ed_Tag == ("<" + ed_EdNoIndex + ">"))
ed_Include = false;
if (ed_Node.childNodes[ed_i].nodeType == 8 && ed_Tag == ("</" + ed_EdNoIndex + ">"))
ed_Include = true;
if (ed_Node.childNodes[ed_i].nodeType == 8 && ed_Tag == ("<" + ed_EdIndex + ">"))
ed_Include = true;
if (ed_Node.childNodes[ed_i].nodeType == 8 && ed_Tag == ("</" + ed_EdIndex + ">"))
ed_Include = false;
if (ed_Node.childNodes[ed_i].nodeType == 3 && ed_Include)
ed_newNode = ed_FindWords_2(ed_Node.childNodes[ed_i]);
else
ed_newNode = ed_Node.childNodes[ed_i];
ed_FindWords_1(ed_newNode);
}
}
function ed_FindWords_2(ed_Node)
{
var ed_x = 0;
var ed_y = 0;
var ed_Text = ed_Node.nodeValue.ed_Clean().split(" ");
for(ed_x = 0; ed_x < ed_Text.length; ed_x++)
{
if (ed_Text[ed_x] > "")
{
for(ed_k = 0; ed_k < ed_Key.length; ed_k++)
{
for(ed_y = 0; ed_y < ed_Key[ed_k].length; ed_y++)
{
if (ed_Key[ed_k][ed_y] > "")
{
if ((ed_Text[ed_x].toLowerCase() == ed_Key[ed_k][ed_y]) && ((ed_Key[ed_k].length == 1 && ed_Key[ed_k].length != ed_KeyCount[ed_k]) || ed_Key[ed_k].length != 1))
{
ed_Node = ed_CreateLink(ed_Node, ed_k, ed_Text[ed_x]);
return ed_Node;
}
}
}
}
}
}
return ed_Node;
}
function ed_CreateLink(ed_Node, ed_k, ed_Word)
{
var ed_Position = null;
var ed_Start = 0;
var ed_Stop = 0;
var ed_Text = "";
var ed_parentNode = ed_getParentNode(ed_Node);
var ed_Href = ((ed_parentNode != null && ed_isHref(ed_parentNode)) || ed_isHref(ed_Node));
if (ed_Node.parentNode == null)
return ed_Node;
if (ed_Href && ed_KeyHref == false)
return ed_Node;
if (ed_KeyFound >= ed_KeyMatch)
return ed_Node;
if (ed_Node.parentNode.onmouseover != null && ed_Node.parentNode.onmouseout != null)
return ed_Node;
if (ed_Node.parentNode.nodeName.toLowerCase() == "a" && ed_Node.parentNode.title != "")
return ed_Node;
if (ed_Node.parentNode.getAttribute("ed_Created") == "1")
return ed_Node;
if (ed_Key[ed_k].length == 1 && ed_Key[ed_k].length == ed_KeyCount[ed_k])
return ed_Node;
ed_Text = ed_Node.nodeValue;
ed_Position = String(" " + ed_Text.ed_Clean() + " ").indexOf(String(" " + ed_Word + " "), 0)
if (ed_Position != -1)
{
ed_KeyFound++;
if (ed_KeyCount[ed_k]==null)
ed_KeyCount[ed_k]=0;
ed_KeyCount[ed_k]++;
ed_Start = (ed_Position + ed_Word.length);
ed_Stop = (ed_Text.length - ed_Start);
if(ed_Position == 0)
{
ed_Node.parentNode.insertBefore(ed_CreateTagLink(false, ed_parentNode, ed_Word, "", ed_KeyFound, ed_k), ed_Node);
ed_Node.parentNode.replaceChild(ed_CreateTagLink(true, null, "", ed_Text.substr(ed_Start, ed_Stop), null, null), ed_Node);
}
else
{
ed_Node.parentNode.insertBefore(ed_CreateTagLink(true, null, "", ed_Text.substr(0, ed_Position), null, null), ed_Node);
ed_Node.parentNode.insertBefore(ed_CreateTagLink(false, ed_parentNode, ed_Word, "", ed_KeyFound, ed_k), ed_Node);
ed_Node.parentNode.replaceChild(ed_CreateTagLink(true, null, "", ed_Text.substr(ed_Start, ed_Stop), null, null), ed_Node);
}
}
return ed_Node;
}
function ed_isHref(ed_Node)
{
var ed_Href = false;
if(ed_Node != null)
{
if(ed_Node.nodeName.toLowerCase() == "a" && ed_Node.href.length != 0)
{
ed_Href = true;
}
}
return ed_Href;
}
function ed_getParentNode(ed_Node)
{
var ed_parentNode = ed_Node.parentNode;
if(ed_parentNode == null)
return null;
while(ed_parentNode.parentNode != null)
{
if(ed_parentNode.nodeName.toLowerCase() != "a")
ed_parentNode = ed_parentNode.parentNode;
else
return ed_parentNode;
}
return null;
}
function ed_CreateTagLink(ed_isTextNode, ed_parentNode, ed_Word, ed_textNode, ed_Id, ed_k)
{
var ed_newNode = null;
var ed_Type = (ed_parentNode != null && ed_parentNode!= "" ? "span" : "a");
if(!ed_isTextNode)
{
ed_newNode = document.createElement(ed_Type);
ed_newNode = ed_DecorateNode(ed_newNode, ed_k);
ed_newNode.appendChild(document.createTextNode(ed_Word));
ed_newNode.id = "ed_Id_" + ed_Id;
ed_newNode.style.textdecoration = "none";
return ed_newNode;
}
return document.createTextNode(ed_textNode);
}
function ed_DecorateNode(ed_Node, ed_k)
{
if(ed_Node != null)
{
/* if (ed_Underline == 0 || ed_Node.nodeName.toLowerCase() == "span")
{
ed_Node.style.borderBottom = "none";
ed_Node.style.textDecoration = "underline";
}
else
{
ed_Node.style.textDecoration = "none";
ed_Node.style.borderBottom = ed_TextLinkFontColor + " 3px double";
}
*/
if (ed_Underline < 1)
{
ed_Node.style.borderBottom = "none";
ed_Node.style.textDecoration = "none";
}
if (ed_Underline == 1)
{
ed_Node.style.borderBottom = "none";
ed_Node.style.textDecoration = "underline";
}
if (ed_Underline > 1)
{
ed_Node.style.textDecoration = "none";
ed_Node.style.borderBottom = ed_TextLinkFontColor + " 3px double";
}
if (ed_Modality[ed_k] == "L")
{
ed_Node.onmouseover = function (event){window.status = ed_SloganExtended; return true;}
}
else
{
ed_Node.onmouseover = function (event){window.status = ed_Url[ed_k]; ed_OpenTip(ed_Node, event, ed_k); return true;}
ed_Node.onmouseout = function (){ed_SetTime();}
}
ed_Node.setAttribute("ed_Created", "1");
ed_Node.style.color = ed_TextLinkFontColor;
if (!ed_TextLinkActive[ed_k] || ed_Node.nodeName.toLowerCase() == "span")
ed_Node.style.cursor = "pointer";
else
{
// ed_Node.style.cursor = "pointer";
ed_Node.href = ed_Redir[ed_k];
ed_Node.target = "_blank";
if (ed_Modality[ed_k] == "L")
ed_Node.title = ed_SloganExtended;
}
}
return ed_Node;
}

function ed_OpenTip(ed_Node, event, ed_k)
{
ed_ClearTime();
ed_HideTip();
var ed_DivWidth = 0;
var ed_DivHeight = 0;
var ed_Distance = 20;
var ed_Pos_Top = 0;
var ed_Pos_Width = 0;
var ed_Pos_Height = 0;
var IE = document.all?true:false;
var ed_Div = document.getElementById("ed_Div_1");
ed_DivWidth = 200;
if (ed_StringHeight(ed_Description[ed_k], 9, false, 186) == 9)
ed_DivHeight = 74;
else
{
if (ed_StringHeight(ed_Description[ed_k], 9, false, 186) > 18)
ed_DivHeight = 100;
else
ed_DivHeight = 87;
}
if (ed_Div != null)
ed_Div.parentNode.removeChild(ed_Div);
ed_Div = ed_CreateElement(ed_k, ed_DivWidth, ed_DivHeight);
// ed_Node.parentNode.insertBefore(ed_Div, ed_Node);
//----
if (ed_Div != null)
{
ed_Pos_Top = 0;
if (document.documentElement)
{
if (document.documentElement.scrollTop)
ed_Pos_Top = document.documentElement.scrollTop;
else
if (document.body.scrollTop)
ed_Pos_Top = document.body.scrollTop;
if (window.innerHeight)
ed_Pos_Height = window.innerHeight;
else
if (document.documentElement.clientHeight)
ed_Pos_Height = document.documentElement.clientHeight;
else
ed_Pos_Height = document.body.clientHeight;
if (window.innerWidth)
ed_Pos_Width = window.innerWidth;
else
if (document.documentElement.clientWidth)
ed_Pos_Width = document.documentElement.clientWidth;
else
ed_Pos_Width = document.body.clientWidth;
}
else
{
if (document.body.scrollTop)
ed_Pos_Top = document.body.scrollTop;
if (window.innerWidth)
ed_Pos_Width = window.innerWidth;
else
ed_Pos_Width = document.body.clientWidth;
if (window.innerHeight)
ed_Pos_Height = window.innerHeight;
else
ed_Pos_Height = document.body.clientHeight;
}
if (!IE)
{
if (event.clientY < (ed_Pos_Height / 2))
ed_Div.style.top = (event.clientY + ed_Pos_Top + ed_Distance) + "px";
else
ed_Div.style.top = (event.clientY + ed_Pos_Top - ed_Distance - ed_DivHeight) + "px";
}
else
{
if (window.event.clientY < (ed_Pos_Height / 2))
ed_Div.style.top = (window.event.clientY + ed_Pos_Top + ed_Distance) + "px";
else
ed_Div.style.top = (window.event.clientY + ed_Pos_Top - ed_Distance - ed_DivHeight) + "px";
}
var ed_PosX = ed_findPosX(ed_Node);
if (ed_PosX < (ed_Pos_Width / 2))
ed_Div.style.left = (ed_PosX) + "px";
else
ed_Div.style.left = ((ed_PosX + ed_Node.offsetWidth) - ed_DivWidth) + "px";
ed_Div.style.display = "inline";
window.status = ed_Url[ed_k];
return true;
}
}
function ed_findPosX(ed_Node)
{
var ed_curLeft = 0;
if (ed_Node.offsetParent)
{
while (ed_Node.offsetParent)
{
ed_curLeft += ed_Node.offsetLeft;
ed_Node = ed_Node.offsetParent;
}
}
else
{
if (ed_Node.x)
ed_curLeft += ed_Node.x;
}
return ed_curLeft;
}
function ed_CreateElement(ed_k, ed_DivWidth, ed_DivHeight)
{
var ed_Div = document.createElement("div");
ed_Div.id = "ed_Div_1";
ed_Div.style.width = ed_DivWidth + "px";
ed_Div.style.height = ed_DivHeight + "px";
ed_Div.style.textAlign = "left";
ed_Div.style.position = "absolute";
ed_Div.style.display = "none";
ed_Div.style.zIndex = "1000";
ed_Div.style.background = ed_DivBorderColor;
ed_Div.onmouseover = function (){ed_ClearTime(); this.style.display = "inline";}
ed_Div.onmouseout = function (){ed_SetTime(); /* ed_HideTip(); */}
//Gestione Div Border
var ed_DivBorder = document.createElement("div");
ed_DivBorder.style.width = (ed_DivWidth -2) + "px";
ed_DivBorder.style.height = (ed_DivHeight -2) + "px";
ed_DivBorder.style.left = "1px";
ed_DivBorder.style.top = "1px";
ed_DivBorder.style.position = "absolute";
ed_DivBorder.style.background = ed_DivColor;
//Gestione Div Container
var ed_DivInside = document.createElement("div");
ed_DivInside.style.width = (ed_DivWidth -12) + "px";
ed_DivInside.style.height = (ed_DivHeight -12) + "px";
ed_DivInside.style.left = "5px";
ed_DivInside.style.top = "5px";
ed_DivInside.style.textAlign = "left";
ed_DivInside.style.position = "absolute";
//Gestione Parag
var ed_DivParag = document.createElement("span");
ed_DivParag.style.top = "0px";
ed_DivParag.style.width = (ed_DivWidth -32) + "px";
ed_DivParag.style.height = "16px";
ed_DivParag.style.position = "absolute";
// ed_DivParag.onclick = function(){window.open(ed_SloganLink);}
ed_DivParag.onclick = function(){window.open(ed_Redir[ed_k]);}
ed_DivParag.style.cursor = "default";
ed_DivParag.style.fontSize = "10px";
ed_DivParag.style.lineHeight = "12px";
//Gestione Sponsor Link
var ed_F_SLink = document.createElement("font");
ed_F_SLink.style.fontSize = "10px";
ed_F_SLink.style.fontFamily = "Verdana";
ed_F_SLink.style.fontVariant = "Normal";
ed_F_SLink.style.fontWeight = "Normal";
ed_F_SLink.style.color = ed_SloganColor;
ed_F_SLink.appendChild(document.createTextNode(ed_unescapeHTML(ed_Slogan)));
ed_DivParag.appendChild(ed_F_SLink);
ed_DivInside.appendChild(ed_DivParag);
//Gestione Parag
var ed_DivParag = document.createElement("span");
ed_DivParag.style.top = "0px";
ed_DivParag.style.left = (ed_DivWidth -32) + "px";
ed_DivParag.style.height = "16px";
ed_DivParag.style.position = "absolute";
ed_DivParag.onclick = function(){window.open(ed_SloganLink);}
ed_DivParag.style.cursor = "help";
ed_DivParag.style.fontSize = "09px";
ed_DivParag.style.lineHeight = "12px";
//Gestione Sponsor Link
var ed_F_SLink = document.createElement("font");
ed_F_SLink.style.fontSize = "09px";
ed_F_SLink.style.fontFamily = "Verdana";
ed_F_SLink.style.fontVariant = "Normal";
ed_F_SLink.style.fontWeight = "Normal";
ed_F_SLink.style.color = ed_SloganColor;
ed_F_SLink.appendChild(document.createTextNode("<?>"));
ed_DivParag.appendChild(ed_F_SLink);
ed_DivInside.appendChild(ed_DivParag);
//Gestione Parag
var ed_DivParag = document.createElement("div");
ed_DivParag.style.top = "16px";
ed_DivParag.style.width = (ed_DivWidth -12) + "px";
ed_DivParag.style.height = (ed_DivHeight -39) + "px";
ed_DivParag.style.position = "absolute";
ed_DivParag.onclick = function(){window.open(ed_Redir[ed_k]);}
ed_DivParag.style.cursor = "pointer";
ed_DivParag.style.fontSize = "11px";
ed_DivParag.style.lineHeight = "13px";
//Gestione Title
var ed_F_Title = document.createElement("font");
var ed_p = 0;
for(ed_p = 11; ed_StringHeight(ed_Title[ed_k], ed_p, true, 186) > ed_p && ed_p > 0; ed_p--);
ed_F_Title.style.fontSize = ed_p + "px";
ed_F_Title.style.fontFamily = "Verdana";
ed_F_Title.style.fontVariant = "Normal";
ed_F_Title.style.fontWeight = "Bold";
ed_F_Title.style.textDecoration = "Underline";
ed_F_Title.style.color = ed_TitleColor;
ed_F_Title.appendChild(document.createTextNode(ed_unescapeHTML(ed_Title[ed_k])));
ed_DivParag.appendChild(ed_F_Title);
ed_DivParag.appendChild(document.createElement("br"));
//Gestione Description
var ed_F_Description = document.createElement("font");
var ed_r = 0;
if (ed_StringHeight(ed_Description[ed_k], 9, false, 186) == 9)
ed_r = 1;
else
{
if (ed_StringHeight(ed_Description[ed_k], 9, false, 186) > 18)
ed_r = 3;
else
ed_r = 2;
}
ed_p = 0;
for(ed_p = 10; ed_StringHeight(ed_Description[ed_k], ed_p, false, 186) > (ed_p * ed_r) && ed_p > 0; ed_p--);
ed_F_Description.style.fontSize = ed_p + "px";
ed_F_Description.style.fontFamily = "Verdana";
ed_F_Description.style.fontVariant = "Normal";
ed_F_Description.style.fontWeight = "Normal";
ed_F_Description.style.lineHeight = "13px";
ed_F_Description.style.color = ed_DescriptionColor;
ed_F_Description.appendChild(document.createTextNode(ed_unescapeHTML(ed_Description[ed_k])));
ed_DivParag.appendChild(ed_F_Description);
ed_DivInside.appendChild(ed_DivParag);
//Gestione Parag
var ed_DivParag = document.createElement("div");
ed_DivParag.style.height = "12px";
ed_DivParag.style.width = (ed_DivWidth -12) + "px";
ed_DivParag.style.top = (ed_DivHeight -23) + "px";
ed_DivParag.style.position = "absolute";
ed_DivParag.onclick = function(){window.open(ed_Redir[ed_k]);}
ed_DivParag.style.cursor = "pointer";
ed_DivParag.style.fontSize = "10px";
ed_DivParag.style.lineHeight = "12px";
//Gestione Url
var ed_F_Url = document.createElement("font");
ed_p = 0;
for(ed_p = 10; ed_StringHeight(ed_Url[ed_k], ed_p, false, 186) > ed_p && ed_p > 0; ed_p--);
ed_F_Url.style.fontSize = ed_p + "px";
ed_F_Url.style.fontFamily = "Verdana";
ed_F_Url.style.fontVariant = "Normal";
ed_F_Url.style.fontWeight = "Normal";
ed_F_Url.style.color = ed_UrlColor;
ed_F_Url.appendChild(document.createTextNode(ed_Url[ed_k]));
ed_DivParag.appendChild(ed_F_Url);
ed_DivInside.appendChild(ed_DivParag);
ed_DivBorder.appendChild(ed_DivInside);
ed_Div.appendChild(ed_DivBorder);
if (!document.body)
return null;
else
{
document.body.appendChild(ed_Div);
return ed_Div;
}
}
function ed_HideTip()
{
var ed_Div = document.getElementById("ed_Div_1");
if (ed_Div != null)
ed_Div.style.display = "none";
window.status = ' ';
}
function ed_SetTime()
{
ed_timerID = setTimeout(function (){ed_HideTip();}, 500)
}
function ed_ClearTime()
{
try
{
clearTimeout(ed_timerID);
}
catch(err)
{
/***/
}
}
function ed_unescapeHTML(ed_HtmlString)
{
var ed_htmlNode = document.createElement("DIV");
ed_htmlNode.innerHTML = ed_HtmlString;
if(ed_htmlNode.innerText)
return ed_htmlNode.innerText;
else
return ed_htmlNode.textContent;
}
function ed_StringHeight(ed_String, ed_Size, ed_Bold, ed_Width)
{
var ed_D_String = document.createElement("div");
ed_D_String.id = "ed_Temp_Div_StringHeight";
ed_D_String.style.width = ed_Width + "px";
ed_D_String.style.fontSize = ed_Size + "px";
ed_D_String.style.lineHeight = ed_Size + "px";
ed_D_String.style.visibility = "hidden";
ed_D_String.style.position = "absolute";
var ed_S_String = document.createElement("span");
ed_S_String.style.visibility = "hidden";
ed_S_String.style.fontSize = ed_Size + "px";
ed_S_String.style.lineHeight = ed_Size + "px";
ed_S_String.style.fontFamily = "Verdana";
ed_S_String.style.fontVariant = "Normal";
if (ed_Bold)
ed_S_String.style.fontWeight = "Bold";
else
ed_S_String.style.fontWeight = "Normal";
ed_S_String.innerHTML = ed_String;
ed_D_String.appendChild(ed_S_String);
document.body.appendChild(ed_D_String);
var ed_Height = 0;
if (ed_S_String.offsetWidth > ed_Width)
ed_Height = ed_D_String.offsetHeight * 2;
else
ed_Height = ed_D_String.offsetHeight;
ed_D_String.parentNode.removeChild(ed_D_String);
return ed_Height;
}
