function homeCloudAnim ()
{
  var modifier = new Spif.Modifiers();
  modifier.duration = 3000;
  modifier.repeat = true;
  modifier.profile = modifier.RETURN;
  
  var animations = [];
  animations[0] = 
  {
    element: document.getElementById("droomkasteelWolk"),
    targetState: 
    {
      marginTop:getRandomInt(2, 4)
    }
  }
  Spif.Animator.animate(animations, modifier);
}

function kastOnload ()
{
  cca.registerObject(new AnimatedObject(0, "vragenkastChild", new Array(0,1,1,1,0), 400));
  cca.init();
  
  updateTime();
}

function updateTime()
{
  if (appVersion.indexOf("msie 6.0") != -1)
    return
    
    window.setTimeout('updateTime()', 60000);
    date = new Date();
    var baseUrl = '/img/klok/';
    
    var hours = date.getHours() > 11 ? date.getHours() - 12 : date.getHours();
    var arm = (hours * 5) + Math.floor((date.getMinutes() / 12))
    
    document.getElementById('wijzer1').src = baseUrl + 'kleineWijzer' + arm + '.png';
    document.getElementById('wijzer2').src = baseUrl + 'groteWijzer' + date.getMinutes() + '.png';
}       