// (c) 2008 Made in Pridedesign, http://pridedesign.ru
// Dmitry Yaremenko

var shake_int;
function shake_start(id)
{  
  shake_int=setInterval("doshake('"+id+"')",30);
}

function shake_stop(id)
{  
  clearInterval(shake_int);
}

function doshake(id)
{
   var d=document.getElementById(id);

   d.style.left = Math.round(Math.random())+'px';
   d.style.top = Math.round(Math.random())+'px';
}