var mendin=null;
var mcontent=null;
var mtitle=null;
function getMDDivs(){
if (document.getElementById)
{
mcontent=document.getElementById("menudinamicocontent");
mtitle=document.getElementById("menudinamicotitle");
mendin=document.getElementById("menudinamico");
}
else
if (document.all)
{
mendin=document.all["menudinamico"];
mcontent=document.all["menudinamicocontent"];
mtitle=document.all["menudinamicotitle"];
}
}
function unloadF(){
getMDDivs();
doHide(mendin);
}
function WriteMenuDin(txt,title) {
if (title==null) title="See Also";
title=''+title+'';
getMDDivs();
//alert (txt+"\n\n"+title+"\n\n"+mcontent+"-"+mtitle+"-"+mendin)
txtA=txt.split("
");
var tt="";
for (var i=0;i '+txtA[i];
if (i
';
}
}
txt=tt;
if (mcontent && mendin && mtitle)
{
if (document.all)
{
mcontent.innerHTML = txt
mtitle.innerHTML=title
}
else
{
if (document.getElementById)
{
range = document.createRange();
range.setStartBefore(mcontent);
domfrag = range.createContextualFragment(txt);
while (mcontent.hasChildNodes())
{
mcontent.removeChild(mcontent.lastChild);
}
mcontent.appendChild(domfrag);
range2 = document.createRange();
range2.setStartBefore(mtitle);
domfrag2 = range2.createContextualFragment(title);
while (mtitle.hasChildNodes())
{
mtitle.removeChild(mtitle.lastChild);
}
mtitle.appendChild(domfrag2);
}
}
doShow(mendin);
}
if (txt=="")
{
if (mendin)
{
doHide(mendin);
}
}
}
//--------------- Aggiunta voci menu See Also ----------------
function getMDDivsAdd(){
if (document.getElementById)
{
mcontent=document.getElementById("menudinamicocontentAdd");
}
else
if (document.all)
{
mendin=document.all["menudinamicoAdd"];
}
}
function WriteMenuDinAdd(txt,title) {
WriteMenuDin(txt,title);
/*
getMDDivsAdd();
if (mcontent)
{
if (document.all)
{
mcontent.innerHTML = txt
}
else
{
if (document.getElementById)
{
range = document.createRange();
range.setStartBefore(mcontent);
domfrag = range.createContextualFragment(txt);
while (mcontent.hasChildNodes())
{
mcontent.removeChild(mcontent.lastChild);
}
mcontent.appendChild(domfrag);
}
}
mcontent.style.visibility="visible";
// mcontent.style.overflow="visible";
}
if (txt=="")
{
if (mcontent)
{
mcontent.style.visibility="hidden";
mcontent.style.height="0px";
//mcontent.style.overflow="hidden;
}
}
*/
}
//---------------------------------------------------------------------------------------------------------------------------
function doShow(OBJ){
if (OBJ && OBJ.style) {
OBJ.style.visibility="visible";
OBJ.style.overflow="auto";
OBJ.style.height="auto";
}
}
//---------------------------------------------------------------------------------------------------------------------------
function doHide(OBJ){
if (OBJ && OBJ.style) {
OBJ.style.visibility="hidden";
OBJ.style.overflow="hidden";
OBJ.style.height="1px";
}
}
//---------------------------------------------------------------------------------------------------------------------------
function handleSection(id){
var obj=null;
if (document.getElementById)
{
obj=document.getElementById(id);
}
else
if (document.all)
{
obj=document.all[id];
}
if (obj!=null){
if (obj.style) {
if (obj.style.visibility=="hidden")
doShow(obj);
else
doHide(obj);
}
}
if (parent.setIframeHeight) parent.setIframeHeight('IFR', true);
}