var doSld = 0;
var isPnlSldg = false;
function doPnlSld(mode, SldPnlID, SldPnlEnd, SldSpd, wtMSec, zIdx, IFrPg)
{
/*
Paramter
mode: TD = Top to Down, LR = Left to Right, RL = Right to Left, BU = Bottom Top Up
SldPnlID: ID des Panels das geslided werden soll
SldPnlAkt: Aktuelle Größe (Höhe oder Breite) des Panels
SldPnlEnd: End-Größe des Panels (Höhe oder Breite), negativ bei BU und RL
SldSpd: Sliding Speed - wie schnell isPnlSldg? Je kleiner desto schneller ( 20 )
wtMSec: Wait / Pause bis Intervall wiederholt wird in Millisekunden
zIdx: CSS z-Index 1=Layer=8010, 0/LEER: Elemente werden beim Slide verschoben)
*/
var
PnlHdImgInfo = new Image(16,16),
PnlHdImgOpCl = new Image(16,16),
IDPnlIFr, PnlIFr, IFrPgLd, IFrLnk,
scrpt = "all/pg - doPnlSld("+mode+","+SldPnlID+","+SldPnlEnd+","+SldSpd+","+wtMSec+","+zIdx+","+IFrPg+")",
IDSldPnl = "SldPnl" + SldPnlID,
IDPnlIFr = "PnlIFrm" + SldPnlID,
IDPnlImgInfo = "PnlImgInfo" + SldPnlID,
IDPnlImgOpCl = "PnlImgOpCl" + SldPnlID,
EndVar = true;
SldPnl = getObjbyID(IDSldPnl, scrpt, "IDSldPnl");
PnlIFr = getObjbyID(IDPnlIFr, scrpt, "IDPnlIFr");
PnlImgInfo = getObjbyID(IDPnlImgInfo, scrpt, "IDPnlImgInfo");
PnlImgOpCl = getObjbyID(IDPnlImgOpCl, scrpt, "IDPnlImgOpCl");
if(_AnzErr==0)
{
if(isPnlSldg) return;
isPnlSldg = true;
if(zIdx > 0) SldPnl.style.zIndex = "8010";
SldPnlAkt = parseInt(SldPnl.style.height);
if(SldPnlAkt == SldPnlEnd) // || SldPnl.style.display == "none"
{
PnlIFr.style.display = "none";
doSld = setInterval(function() {ClSldPnl(mode, IDSldPnl, SldPnlEnd, SldSpd, scrpt);}, wtMSec);
// doSld = setInterval("ClSldPnl('" + mode + "','" + IDSldPnl + "','" + SldPnlEnd + "','" + SldSpd + "')", wtMSec);
switch(mode)
{
case "TD":
{
PnlImgOpCl.src = _ImgPthPnlDOut;
break;
}
case "RL":
{
break;
}
case "BU":
{
break;
}
case "LR":
{
PnlImgOpCl.src = _ImgPthPnlROut;
break;
}
default:
{
_AnzErr++;
_ErrTxt = _ErrTxt + "\nUngültiger Paramter für >mode< = " + mode + " in " + scrpt;
}
}
}
else
{
SldSpd = SldSpd/10;
SldPnl.style.height = "0px";
PnlIFr.style.display = "none";
SldPnl.style.display = "block";
doSld = setInterval(function() {OpSldPnl(mode, IDSldPnl, SldPnlEnd, SldSpd, scrpt);}, wtMSec);
// doSld = setInterval("OpSldPnl('" + mode + "','" + IDSldPnl + "','" + SldPnlEnd + "','" + SldSpd + "')", wtMSec);
PnlIFr.style.display = "block";
switch(mode)
{
case "TD":
{
PnlImgOpCl.src = _ImgPthPnlUOut;
break;
}
case "RL":
{
break;
}
case "BU":
{
break;
}
case "LR":
{
PnlImgOpCl.src = _ImgPthPnlLOut;
break;
}
default:
{
_AnzErr++;
_ErrTxt = _ErrTxt + "\nUngültiger Paramter für >mode< = " + mode + " in " + scrpt;
}
}
}
PnlIFr.src = IFrLnk;
}
else
{
Err(AnzErr,scrpt,ErrTxt,1);
}
}