//------------------------------------------------------------------------------
var img = "paper100.gif";

var ih=60;

var iw=468;

var txcol="#FFFFFF";
var shcol="";

var zastavka = '<iframe width="468" height="60" src="http://lubovuspenskaya.ru/news/n3.htm" scrolling="no" frameborder="0" marginwidth="0" marginheight ="0"></iframe &nbsp;&nbsp;&nbsp; на ближайшие концерты <br><? $r = "1"; include("http://lubovuspenskaya.ru/random/random.php");?></font>';

var sp = 99999999999999999999999999999999999999999999996;  

//-------------------------------------------------------------------------------

var pos=0;
var speed=sp; 
var gl=1;
var sptop=0;
var wtop=-500;

//var ns6=document.getElementById?1:0;
var ns6=1;
if (ns6) 
{
document.write('<span ID="object1" STYLE="Position:absolute; Top:'+wtop+'; Left:20; Z-Index:5;">');

document.write('<img src='+img+' height='+ih+' width='+iw+'>');

document.write('<div id="closegif" onclick="objhidden()" style="Position:relative;top:-'+(ih+5)+'px;left:'+(iw-492)+'px;cursor:hand;" ><img src="knopka.gif" heigt=25 width=25></div>');

document.write('<div ID="cont" style="Position:absolute;Top:0;Left:0;width:'+(iw-0)+';height:'+(ih-0)+';overflow:hidden;">');
 document.write('<span ID="ticker" style="Position:absolute;Top:60:'+(ih-0)+';width:'+(iw-0)+';"><font color='+shcol+'>'+zastavka+'</font>');
document.write('<span ID="shad" style="Position:absolute;Top:0;Left:0;width:'+(iw-0)+';"><font color='+txcol+'>'+zastavka+'</font></span></span>');
document.write('</div>');
document.write('</span>');
}
//---------------------------------------------------
function makeStatic() {

sptop=document.body.scrollTop-wtop;
wtop=Math.round(wtop+sptop/30);

if (ns6) {
document.getElementById("object1").style.top=wtop+(document.body.clientHeight-ih)/2; 
document.getElementById("object1").style.left=document.body.scrollLeft+(document.body.clientWidth-iw)/2;
}
marquee();

if (gl) {setTimeout("makeStatic()",0);}

}
//-----------------------------------------------------
function objhidden() {
if (ns6) {document.getElementById("object1").style.visibility="hidden";gl=0;document.getElementById("closegif").style.visibility="hidden";}
}
//-----------------------------------------------------
function marquee(){
speed--;
if (0==speed) {
speed=sp;
var cx=document.getElementById("ticker").offsetTop;
var max=document.getElementById("ticker").offsetHeight;
pos=cx+max;
if (0==pos){ cx=ih;}
if (ns6) {document.getElementById("ticker").style.top=cx-1;
}
}

}

window.onload=makeStatic;
