function setupSIFR()
{
  if(typeof sIFR == "function")
  {
    sIFR.bHideBrowserText = true;
    sIFR.setup();

    sIFR.replaceElement(named({sSelector:".sitename", sFlashSrc:"http://sites2.b-lex.com/makemyday/design/sifr/sitename.swf", sColor:"#000000", sWmode:"transparent"}));
  };
}

function getFaceImage()
{
  var i = Math.round((allfaces.length-1)* Math.random());
  return allfaces[i];
}

function getTexts()
{
  var i = Math.round((texts.length-1)* Math.random());
  return unescape(texts[i]);
}

function shareFacebook(fileurl)
{
  window.open('http://www.facebook.com/sharer.php?u=' + fileurl, "_blank", "resizable=1,width=650,height=450");
}

function shareTwitter(filedescription, fileurl)
{
  var txt = encodeURIComponent(filedescription);
  window.open('http://twitter.com/share?text=' + txt + '&amp;url=' + fileurl,'_blank','width=850,height=400');
}

function shareLinkedIn(fileurl, filetitle, filedescription)
{
  window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + fileurl + '&title=' + filetitle + '&source=' + filedescription, 'linkedin', 'width=700,height=500'); return false;
}

function shareNuJij(filetitle, fileurl)
{
  window.open('http://nujij.nl/jij.lynkx?t=' + filetitle + '&u=' + fileurl, '_blank', 'width=850,height=800');
}

function shareHyves(fileurl)
{
  window.open('http://www.hyves.nl/respect/confirm/?url=' + fileurl, '_blank', 'width=1054,height=400');
}
