function Fenster_oeffnen(Name,Fenster, Breite , Hoehe)
{
//alert ("Name=" + Name + "Bild=" + Fenster + "Breite=" + Breite + "Hoehe=" + Hoehe);
var strFenster = Fenster + Breite + "_" + Hoehe;
strBefehl ='Fenster= window.open(Name,strFenster,"width=' + Breite + ',height=' + Hoehe + '");'
//alert(strBefehl);
eval(strBefehl);
Fenster.focus();
}

function Download_Unicode()
{
Fenster2=window.open("http://www.vps.org/rubrique.php3?id_rubrique=73","VPS_UNICODE");
Fenster2.focus;
}




B=document.all;
C=document.layers;
T1=new Array("../bild/b1.gif",46,42,"../bild/b2.gif",46,42,"../bild/b3.gif",26,23,"../bild/b4.gif",26,27,"../bild/b5.gif",26,23,"../bild/b6.gif",27,20)
nos=parseInt(T1.length/3)
rate=50
ie5fix1=0;
ie5fix2=0;
for (i=0;i<nos;i++)
{
	createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")
}

function createContainer(N,Xp,Yp,W,H,At,HT,Op,St)
{
with (document)
{
	write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
	if(St)
	{
		if (C)
		write(" style='");
		write(St+";' ")
	}
	else write((B)?"'":"");
	write((At)? At+">" : ">");
	write((HT) ? HT : "");
	if (!Op)
	closeContainer(N)
}
}

function closeContainer()
{
document.write((B)?"</div>":"</layer>")
}

function getXpos(N)
{
return (B) ? parseInt(B[N].style.left) : C[N].left
}

function getYpos(N)
{
return (B) ? parseInt(B[N].style.top) : C[N].top
}

function moveContainer(N,DX,DY)
{
c=(B) ? B[N].style :C[N];c.left=DX;c.top=DY
}

function cycle()
{
//if (IE5) 
if (document.all&&window.print)
{
	ie5fix1=document.body.scrollLeft;
	ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++)
{
	moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}

function newPos(e)
{
moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)
}

if(document.layers)
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=newPos;
setInterval("cycle()",rate);

//Textanimation im Statusline

//msg = "Trung ta^m thie^n phu*o*'c, nuo^i du*o*~ng tre? te^ lie^.t, na.n nha^n thuo^'c khai quang";

intLang = msg.length;
timeID = 10;
stcnt = 16;
wmsg = new Array(intLang);
        wmsg[0]=msg;
        blnk = "                                                               ";
        for (i=1; i<intLang; i++)
        {
                b = blnk.substring(0,i);
                wmsg[i]="";
                for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
        }

function wiper()
{
        if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
        if (stcnt-- < -40) stcnt=31;
        status = str;
        clearTimeout(timeID);
        timeID = setTimeout("wiper()",80);
}

wiper();
