/*
** Digitalis JavaScript
** v0.01 - 2007.12.06
** lodewijk schutte ~ low
*/

// borrowed from mootools.v1.11
if (window.ActiveXObject) window.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true;

// bind
Function.prototype.bind = function(obj) {
 var method = this, temp = function() {
  return method.apply(obj, arguments);
 };
 return temp;
}

// global object/namespace
var DIG   = new Object();
DIG.inits = new Array();


if (window.ie) {
 
 DIG.FixLinks = {
  init: function() {
   // get all links in document
   var A = document.getElementsByTagName('a');
   // loop through links
   for (var i = 0, j = A.length; i < j; i++) {
    if (!A[i].className.match(/verder/)) continue;
    var span = document.createElement('span').appendChild(document.createTextNode(' \u00BB'));
    A[i].appendChild(span);
    /* var img = new Image();
    img.src = '/images/blank.gif';
    img.width  = '12';
    img.height = '10';
    img.alt    = '';
    A[i].appendChild(img); */
   }
  }
 }
 DIG.inits.push('FixLinks'); 
 
}


// execute inits onload
window.onload = function() {
 for (var i = 0; i < DIG.inits.length; i++) {
  DIG[DIG.inits[i]].init.call(DIG[DIG.inits[i]]);
 }
}