﻿//Przewijarka zamiast marquee
//** teksty - gmerać ostrożnie**//
p6='<p>ZAPRASZAMY DO OBEJRZENIA WYSTAWY pn.<br /><a href="http://www.kulturamonki.pl/index2.php?idmodyf=39&tabela=kalendarzmok" /><b>"OBRAZY IGŁĄ MALOWANE"</b></a></p><p>55 Ogólnopolski Konkurs Recytatorski - Eliminacje Powiatowe<br /><a href="http://www.kulturamonki.pl/index2.php?idmodyf=40&tabela=kalendarzmok" /><b>INFO - WEJDŹ !!!</b></a></p><p>Zobacz nagrodzonych uczestników<br /><a href="choinki_u_09.php" /><b>XI Powiatowego Konkursu "Na Choinkę Bożonarodzeniową"</b></a></p><p>Obejrzyj <a href="http://www.kulturamonki.pl/galeria/przeglad_09/index.html"><b>GALERIĘ PRAC KONKURSOWYCH</b></a><br />Powiatowego Przeglądu Twórczości Amatorskiej </p><p><i>Po najechaniu kursorem tekst się zatrzyma</i></p>';
function scrollerObj(name,initH,initW,heightB,widthB,content,initBg,Bg,speed,initFl){
//**ustawionka- nie gmerać**//
this.name=name;this.initH=initH;this.initW=initW;this.heightB=heightB;
this.widthB=widthB;this.content=content;this.initBg=initBg;
this.Bg=Bg;this.iniFl=initFl;this.speed=parseInt(speed,10);
this.timer=name+"Timer";
//**metody**//
this.getElement=getElement;this.createLayer=createLayer;
this.scrollLayer=scrollLayer;this.scrollLoop=scrollLoop;
//**inicjacja metod**//
this.createLayer();this.getElement();this.scrollLayer();}
//**ta metoda zatrzyma scrooling**//
function scrollLoop(s){this.speed=s;}
function scrollLayer(){
if(parseInt(this.elem.style.top,10)>(this.elem.offsetHeight*(-1))){
  this.elem.style.top=parseInt(this.elem.style.top,10)-this.speed+'px';
  } else {this.elem.style.top=this.initH+'px';}}
function getElement(){this.elem=document.getElementById(this.name);}
function createLayer(){
document.write('<div id="layer'+this.name+'" style="position:relative;overflow:hidden;float:');
document.write(this.initFl+';background-color:#'+this.initBg+';border:0px;width:');
document.write(this.initW+'px;height:'+this.initH+'px;" onmouseover="');
document.write(this.name+'.scrollLoop(0)" onmouseout="'+this.name+'.scrollLoop(');
document.write(this.speed+')">');
document.write('<div id="'+this.name+'" style="position:absolute;top:');
document.write(this.initH+'px;left:0px;border:0px solid black;width:');
document.write(this.widthB+'px;height:'+this.heightB+'px;background-color:#');
document.write(this.Bg+'">');
document.write(this.content);
document.write('<\/div><\/div>');
if(this.scrollLayer){this.timer=setInterval(this.name+'.scrollLayer()','50');}
}
