if (document.observe) document.observe("dom:loaded", function() {
    $('headerPic').setStyle({
    left: '0px'
  });
});

// Virtueel boeken Javascript
function startRes(pKlantNr,pTaalCode)
{
 window.open('http://www.virtueelboeken.nl/index.asp?u=' + pKlantNr + '&taal=' + pTaalCode, 'VB', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,width=775,height=750,top=50,left=20');
}

function startBroch(pKlantNr,pTaalCode)
{
 window.open('http://www.virtueelboeken.nl/index.asp?u=' + pKlantNr + '&taal=' + pTaalCode + '&type=aanvraag', 'VB', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,width=775,height=750,top=50,left=20');
}

function startPrijs(pKlantNr,pTaalCode)
{
 window.open('http://www.virtueelboeken.nl/index.asp?u=' + pKlantNr + '&taal=' + pTaalCode + '&type=prijsopgave', 'VB', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,width=775,height=750,top=50,left=20');
}

document.observe("dom:loaded", function() {
  HM.Flash.Text.load("h2", {
	src: "../flash/text.swf"
  })
  HM.Flash.Text.load("h3", {
	src: "../flash/text_small.swf"
  })  
});

document.observe("dom:loaded", function() {
  window.twitterList = new HM.Twitter({
    screen_name: "dehondsrug",
    callback: "myTwitterListCallback",
    template: '<li><span>#{text}</span><br><a class="relative_time" href="http://twitter.com/#{screen_name}/statuses/#{id}">#{relative_time}</a></li>',
    count: 1
  });
});

function myTwitterListCallback(C) {
  var tweets = window.twitterList.getTweets(C);
  $("twitterList").update(tweets.join(""));
}
