function delineate(str){

theleft = str.indexOf("=") + 1;
theright = str.lastIndexOf("&");
return(str.substring(theleft, theright));
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=377,height=566,left = 531.5,top = 167');");
}

function test2() 
{

document.write('Testje 2');


}



function addJavascript(jsname,pos) {
var th = document.getElementsByTagName(pos)[0];
var s = document.createElement('script');
s.setAttribute('type','text/javascript');
s.setAttribute('src',jsname);
th.appendChild(s);
}




function crossselling(){

var text = window.location;
var thisemail = delineate(text);

alert("Test");

if (thisemail == "DEIO")

{
document.write('<br><br>Boek:');
}

if (thisemail == "SNEIO")

{
document.write('<br><br>Boek');
}

}


function twitter_passionned()
{

addJavascript('http://widgets.twimg.com/j/2/widget.js','body');

new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#ffffff',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#050005',
      links: '#07aeeb'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: false,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('daanvanbeek').start();

}