function replaceLeesMeer () {
    $(".note").each(function() {             
             
        /* 
            place Flash object inside each tag and configure it with 
            the replacement text and it's style. external CSS has no effect 
        */
        var mylink = $('a',this).attr("href");
        flashembed(this, {src: "/flash/leesmeer.swf",wmode: 'transparent'}, { 
            tekst: escape($(this).text()),             
            nlink: escape(mylink)
        });         
         
    });  
}

function replacePolaroid () {
    $(".polaroid").each(function() {             
             
        /* 
            place Flash object inside each tag and configure it with 
            the replacement text and it's style. external CSS has no effect 
        */
        var mylink = $('img',this).attr("src");
        flashembed(this, {src: "/flash/image.swf",wmode: 'transparent', quality: 'best'}, { 
            imglink: mylink
        });
    });  
}

/* align the bottom lines */
function setBackground () {
  var sdif = 75;

  if (($("#sidebar").height() + sdif) > $("#main-column").height()) {
    $("#main-column").height($("#sidebar").height() + sdif);
  } else {
   // $("#sidebar").height($("#main-column").height() - sdif);
  }
  //$("#xfooter").css('bottom', '0px');
}

function fitScreen () {
  var mainH = $("#main").height();
  var screenH = $(window).height();
  if (mainH < screenH) {
    $("#content").height($("#content").height() + screenH-mainH);
  }
}

function mAddress() {
  var g = '@';
  var h = '<a href="';
  var i = 'info';
  var j = 'destraatcoach';
  var k = '.nl';
  var m = "mailto:";
  var n = '">'+i+g+j+k+'</a>';
  
  
  $("#mailholder").html(h+m+i+g+j+k+n);
}


$(document).ready(function() {
   setBackground();
   replaceLeesMeer();   
   replacePolaroid ();
   fitScreen();
   mAddress();
});




