function logClick(ref)
{
	c = new Image();
	c.src = "/count.php?ref="+escape(ref);
}
function insertMovie(url, width, height)
{
	options = 'autostart="1" showcontrols="1" showdisplay="0" ShowStatusBar="1"';
	m = '<object id="Player" width="'+width+'" height="'+height+'" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" \
			type="application/x-oleobject">\n\
				<param name="URL" value="'+url+'" />\
				<param name="SendPlayStateChangeEvents" value="True"/>\
				<param name="AutoStart" value="True"/>\
				<param name="PlayCount" value="9999"/>\
					<embed name="MediaPlayer" type="application/x-mplayer2" \
						pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" \
						src="'+url+'" width="'+width+'" height="'+height+'" ' + options + '></embed>\
			</object>';
	document.write(m);
}

function insertDialbox(id,country,tariff,phone,code,digits)
{
	m =  '<div class="telefoon">Betaling per telefoon</div>\n\
					<div class="dialbanner">\n\
						<div class="c">\
						Voor veilig en anoniem toegang bel:\n\
						<div style="font-size:14pt;font-weight:bold;">\n\
							<img style="margin-top:2px" src="/images/flags/'+country+'.gif" alt="'+country+'" />&nbsp;'+phone+'\n\
						</div>\n\
 						(&euro; '+tariff+' p/m)\n\
						</div>\n\
					</div>\n\
					<div class="dialbanner">\n\
						<div class="c">\
						Vul de '+digits+'-cijferige pincode hier in en druk op de knop!\n\
						<br/>\n\
						<input type="text" name="'+code+'" maxlength="'+digits+'" size="'+digits+'" />\n\
						<input type="submit" name="submit" value="Go" onclick="javascript:logClick(\''+id+'\');" />\n\
						</div>\n\
					</div>\n\
					<div class="dialbanner">\n\
						<div class="c">\
						U heeft nu toegang tot honderden filmpjes en foto\'s!\
						U heeft toegang zolang u aan de lijn blijft.\n\
						</div>\n\
					</div>\n';
	document.write(m);
}
function createPlayer()
                 {
                        var res="";
                        res+='</OBJECT>';
                        return res;
                }

                function init()
                {
                        var playerlocation=document.getElementById("player-scherm");
                        playerlocation.innerHTML=createPlayer();

                }

