
var bg = document.getElementById('bg');
var parallax = new Parallax(bg);

require('./lib/ruler.js');
require('./lib/dom.js');

var img1 = Qid('img1');
var img2 = Qid('img2');
var img3 = Qid('img3');
var img4 = Qid('img4');
addEvent(window , 'scroll' , function(){
	var persentage = scroller.getY() / scroller.getMaxY();
	img1.style.top = (-10 - 2*persentage).toString() + '%';
	img3.style.top = (-10 - 4*persentage).toString() + '%';
	img2.style.bottom = (-14 + 2*persentage).toString() + '%';
	img4.style.bottom = (-14 + 4*persentage).toString() + '%';
});
@@ -339,17 +339,17 @@
  (-10 - 
-2
+4
 *persent
@@ -388,33 +388,33 @@
 le.top = (-10 - 
-4
+8
 *persentage).toS
@@ -456,17 +456,17 @@
  (-14 + 
-2
+4
 *persent
@@ -508,33 +508,33 @@
 bottom = (-14 + 
-4
+8
 *persentage).toS

optimize scoll parallax