// This is the FolderViev Script © Serjosha Lamzin

var Gesammt = ""
var t = ""
var style = "<u><span style='background-image:url(bild.jpg); background-repeat:repeat-x'><span style='font-family:Arial Black;font-size:80%'>"
var style2 = "</span></span></u>"
var spacer = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
// style2 = spacer + style2

var sprachimg = '<center><a href="../../en/index.htm"><img src="../bilder/usa_gs.gif" width="38" height="27" border="0"></a> <a href="../../es/index.htm"><img src="../bilder/spain.gif" width="38" height="27" border="0"></a></center><br>'

//if(document.all)
//{
style2 = style2 + "<br>"
//}


Gesammt = style + "<img src=" + Web[0].Icon + " height=16 width=16><a href=" + Web[0].Eintrag + " target=" + Web[0].Target + ">" + Web[0].Title + "</a>" + style2


function Oc(wat)
{

if(wat.OnOff != "On")
{
wat.OnOff = "On"
}
else
{
wat.OnOff = "Off"
}

Disp()

}


function SMenu(Fol,vimg)
{



var neuges = ""
var i = 1


for(z = 1; i < Fol.length;i++)
{

neuges = neuges + style + vimg


neuges = neuges + "<img src=skreis.gif>"


//FOLDER OR NOT

if(Fol[i].FolDoc == "fol")
{

neuges = neuges + "<a href=javascript:Oc(" + Fol[i].Path + ")>" + Fol[i].Title + "</a>" + style2


if(Fol[i].OnOff == "On")
{
neuges = neuges + SMenu(Fol[i].Eintrag,vimg + ((i == eval(Fol.length + "-1")) ? "<img src=blank.gif height=16 width=16 border=0> " : "<img src=blank.gif height=16 width=16 border=0> "))
}




}
else
{

neuges = neuges + "" + "<a href=" + Fol[i].Eintrag + " target=" + Fol[i].Target + ">" + Fol[i].Title + "</a>" + style2


}



}


return neuges



}





function Back(Fol)
{



var neuges = ""
var i = 1


for(z = 1; i < Fol.length;i++)
{

neuges = neuges + "testtestte<img src=0.gif height=16 width=100 border=0>"

//FOLDER OR NOT

if(Fol[i].FolDoc == "fol" && Fol[i].OnOff == "On" )
{

neuges = neuges + Back(Fol[i].Eintrag)

}



}


return neuges



}




function Disp()
{
/*
var test = SMenu(Web,"")

document.sp.document.open()
document.sp.document.write(Gesammt + SMenu(Web,""))
document.sp.document.close()

*/

Gesammt = Gesammt + SMenu(Web,"")

/*
if(document.all)
{
document.all.meinAbsatz.innerHTML = Gesammt;
}
else
{
document.sp.document.open()
document.sp.document.write(Gesammt)
document.sp.document.close()
}
*/

//Gesammt = '<center><a href="../../en/index.html" target="_top"><img src="../bilder/usa_gs.gif" width="38" height="27" border="0"></a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="../../es/index2.htm" target="_top"><img src="../bilder/spain.gif" width="38" height="27" border="0"></a></center>' + Gesammt

document.getElementById('d2').innerHTML = Gesammt

Gesammt = style + "<img src=" + Web[0].Icon + " height=16 width=16><a href=" + Web[0].Eintrag + " target=" + Web[0].Target + ">" + Web[0].Title + "</a>" + style2

/*
document.back.document.open()
document.back.document.write('<span style="color:#089CFF; alignment:right">' + Back(Web) + '</span>')
document.back.document.close() */

}
