var pagenavbarhtml='';
function _note(imgsrc,name,x,y)
{
this.imgsrc=imgsrc;
this.name=name;
this.timerID=0;
this.interval=0;
this.x=x;
this.y=y;
this.zindex=30000;
pagenavbarhtml+=this.innerHTML ();
}
function _innerHTML ()
{
return '
';
}
function _settimer(_interval)
{
this.interval=_interval;
this.timerID=setInterval(this.name+".timer()",_interval);
}
function _reset()
{
clearInterval(this.timerID)
this.timerID=0;
this.interval=0;
}
function _timer()
{
_x=this.x+Math.round((Math.random()*15));
_y=this.y+Math.round((Math.random()*20));
document.getElementById(this.name).style.top=_y+"px";
document.getElementById(this.name).style.left=_x+"px";
}
_note.prototype.innerHTML=_innerHTML;
_note.prototype.settimer=_settimer;
_note.prototype.reset=_reset;
_note.prototype.timer=_timer;
note1=new _note("http://www.petricanicoara.ro/images/notes8.gif","note1",80,0);
note2=new _note("http://www.petricanicoara.ro/images/notes9.gif","note2",70,10);
note3=new _note("http://www.petricanicoara.ro/images/notes3.gif","note3",60,20);
note4=new _note("http://www.petricanicoara.ro/images/notes4.gif","note4",50,30);
note5=new _note("http://www.petricanicoara.ro/images/notes6.gif","note5",40,40);
function loadnotes()
{
note1.settimer(2000);
note2.settimer(800);
note3.settimer(800);
note4.settimer(1000);
note5.settimer(800);
document.getElementById('notes').innerHTML=pagenavbarhtml;
}
notesID=setInterval('loadnotes()',3000);