function getdim()
{
if (navigator.appName=="Netscape")
{
winheight = document.body.scrollHeight;
winwidth = document.body.scrollWidth;
}
else if (navigator.appName=="Microsoft Internet Explorer")
{
winheight = document.body.scrollHeight;
winwidth = document.body.scrollWidth;
}
}
function show()
{
x=document.body.offsetWidth - 295;
y=0;//screenTop;
dd=0;
xx=x+'px';
yy=y+'px';
document.getElementById('layermva').style.top=yy;
document.getElementById('layermva').style.left=xx;
document.getElementById('layermva').style.display='';
}
function hide()
{
document.getElementById('layermva').style.display='none';
}
function disp()
{
layermva.innerHTML='
';
layermva.innerHTML=layermva.innerHTML+' ';
}
function move()
{
if (navigator.appName=="Netscape")
{
winsize = innerHeight;
}
else if (navigator.appName=="Microsoft Internet Explorer")
{
winsize = document.body.offsetHeight;
}
if (y < winsize - 595 && winsize -595 > 0)
{
y = y + 5;
}
if (document.body.scrollTop == 0 && winsize -595 <= 0)
{
y=0;
}
if (document.body.scrollTop != 0 || document.body.scrollLeft != 0)
{stop2 = 1;
}
if (stop2==1)
{
if (document.body.scrollTop != 0)
{
if (winheight< document.body.scrollTop +560)
document.getElementById('layermva').style.top=winheight-460+"px";
else
{
document.getElementById('layermva').style.top=y+document.body.scrollTop+"px";
}
}
else
{
document.getElementById('layermva').style.top=y+"px";
}
if (document.body.scrollLeft != 0)
{
if (winwidth< document.body.scrollLeft +document.body.offsetWidth)
document.getElementById('layermva').style.left=winwidth-260+"px";
else
{
document.getElementById('layermva').style.left=document.body.scrollLeft+document.body.offsetWidth-285+"px";
}
}
else {
document.getElementById('layermva').style.left=document.body.scrollLeft+document.body.offsetWidth-285+"px";
}
stop2 = 0;
}else
{document.getElementById('layermva').style.top=y+document.body.scrollTop+"px";
document.getElementById('layermva').style.left=document.body.scrollLeft+document.body.offsetWidth-285+"px";
}
setTimeout('move();',1);
}
function make()
{
disp();
getdim();
show();
stop2 = 0;
move();
}
// http://localhost/myviral/new_get.ad.php?id=&id2=&mid=15123
setTimeout('make()',10000)
document.write('');