/*

// Voorbeeld code hoe je de tags vanuit flash aanroept

import flash.external.ExternalInterface;

ExternalInterface.call("DCLKSpotlightTag('nl_homepage')");

// SPOTLIGHT TAGS
// Open Happiness
// 1.  enter
// 2.  video
// 3.  home
// 4.  choosephoto
// 5.  addfriend
// 6.  result
// 7.  email
// 8.  share
// 9.  sharethanks

*/

// Deze code moet ofwel in de <body> tussen <script> tags
// <script language="JavaScript" type="text/javascript"></script>
// Ofwel plaats je deze in een externe JS file

function DCLKSpotlightTag(action) {
	var axel = Math.random() * 10000000000000;
	var pix = new Image();
		
	// 1. Spotlighttag Enter Open Happiness
	if (action == "enter") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=enter140;ord=" + axel + "?";
	}
	// 2. Spotlighttag Video
	if (action == "video") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=video243;ord=" + axel + "?"; 
	}
	// 3. Spotlighttag Open Happiness Home
	if (action == "home") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=openh449;ord=" + axel + "?"; 
	}
	// 4. Spotlighttag Kies foto
	if (action == "choosephoto") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=fotoa107;ord=" + axel + "?"; 
	}
	// 5. Spotlighttag Voeg vriend toe
	if (action == "addfriend") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=addfr206;ord=" + axel + "?"; 
	}
	// 6. Spotlighttag Graffitti resultaat
	if (action == "result") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=graff470;ord=" + axel + "?"; 
	}
	// 7. Spotlighttag E-mail invulvelden
	if (action == "email") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=email091;ord=" + axel + "?"; 
	}
	// 8. Spotlighttag Share
	if (action == "share") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=share087;ord=" + axel + "?"; 
	}
	// 9. Spotlighttag Bedankt voor share
	if (action == "sharethanks") {
	     pix.src = "http://ad-emea.doubleclick.net/activity;src=2077619;type=cokeo409;cat=thank263;ord=" + axel + "?"; 
	}
	
	// end
	return void(null);
}
