jQuery.noConflict();
var stickie=0;
function toggleStickies(){
 s2=stickie;
 stickie=1-stickie;
 for (i=0;i<7;i++)
  jQuery("#stickie_"+i)
  .animate({left:40+(stickie*80)+Math.random()*(80+s2*240)+"px",top:Math.random()*(50+stickie*50)+"px"}, 200,"swing")
  .animate({left:40+(s2*80)+Math.random()*(80+stickie*240)+"px",top:Math.random()*(50+s2*50)+"px"}, 200,"swing")
  .animate({left:158+stickie*(i-1.2)*(105+((i==6)?8:0))+"px",top:"5px"}, 500,"swing");
 return false;
}
function wiggleStickies(){
 for (i=0;i<7;i++)
  jQuery("#stickie_"+i)
  .animate({left:158+(40-Math.random()*80)+"px",top:5+(70-Math.random()*80)+"px"}, 300,"swing")
  .animate({left:158+(40-Math.random()*80)+"px",top:5+(70-Math.random()*80)+"px"}, 280,"swing")
  .animate({left:158+(40-Math.random()*80)+"px",top:5+(70-Math.random()*80)+"px"}, 260,"swing")
  .animate({left:158+(40-Math.random()*80)+"px",top:5+(70-Math.random()*80)+"px"}, 240,"swing")
  .animate({left:"158px",top:"5px"}, 220,"swing");
 return false;
}
/*
function dropStickie(){
 s=jQuery("#stickie_5");
 ax=s.css("left");
 ax=parseInt(ax.substring(0,ax.length-2));
 b=1;
 for(i=1;i<20;i++){
  y=i*40;
  b=-b;
  x=ax+b*100;
  s.animate({top:y+"px",left:x+"px"},2000,"swing");
 }
}
*/
if (Math.random()<0.1) {
	window.setTimeout("toggleStickies()",1000);
} else {
	window.setTimeout("wiggleStickies()",1000);
}
//window.setTimeout("dropStickie()",10000);
