var shakeTimer;

function initShake()
{
 	if(n||ie)
    shakeTimer = setInterval('doShake()', 100);
}

function doShake()
{
	if(ie) {
	  document.all.shake.style.pixelLeft+=Math.random()*20-10;
	  document.all.shake.style.pixelTop+=Math.random()*20-10;
	}
	else {
	  document.divBlackCurtain.document.shake.left+=Math.random()*20-10;
	  document.divBlackCurtain.document.shake.top+=Math.random()*20-10;
	}
}

function stopShake()
{
	if(n||ie)
	  clearInterval(shakeTimer);
}
