//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
function DOMMouseScroll()
{
	//adding the event listerner for Mozilla
    if(window.addEventListener) document.addEventListener('DOMMouseScroll', moveObject, false);
	//for IE/OPERA etc
    document.onmousewheel = moveObject;
}

function moveObject(event)
{
    var delta = 0; 
	if (!event) event = window.event;  
	 // normalize the delta
    if (event.wheelDelta)
	{
		// IE & Opera
      	delta = event.wheelDelta / 120;
	}
	else if (event.detail) // W3C
	{
		delta = -event.detail / 3;
	}
   var currPos=document.getElementById('innerWrapper0').offsetTop;
   //calculating the next position of the object
   currPos=parseInt(currPos)+(delta*10);
   //moving the position of the object 
   if (currPos<0)
   document.getElementById('innerWrapper0').style.top=currPos+"px";
}
