//matrix.js for channel 19783 / widget 631861 / cols 4 / rows 12 / skin clean 
//cache: {{{cacheinfo}}} 
// Widget standard js for yubby
// NOT based on prototype or jquery - cause it must be lightweight and cant interfere with host

/**
 *	htmlspecialchars - like its php counterpart
 *	@author rvw
 *	@since 08-03-2010 12:19
 */
function htmlspecialchars(string) {
	string = string.toString();
	string = string.replace(/&/g, '&amp;');    
	string = string.replace(/</g, '&lt;').replace(/>/g, '&gt;');
	string = string.replace(/"/g, '&quot;');
	// single quote.. string = string.replace(/'/g, '&#039;');
	return string;
}

//------------ tween.js ----------------------
function Delegate() {}
Delegate.create = function (o, f) {
	var a = new Array() ;
	var l = arguments.length ;
	for(var i = 2 ; i < l ; i++) a[i - 2] = arguments[i] ;
	return function() {
		var aP = [].concat(arguments, a) ;
		f.apply(o, aP);
	}
}

Tween = function(obj, prop, func, begin, finish, duration, suffixe){
	this.init(obj, prop, func, begin, finish, duration, suffixe)
}
var t = Tween.prototype;

t.obj = new Object();
t.prop='';
t.func = function (t, b, c, d) { return c*t/d + b; };
t.begin = 0;
t.change = 0;
t.prevTime = 0;
t.prevPos = 0;
t.looping = false;
t._duration = 0;
t._time = 0;
t._pos = 0;
t._position = 0;
t._startTime = 0;
t._finish = 0;
t.name = '';
t.suffixe = '';
t._listeners = new Array();	
t.setTime = function(t){
	this.prevTime = this._time;
	if (t > this.getDuration()) {
		if (this.looping) {
			this.rewind (t - this._duration);
			this.update();
			this.broadcastMessage('onMotionLooped',{target:this,type:'onMotionLooped'});
		} else {
			this._time = this._duration;
			this.update();
			this.stop();
			this.broadcastMessage('onMotionFinished',{target:this,type:'onMotionFinished'});
		}
	} else if (t < 0) {
		this.rewind();
		this.update();
	} else {
		this._time = t;
		this.update();
	}
}
t.getTime = function(){
	return this._time;
}
t.setDuration = function(d){
	this._duration = (d == null || d <= 0) ? 100000 : d;
}
t.getDuration = function(){
	return this._duration;
}
t.setPosition = function(p){
	this.prevPos = this._pos;
	var a = this.suffixe != '' ? this.suffixe : '';
	this.obj[this.prop] = Math.round(p) + a;
	this._pos = p;
	this.broadcastMessage('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition = function(t){
	if (t == undefined) t = this._time;
	return this.func(t, this.begin, this.change, this._duration);
};
t.setFinish = function(f){
	this.change = f - this.begin;
};
t.geFinish = function(){
	return this.begin + this.change;
};
t.init = function(obj, prop, func, begin, finish, duration, suffixe){
	if (!arguments.length) return;
	this._listeners = new Array();
	this.addListener(this);
	if(suffixe) this.suffixe = suffixe;
	this.obj = obj;
	this.prop = prop;
	this.begin = begin;
	this._pos = begin;
	this.setDuration(duration);
	if (func!=null && func!='') {
		this.func = func;
	}
	this.setFinish(finish);
}
t.start = function(){
	this.rewind();
	this.startEnterFrame();
	this.broadcastMessage('onMotionStarted',{target:this,type:'onMotionStarted'});
	//alert('in');
}
t.rewind = function(t){
	this.stop();
	this._time = (t == undefined) ? 0 : t;
	this.fixTime();
	this.update();
}
t.fforward = function(){
	this._time = this._duration;
	this.fixTime();
	this.update();
}
t.update = function(){
	this.setPosition(this.getPosition(this._time));
	}
t.startEnterFrame = function(){
	this.stopEnterFrame();
	this.isPlaying = true;
	this.onEnterFrame();
}
t.onEnterFrame = function(){
	if(this.isPlaying) {
		this.nextFrame();
		setTimeout(Delegate.create(this, this.onEnterFrame), 0);
	}
}
t.nextFrame = function(){
	this.setTime((this.getTimer() - this._startTime) / 1000);
	}
t.stop = function(){
	this.stopEnterFrame();
	this.broadcastMessage('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame = function(){
	this.isPlaying = false;
}

t.continueTo = function(finish, duration){
	this.begin = this._pos;
	this.setFinish(finish);
	if (this._duration != undefined)
		this.setDuration(duration);
	this.start();
}
t.resume = function(){
	this.fixTime();
	this.startEnterFrame();
	this.broadcastMessage('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo = function (){
	this.continueTo(this.begin,this._time);
}

t.addListener = function(o){
	this.removeListener (o);
	return this._listeners.push(o);
}
t.removeListener = function(o){
	var a = this._listeners;	
	var i = a.length;
	while (i--) {
		if (a[i] == o) {
			a.splice (i, 1);
			return true;
		}
	}
	return false;
}
t.broadcastMessage = function(){
	var arr = new Array();
	for(var i = 0; i < arguments.length; i++){
		arr.push(arguments[i])
	}
	var e = arr.shift();
	var a = this._listeners;
	var l = a.length;
	for (var i=0; i<l; i++){
		if(a[i][e])
		a[i][e].apply(a[i], arr);
	}
}
t.fixTime = function(){
	this._startTime = this.getTimer() - this._time * 1000;
}
t.getTimer = function(){
	return new Date().getTime() - this._time;
}
Tween.backEaseIn = function(t,b,c,d,a,p){
	if (s == undefined) var s = 1.70158;
	return c*(t/=d)*t*((s+1)*t - s) + b;
}
Tween.backEaseOut = function(t,b,c,d,a,p){
	if (s == undefined) var s = 1.70158;
	return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
}
Tween.backEaseInOut = function(t,b,c,d,a,p){
	if (s == undefined) var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}
Tween.elasticEaseIn = function(t,b,c,d,a,p){
		if (t==0) return b;  
		if ((t/=d)==1) return b+c;  
		if (!p) p=d*.3;
		if (!a || a < Math.abs(c)) {
			a=c; var s=p/4;
		}
		else 
			var s = p/(2*Math.PI) * Math.asin (c/a);
		
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	
}
Tween.elasticEaseOut = function (t,b,c,d,a,p){
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (!a || a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return (a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b);
	}
Tween.elasticEaseInOut = function (t,b,c,d,a,p){
	if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) var p=d*(.3*1.5);
	if (!a || a < Math.abs(c)) {var a=c; var s=p/4; }
	else var s = p/(2*Math.PI) * Math.asin (c/a);
	if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
}

Tween.bounceEaseOut = function(t,b,c,d){
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
}
Tween.bounceEaseIn = function(t,b,c,d){
	return c - Tween.bounceEaseOut (d-t, 0, c, d) + b;
	}
Tween.bounceEaseInOut = function(t,b,c,d){
	if (t < d/2) return Tween.bounceEaseIn (t*2, 0, c, d) * .5 + b;
	else return Tween.bounceEaseOut (t*2-d, 0, c, d) * .5 + c*.5 + b;
	}

Tween.strongEaseInOut = function(t,b,c,d){
	return c*(t/=d)*t*t*t*t + b;
	}

Tween.regularEaseIn = function(t,b,c,d){
	return c*(t/=d)*t + b;
	}
Tween.regularEaseOut = function(t,b,c,d){
	return -c *(t/=d)*(t-2) + b;
	}

Tween.regularEaseInOut = function(t,b,c,d){
	if ((t/=d/2) < 1) return c/2*t*t + b;
	return -c/2 * ((--t)*(t-2) - 1) + b;
	}
Tween.strongEaseIn = function(t,b,c,d){
	return c*(t/=d)*t*t*t*t + b;
	}
Tween.strongEaseOut = function(t,b,c,d){
	return c*((t=t/d-1)*t*t*t*t + 1) + b;
	}

Tween.strongEaseInOut = function(t,b,c,d){
	if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
	return c/2*((t-=2)*t*t*t*t + 2) + b;
	}

//======= end tween.js
// pgstats - poor mans page statistics.. 
// NOT based on prototype or jquery - cause it must be lightweight

// // get our script src, to know our baseurl so we can call home
// var pgstatsScriptSource = (function(scripts) {
//     var scripts = document.getElementsByTagName('script'),
//         script = scripts[scripts.length - 1];	// at ths very moment, we are the last script guaranteed
// 
//     if (script.getAttribute.length !== undefined) {
//         return script.src
//     }
// 
//     return script.getAttribute('src', -1)
// }());

var pgstats= {
	browser: navigator.userAgent,
	uid: '',
	scr: screen.width.toString()+'x'+screen.height.toString(),
	url: document.URL,
	referrer: document.referrer,
	ecollect: {},
	baseurl: 'http://www.dik.nl/',	// pgstatsScriptSource.substr(0,pgstatsScriptSource.lastIndexOf('/pgstats/')),
	init: function() {
		if (!(this.uid=this.readCookie('pgstats'))) {
			this.uid= Math.round(Math.random() * 2147483647).toString();
			this.uid+= Math.round(Math.random() * 2147483647).toString();
			this.createCookie('pgstats',this.uid,365*2);
		}
	}, 
	xPageHit: function () {
		var xhReq=this.createXMLHttpRequest();
		if (!xhReq)
			return 'ERR:xhReq';	// forget it..
		if (!this.baseurl)
			return 'ERR:baseurl';	// forget it..
		xhReq.open('get',this.baseurl+'pgstats/tick?'+this.collectInfo(),true);
		// xhReq.onreadystatechange = function() {
		//     if (xhReq.readyState != 4)  { return; }
		//     var serverResponse = xhReq.responseText;
		//     alert(serverResponse);
		// };
		xhReq.send();
		return 'OK';
	},
	collectInfo: function() {
		var rv;
		rv='ts=' + new Date().getTime();
		//rv+='&br='+this.encURI(this.browser);
		rv+='&uid='+this.uid;
		rv+='&url='+this.encURI(this.url);
		rv+='&refer='+this.encURI(this.referrer);
		//rv+='&ssrc='+this.encURI(this.baseurl);
		rv+='&scr='+this.scr;
		for (i in this.ecollect) {
			rv+='&'+i+'='+this.encURI(this.ecollect[i]);
		}

		return rv;
	},
	addcollect: function(key,val) {
		this.ecollect[key]=val;
	},
	//------- helper functions ----------
	createCookie: function (name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	},
	readCookie: function(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	},
	eraseCookie: function(name) {
		createCookie(name,"",-1);
	},
	encURI: function(url) {
		//return encodeURIComponent(url);	// forgets to encode a lot of chars. Useless
		var s = escape(url);	// this is the most complete one, however forgets to encode star, slash, @ and +
		s = s.replace(/\*/g,"%2A");
		s = s.replace(/\//g,"%2F");
		s = s.replace(/\@/g,"%40");
		s = s.replace(/\+/g,"%2B");
		return s;
	},
	createXMLHttpRequest: function() {
  		try { return new XMLHttpRequest(); } catch(e) {}
		try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
		try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) {}
		return null;
	}
}
pgstats.init();
//pgstats.addcollect('vid','234234');
//pgstats.xPageHit();

var isIE = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) && navigator.platform == "Win32";

var cvids_631861= new Array();	// channelvideo's
var curvid_631861=0;			// first video
var cpvideo_631861=false;		// false=thumb, true=video

// in IE, you need to declare these before the vp_createwg is called, otherwise they do not exist in the onclick context
var matrix631861_curpg=1;
var matrix631861_npages=1;
var matrix631861_itemspp=48;

var wgElm_631861 = document.getElementById('viidoo_matrix_631861');
if (wgElm_631861) {
	// we exist!
	// hide 
	//wgElm_631861.innerHTML = 'x';
	//wgElm.style.display = 'none';
	//....
	vp_createwg();
}

pgstats.addcollect('chid','19783');
pgstats.addcollect('hit','embed');
pgstats.addcollect('widget','matrix');
pgstats.xPageHit();

function vp_createwg() {
	var html='<div id="widget_flash_631861" class="widget_flash" style="width: 688px;height:1230px;overflow:hidden; border: 0px solid #DDDDDD;font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Tahoma,Geneva,Arial,helvetica,sans-serif">';
	//html+='<link rel="stylesheet" href="http://www.dik.nl/css/main.css" type="text/css" media="screen" title="x" charset="utf-8" />';
	// silly IE needs a br before style element
	html+='<br style="display:none;"/><style type="text/css">	\
		.stdthumb {width:160px;max-height:122px;background:#f6f6f6;margin:0 auto 6px auto;overflow:hidden;position:relative;}	\
		.stdthumbbrd {width:156px;height:86px;background:#cccccc;border:2px solid #dedede;overflow:hidden;position:relative;}	\
		.stdthumbbrd .stbdimg {position:absolute;width:160px;height:119px;top:-20px;left:0;}	\
		.stdthumbbrd .smallroundaction	{position: absolute; width:24px;height:24px;z-index:200;cursor:pointer;cursor:hand;}	\
		.stdthumbbrd .bigplay	{position: absolute; width:24px;height:24px;top:28px;left:68px;z-index:200;cursor:pointer;cursor:hand;background:url(http://incdn.s3.amazonaws.com/dikp_v1/img/media_play24.png) no-repeat;} \
		.stdthumbbrd .inlinetitle 	{position: absolute; bottom: 0px; left: 0px;width:156px;height:15px;z-index:200;background-color:#dedede;color:#000000;font-size:11px;overflow:hidden;white-space: nowrap;padding:2px 5px 2px 3px;filter: alpha(opacity=80);filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);-moz-opacity: 0.80; opacity: 0.80;} \
		.stdthumbbrd .thumbavatar	{position: absolute; top: 2px; left:2px;z-index:300;} 	\
		.pages {padding:2px 0 2px 8px; margin:0; height:clear:both;font-size:12px;	line-height:14px; -moz-user-select: none;-khtml-user-select: none; user-select: none;} \
			.pages div.pageblock {float:left;border: 1px solid #888; color:#000; height: 14px; padding: 3px 6px 3px 6px; margin: 0px 4px 0px 0px;cursor: pointer;cursor:hand;}\
			.pages div.pageblock:hover {color:#D10101;text-decoration:underline;}	\
			.pages div.pageblock_disabled {float:left;border: 1px solid #888; color: #aaa; height: 14px; padding: 3px 6px 3px 6px;margin: 0px 4px 0px 0px;}\
			.pages div.pageblock_dots {float:left; border: 0px solid #888; color: #000; height: 14px; padding: 3px 6px 3px 6px;margin: 0px 4px 0px 0px;}\
			.pages div.pageblock_curpage {float:left; border: 1px solid #888; color: #aaa; height: 14px; padding: 3px 6px 3px 6px;margin: 0px 4px 0px 0px;}\
		</style>';
		cvids_631861.push({vid:223058, thumb: 'http://i.ytimg.com/vi/x7vE-x92VmI/0.jpg', title: 'Nieuwerkerk - JHR 3-2', desc: 'Nieuwerkerk verslaat op overtuigende wijze JHR in de finale van de competitie met 3-2!'});
	cvids_631861.push({vid:222755, thumb: 'http://i.ytimg.com/vi/6yT-1Ammwzo/0.jpg', title: 'VV Nieuwerkerk kampioen 2010-2011', desc: 'Deze video is ge\u00fcpload vanaf een Android-telefoon.'});
	cvids_631861.push({vid:181636, thumb: 'http://i.ytimg.com/vi/QZGWkulueEc/0.jpg', title: 'Het Kraaiennest speelt Nova Zembla', desc: 'scene uit de muzikale vertelling van Willem Barentsz op Nova Zembla'});
	cvids_631861.push({vid:181635, thumb: 'http://i.ytimg.com/vi/kFMkSbuisFw/0.jpg', title: 'NOVA ZEMBLA', desc: 'Muzikale vertelling van Nova Zembla naar het relaas van Willem Barentz gespeeld door Het Shantykoor Het Kraaiennest uit Zevenhuizen Gem. Zuidplas. Een scene uit het tweede deel.'});
	cvids_631861.push({vid:132730, thumb: 'http://i.ytimg.com/vi/C_76Ok7CdjA/0.jpg', title: 'Ballonvaart over Zuidplas met burgemeester Gert-Jan Kats', desc: 'Op zaterdag 30 oktober 2010 organiseerden de raadsleden van de CDA-fractie in de gemeente Zuidplas een ballonvaart voor de nieuwe burgemeester Gert-Jan Kats. Zij wilden hem op deze manier laten kennis maken met zijn nieuwe gemeente. Naast de burgemeester en de raadsleden gingen vertegenwoordigers van de Kamer van Koophandel, de ondernemersverenigingen en de provinciale staten mee in de ballon. Omroep Zuidplas verslaggeefster Nan de Hoog deed vanuit de ballon live verslag voor de radio. De ballon vertrok rond 17.00 uur in buurgemeente Capelle aan den IJssel en vloog via de gemeente Zuidplas naar Alphen aan den Rijn. Daar zijn de ballonvaarders weer veilig uit het mandje gestapt. Foto\'s en geluidsfragmenten: www.omroepzuidplas.nl'});
	cvids_631861.push({vid:127661, thumb: 'http://i.ytimg.com/vi/WiMIfgsxSd4/0.jpg', title: 'Video impressie workshop 21 september 2010 ivm 50 jaar ambonwijk Moordrecht', desc: ''});
	cvids_631861.push({vid:123034, thumb: 'http://i.ytimg.com/vi/V19s4qPNrA0/0.jpg', title: 'Sterrenslag 2010', desc: 'Sterrenslag 2010 in het Esse Park, Nieuwerkerk aan den IJssel gebracht door VEDJ ten behoeven van CliniClowns met teams van oaVEDJ, SP Zuidplas, Omroep Zuidplas, Speeltuin de IJsselkids en VANAD.'});
	cvids_631861.push({vid:121944, thumb: 'http://i.ytimg.com/vi/SZ2RhZAeEaA/0.jpg', title: 'JURK! - Sorry - Hitlandfestival', desc: 'Jeroen van Koningsbrugge, Dennis van de Ven, Ulrich de Jesus, Pablo Penton, Roy Jansen, Boele Weemhoff, Benny Bakker. \n\nJurk op het Hitlandfestival in Nieuwerkerk a/d IJssel.'});
	cvids_631861.push({vid:121945, thumb: 'http://i.ytimg.com/vi/sxhAxEn_rog/0.jpg', title: '4Tuoze Matroze - Nieuwerkerkaandenijsselsemeisjes', desc: '4Tuoze Matroze - Nieuwerkerkaandenijsselsemeisjes Hitlandfestival'});
	cvids_631861.push({vid:120498, thumb: 'http://i.ytimg.com/vi/MzGffooz_f8/0.jpg', title: 'Video Impressie bijeenkomst 15 juli 2010 ivm 50 jaar ambonwijk Moordrecht', desc: ''});
	cvids_631861.push({vid:109936, thumb: 'http://ats.vimeo.com/648/699/64869920_640.jpg', title: 'Blues in Dorrestein', desc: 'Een avondje bluesmuziek in Winkelcentrum Dorrestein in dorpskern Nieuwerkerk aan den IJssel in de gemeente Zuidplas. \n\nOrganisatie: Stichting Evenement en Rotaryclub Nieuwerkerk aan den IJssel\n\nProductie film: Zuidplas Actief\n\nwww.zuidplasactief.nl'});
	cvids_631861.push({vid:109892, thumb: 'http://i.ytimg.com/vi/mlSB1QHGOog/0.jpg', title: 'DMV: Andre Bonthuis', desc: 'Beelden: www. hartvanholland-online.nl'});
	cvids_631861.push({vid:107543, thumb: 'http://i.ytimg.com/vi/_EA4GEGL47I/0.jpg', title: 'Gemiva Toertocht 2010', desc: 'Tocht met bijzondere auto\'s waar de inwoners van de Gemiva tehuis voor verstandelijk gehandicapten mag meerijden. Ride with extraordinary cars where the residents of the Gemiva home for the mentally handicapped can ride along.'});
	cvids_631861.push({vid:107251, thumb: 'http://i.ytimg.com/vi/s_G4dJoa1tY/0.jpg', title: '90_20100425 Culturele Agenda', desc: 'Merel Luijendijk geeft een kort overzicht van de culterele agenda in de regio tijdens de talkshow De Mond Vol van 25 aril 2010'});
	cvids_631861.push({vid:106230, thumb: 'http://i.ytimg.com/vi/9g5-_AcU2A0/0.jpg', title: 'zwanendans op Hitland Nieuwerkerk a/d IJssel', desc: 'Nieuw project 2'});
	cvids_631861.push({vid:105357, thumb: 'http://i.ytimg.com/vi/qOJUDEBEPOI/0.jpg', title: 'Laatste rit over de N219 door Zevenhuizen', desc: 'Het oude trac\u00e9 van de N219 ging door Zevenhuizen. De N219 wordt veel gebruikt door woon-werk verkeer tussen de A12 en de A20. Dit zorgde voor veel overlast maar ook opstoppingen, aangezien de weg door Zevenhuizen erg smal is (vrachtauto\'s kunnen elkaar bijna niet passeren. Op 8 april 2010 om 17.00 uur is het nieuwe trac\u00e9 van de N219 opengesteld en om 21.00 uur is de oude afslag Zevenhuizen definitief afgesloten. De video is op 8 april gemaakt tijdens de ochtendspits, rond 7.45 uur.'});
	cvids_631861.push({vid:102407, thumb: 'http://i.ytimg.com/vi/TJN9iZ74fLQ/0.jpg', title: 'Capelle is Nieuwerkerks vuil zat', desc: 'Capelle is het zat. De inwoners van Nieuwerkerk moeten stoppen met het dumpen van vuilnis in Capelle aan den ijssel. Opsporingsambtenaren gaan populaire loos-plekken strenger in de gaten houden.'});
	cvids_631861.push({vid:101474, thumb: 'http://i.ytimg.com/vi/onB4vSmfe8I/0.jpg', title: 'zuidplasplayinn-Girl', desc: 'Zuidplas Play-inn Gril (Anouk)'});
	cvids_631861.push({vid:93827, thumb: 'http://i.ytimg.com/vi/0mSQpQ66N-U/0.jpg', title: 'PAREL ACHTER DE DIJKEN; lied van de Zuidplas  Melodie  tekst  Jimco Zijlstra   Ned Concert Mannenkoor Op 23 jan  2010  in Nieuwerkerk a d IJssel  gehele tekst zie www ncmonline nl', desc: ''});
	cvids_631861.push({vid:96566, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/471/900/47190074_640.jpg', title: 'Thuis in Zuidplas', desc: 'Deze film is gemaakt in opdracht van de gemeente Zuidplas en is vertoond tijdens het uitzwaaifeest op 29 december in Nieuwerkerk aan den IJssel. \n\nZuidplas Actief (http://www.zuidplasactief.nl) heeft de film hier geplaatst met toestemming van de gemeente Zuidplas.\n\nProducent: IFS audiovisueel, Den Haag'});
	cvids_631861.push({vid:88869, thumb: 'http://i.ytimg.com/vi/Vp7aZllFlFI/0.jpg', title: '20090108 Schaatsen op de Rottemeren', desc: 'Een korte impressie van de Rottemeren met schaatsende mensen.'});
	cvids_631861.push({vid:86266, thumb: 'http://i.ytimg.com/vi/-NCYs3NqwC4/0.jpg', title: 'Edsilia Rombley.MOV', desc: ''});
	cvids_631861.push({vid:86235, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/399/275/39927572_640.jpg', title: 'Lasershow Uitzwaaifeest Nieuwerkerk 29 dec \'09', desc: ''});
	cvids_631861.push({vid:86267, thumb: 'http://i.ytimg.com/vi/ZXtphrL32-k/0.jpg', title: 'Uitzwaaifeest Nieuwerkerk 29 dec \'09 Levende Jukebox.MOV', desc: ''});
	cvids_631861.push({vid:86268, thumb: 'http://i.ytimg.com/vi/OOgkDlnX3N0/0.jpg', title: 'Reigerhof 22 dec 09 S1voice.MOV', desc: ''});
	cvids_631861.push({vid:88360, thumb: 'http://i.ytimg.com/vi/SEAydh2fgD0/0.jpg', title: 'DMV: Hans van Tol', desc: 'Beelden: www.hartvanholland-online.nl'});
	cvids_631861.push({vid:87310, thumb: 'http://i.ytimg.com/vi/iadRb2AyUgU/0.jpg', title: 'DMV: Leontien Zijlaard-Van Moorsel', desc: 'Beelden: www.hartvanholland-online.nl'});
	cvids_631861.push({vid:86035, thumb: 'http://i.ytimg.com/vi/qdu0Ooibb_0/0.jpg', title: 'Tanzania: make a change!', desc: 'Promotiefilmpje voor het Tanzaniaproject met als slogan \"Tanzania: make a change!\" In de zomer van 2010 gaan 34 jongeren vanuit de PKN-gemeenten in Moordrecht naar Dar es Salaam in Tanzania, waar zij bij een weeshuis zullen gaan bouwen aan een vakschool en aan de toekomst van weeskinderen. Meer informatie op www.tanzaniamakeachange.nl.'});
	cvids_631861.push({vid:83672, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/383/092/38309252_640.jpg', title: 'Sneeuwpret aan de Ringvaart in Nieuwerkerk', desc: 'Een productie van Zuidplas Actief. \n\nwww.zuidplasactief.nl'});
	cvids_631861.push({vid:83470, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/381/356/38135608_640.jpg', title: 'Kerstmarkt en Kaarsjesavond Oude Dorp Nieuwerkerk ad IJssel', desc: 'Kort verslag van de Kerstmarkt en Kaarsjesavond op het Oude Dorp in Nieuwerkerk aan den IJssel op 16 december 2009. \n\nEen productie van www.zuidplasactief.nl'});
	cvids_631861.push({vid:82465, thumb: 'http://i.ytimg.com/vi/_aIg6HhwGNU/0.jpg', title: 'IJsbaan Raadhuisplein Nieuwerkerk', desc: 'This video was uploaded from an Android phone.'});
	cvids_631861.push({vid:82486, thumb: 'http://i.ytimg.com/vi/IiQl6hbml50/0.jpg', title: '50 20091104 ZuidplasActief bij De Mond Vol', desc: 'Marcel de Ruiter is op bezoek bij de verkiezingsspecial van de talkshow De Mond Vol en heeft een gesprek over de website www.zuidplasactief.nl ... de mond vol zuidplas zuidplasactief marcel ruiter www.zuidplasactief.nl '});
	cvids_631861.push({vid:82468, thumb: 'http://i.ytimg.com/vi/NkXLl99LyHI/0.jpg', title: 'Zuidplas in het NOS Journaal', desc: 'Zuidplas in het NOS Journaal (17 november 2009, 20.00 uur)'});
	cvids_631861.push({vid:82462, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/267/969/26796901_640.jpg', title: 'Feestelijk avondje voetbal', desc: 'Dit filmverslag is speciaal gemaakt voor het lokale sociale netwerk van de gemeente Zuidplas --\&gt; www.zuidplasactief.nl . \n\nDoelgroep van deze nieuwe site wordt gevormd door de 40.000 inwoners van de nieuwe gemeente Zuidplas die per 1/1/2010 ontstaat uit de fusie van Nieuwerkerk aan den IJssel, Moordrecht en Zevenhuizen-Moerkapelle.'});
	cvids_631861.push({vid:82470, thumb: 'http://i.ytimg.com/vi/7fTuiIe-Rkc/0.jpg', title: 'Turf impressie', desc: 'Een korte impressie van het Turfdorp en de Musical Turf zelf ... musical turf zevenhuizen zuidplas '});
	cvids_631861.push({vid:127746, thumb: 'http://i.ytimg.com/vi/60SBc8dgmwE/0.jpg', title: 'NOS Headlines - 2 procent stemt alvast', desc: 'Het grootste deel van het land moet nog een maand of vier wachten, maar in zes gemeenten gaan burgers vandaag al naar de stembus. In \u00e9\u00e9n van die gemeenten is de 22-jarige Karin Slooters lijsttrekker voor de PvdA.'});
	cvids_631861.push({vid:82466, thumb: 'http://i.ytimg.com/vi/5s0T2qJmaw8/0.jpg', title: 'Lijsttrekkersdebat Zuidplas', desc: 'Lijsttrekkersdebat Zuidplas'});
	cvids_631861.push({vid:82463, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/189/127/18912701_640.jpg', title: 'Zuidplas Actief: een introductie', desc: 'Deze promotiefilm is speciaal gemaakt voor de lancering van het lokale sociale netwerk Zuidplas Actief: http://www.zuidplasactief.nl. Doelgroep van de nieuwe site wordt gevormd door de 40.000 inwoners van de nieuwe gemeente Zuidplas die per 1/1/2010 ontstaat uit de fusie van Nieuwerkerk aan den IJssel, Moordrecht en Zevenhuizen-Moerkapelle.\n\nVoor de film is dankbaar, en met toestemming, gebruik gemaakt van muziek met de titel \&quot;Join the conversation\&quot; van Matthew Ebel ( http://www.matthewebel.com ).'});
	cvids_631861.push({vid:82464, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/189/109/18910957_640.jpg', title: 'Drie wethouders over Zuidplas Actief', desc: 'Deze promotiefilm is speciaal gemaakt voor de lancering van het lokale sociale netwerk Zuidplas Actief: http://www.zuidplasactief.nl. Doelgroep van de nieuwe site wordt gevormd door de 40.000 inwoners van de nieuwe gemeente Zuidplas die per 1/1/2010 ontstaat uit de fusie van Nieuwerkerk aan den IJssel, Moordrecht en Zevenhuizen-Moerkapelle.\n\nVoor de film is dankbaar, en met toestemming, gebruik gemaakt van muziek met de titel \&quot;Join the conversation\&quot; van Matthew Ebel ( http://www.matthewebel.com ).'});
	cvids_631861.push({vid:82490, thumb: 'http://i.ytimg.com/vi/TLofnWtduwM/0.jpg', title: 'Hey bartender door Kjoet', desc: 'met gastmuzikant burgemeester Bonthuis op mondharmonica! Vrijwilligersfeest Nieuwerkerk aan den IJssel 1 juli 2009 '});
	cvids_631861.push({vid:82494, thumb: 'http://i.ytimg.com/vi/jp22piJTSLw/0.jpg', title: 'ONDER NAP', desc: 'Onder NAP, project in Nieuwerkerk met als thema de komst van NAPOLEON. De kerkers(gevang) in 1815 tijdens het strijdperk van Napoleon. Het publiek werd op straat opgepakt en in de kerker gegooid van achter de tralies zagen ze de voorstelling. Dit is de generale repetitie er gaan ook nog wat dingen fout ze hebben het die dag een stuk of 15 keer gedaan.'});
	cvids_631861.push({vid:82488, thumb: 'http://i.ytimg.com/vi/HBUzchg1xMk/0.jpg', title: 'Zevenhuizen Stockcar F1 race', desc: 'Spannende Stockcar F1 race in Zevenhuizen op Hemelvaartsdag 2009'});
	cvids_631861.push({vid:82471, thumb: 'http://i.ytimg.com/vi/RL9npjvcE4c/0.jpg', title: 'SSN van Stoom tot Stoom Moordrecht', desc: 'SSN Steamdays from steam to steam Moordrecht'});
	cvids_631861.push({vid:82495, thumb: 'http://i.ytimg.com/vi/MHGbE1cPPyI/0.jpg', title: 'Het slotlied \'samen staan we sterk\' uit de musical Touw.', desc: 'Musical Touw van 12 juni 2009 in Moordrecht'});
	cvids_631861.push({vid:82467, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/260/235/26023563_640.jpg', title: 'Ridderfeest in het Essepark', desc: 'Een filmverslag geplaatst op www.zuidplasactief.nl, het lokale netwerk voor \&amp; door de inwoners van de gemeente Zuidplas. '});
	cvids_631861.push({vid:82469, thumb: 'http://i.ytimg.com/vi/90zb5IKwyEw/0.jpg', title: 'De nieuwe gemeentenaam is bekend', desc: 'Een namen-deskundige presenteert de nieuwe gemeentenaam voor de fusie-gemeente van Moordrecht, Nieuwerkerk aan den IJssel en Zevenhuizen. ... nieuwerkerk aan den ijssel moordrecht zevenhuizen zuidplas april welkenaam.nl gemeentenaam short film sketch '});
	cvids_631861.push({vid:82487, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/271/960/27196045_640.jpg', title: 'Seniorencooperatie', desc: ''});
	cvids_631861.push({vid:83991, thumb: 'http://i.ytimg.com/vi/TL-FV89muGA/0.jpg', title: 'Napoleon in Nieuwerkerk', desc: 'Na bijna 200 jaar komt Napoleon weer naar nieuwerkerk aan den ijssel'});
	cvids_631861.push({vid:83992, thumb: 'http://i.ytimg.com/vi/-vgtBzeQ5I0/0.jpg', title: 'Intocht  Sinterklaas 2008', desc: 'Intocht Sinterklaas / Arrival of Saint Nicolas in Nieuwerkerk aan den IJssel, 22 November 2008'});
	cvids_631861.push({vid:127662, thumb: 'http://i.ytimg.com/vi/TvF9TwdjqCM/0.jpg', title: 'Fiat 500 Polderrit 2007', desc: 'De 2e Fiat 500 Polderrit / The 2nd Fiat 500 Polder Ride in Nieuwerkerk aan den IJssel. Het begint met 1 toespraakje door de burgemeester die dan de startschot geeft. Er zijn foto\'s van de hele rit te zien op www.michelb.nl'});
	html+='<div id="cvideos631861">';
	html+='</div>';	// widget_flash
	html+='<iframe src="http://www.dik.nl/util/ustat" width="0" height="0" border="no" frameborder="0"  style="border:0; visibility: hidden;"></iframe>';
	wgElm_631861.innerHTML=html;
	wgElm_631861.style.display = 'block';
	gotopage_631861(matrix631861_curpg);	// 1
}


// find absolute top loc of object
function vp_offsetTop(obj) {
    curtop = 0;
    if (obj.offsetParent) {
    curtop = obj.offsetTop
    while (obj = obj.offsetParent) {
      curtop += obj.offsetTop
    }
  }
  return curtop;
}

function vp_offsetLeft(obj) {
  curtop = 0;
  if (obj.offsetParent) {
    curtop = obj.offsetLeft;
    while (obj = obj.offsetParent) {
      curtop += obj.offsetLeft;
    }
  }
  return curtop;
}

// flash jscalls

// stop video
function stopVideo_631861() {
	closevid_631861();
}

// show hoverevent
function showVideoInfo(videoitem_id) {
	// alert('Show some information for ' + videoitem_id + '.');
}


function hideVideoInfo() {
	// alert('hide');
}



function closeVideoPlayer_631861() {
	// close screen
	closevid_631861();
	// call to flash object
	//getFlashObject("videostrip_631861").videoDeselect(0);
}


function closevid_631861() {
  el = document.getElementById('vidplayer_631861');
  if (el) {
    el.parentNode.removeChild(el);
  } 
}

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll) 
	return arrayPageScroll;
}



//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}



function playVideo_631861(videoitem_id) {

	// close old one
	closevid_631861();

	// open new
	//var vidlist = document.getElementById(id);
	var video_div = document.createElement('div');
	var title='hello';
	video_div.id = "vidplayer_631861";
	video_div.style.position = 'absolute';
	video_div.style.border = 'none';
	var base_width=400;
	var base_height=300;
	var calc_width	= (base_width+2*17+10);
	var calc_height	= (base_height+16+2*22);
	
	video_div.style.width = calc_width+'px';
	video_div.style.height = calc_height+'px';
	video_div.style.zIndex = '10000';
	//video_div.style.border = "5px solid #cccccc";
	
	//
	//	var wgFlashDiv=document.getElementById('widget_flash_631861');
	//	//var top = vp_offsetTop(wgElm_631861);
	//	//var left = vp_offsetLeft(wgElm_631861);
	//	var top = vp_offsetTop(wgFlashDiv);
	//	var left = vp_offsetLeft(wgFlashDiv);
	//
	//	// left or right
	//	if (left < document.body.clientWidth/2) {
	//		if (4==1) {
	//			video_left = left + 172;	// one column play right from strip
	//			top = top - 3;
	//		}
	//		else {
	//			video_left = left + 40; // multicolum play inside strip
	//			top=top+40;
	//		}
	//	} else {
	//		// widget is at the right
	//		video_left = left + 4*172 - 40 - 402 - 2*17 ; // 402 plus borders 2x17 
	//	}

	//alert('video_left='+video_left+' top='+top);
	//video_div.style.top = top + 'px';
	//video_div.style.left = video_left + 'px';
	// CENTER SCREEN
	var arrayPageSize = getPageSize();
	var arrayPageScroll = getPageScroll();
	var video_top = arrayPageScroll[1] + ((arrayPageSize[3] -calc_height) / 2);
	var video_left = arrayPageScroll[0] +((arrayPageSize[0] - calc_width) / 2);
	if (video_top<0)
		video_top=0;
	if (video_left<0)
		video_left=0;
	video_div.style.position = 'absolute';
	video_div.style.top = video_top + 'px';
	video_div.style.left = video_left + 'px';

	 
	var vid_html = '<div style="padding:0px 5px 0px 5px;position:relative;">\
					<table cellspacing=0 cellpadding=0 border=0 style="margin:0px auto; background:transparant;width:100%;table-layout:fixed;position:relative;z-index:0">\
					<tr><td style="background:url(http://www.dik.nl/img/rbox/rbox5_01.png) no-repeat left top;padding:0;margin:0;width: 17px;height:22px;"></td>\
						<td style="background:url(http://www.dik.nl/img/rbox/rbox5_02.png) repeat-x top;height:22px;padding:0;margin:0;"></td>\
						<td style="background:url(http://www.dik.nl/img/rbox/rbox5_03.png) no-repeat left top;width: 17px;height:22px;padding:0;margin:0;"></td></tr>\
					<tr><td style="background:url(http://www.dik.nl/img/rbox/rbox5_04.png) no-repeat left top;width: 17px;background-color:#FFF;max-height:54px;padding:0;margin:0;" height=54 >\
					</td>\
					<td style="background:url(http://www.dik.nl/img/rbox/rbox5_05.png) repeat-x top;background-color:#fff; overflow:hidden;padding:0;margin:0;">\
					<div style="color:#DDDDDD;position:relative;border:1px solid transparent;overflow:hidden;height:325px;width:400px;background-color:transparent;padding:0;margin:0;">';
	vid_html +='<iframe name="playerframe" class="playerframe"	src="http://www.dik.nl/widget/playvideo/'+cvids_631861[videoitem_id].vid+'/402/318/S/W" width="100%" height="100%" frameborder=0 scrolling="no" allowtransparency="true"></iframe>';
	vid_html +=		'<div style="clear:both;"></div></div>\
					</td><td style="background:url(http://www.dik.nl/img/rbox/rbox5_06.png) no-repeat left top; 	width: 17px;  	background-color:#FFF;padding:0;margin:0;"></td></tr>\
					<tr><td style="background:url(http://www.dik.nl/img/rbox/rbox5_07.png) no-repeat left top;width: 17px;height:22px;padding:0;margin:0;"></td>\
						<td style="background:url(http://www.dik.nl/img/rbox/rbox5_08.png) repeat-x top; height:22px;padding:0;margin:0;"></td>\
						<td style="background:url(http://www.dik.nl/img/rbox/rbox5_09.png) no-repeat left top;width:17px;height:22px;padding:0;margin:0;"></td></tr>\
					</table>\
					<div onclick="closeVideoPlayer_631861();" style="position:absolute;top:13px;right:11px;cursor:pointer;cursor:hand;background:url(http://www.dik.nl/img/icon_bw_close22.png) no-repeat;width:24px;height:24px;z-index:10000;"></div>\
					</div>';
					
	video_div.innerHTML=vid_html;
	document.body.appendChild(video_div);
}

//----------------------------------------- pagination -------------------------------------

function initpage_631861() {
	//alert('cvids='+(cvids_631861.length).toString()+'itemspp='+matrix631861_itemspp);
	matrix631861_npages= Math.ceil(cvids_631861.length / matrix631861_itemspp);
}

function gotopage_631861(pg) {
		
	//if (!matrix631861_npages)
	initpage_631861();
	
	if (pg<1)
		pg=1;
	if (pg>matrix631861_npages)
		pg=matrix631861_npages;
		
	oldpg=matrix631861_curpg;
	matrix631861_curpg=pg;
	var mxs=document.getElementById('cvideos631861');
	var html='';
	for (var i=(matrix631861_curpg-1)*matrix631861_itemspp,cv=0;i<cvids_631861.length && cv<matrix631861_itemspp;i++) {
		html+=  vidthumbhtmlSmall_631861(i);
		cv++;
	}
	html+=  '<div class="v69resetstyle" style="clear:both;"></div>';
	
				html+=  '<div  class="v69resetstyle" style="margin:1px 0px">'+paginationhtml_631861(matrix631861_curpg, matrix631861_npages)+'</div>';
	
	mxs.innerHTML=html;
}

function vidthumbhtmlSmall_631861(vnr) {
	var html='';
	html='';
	html+='<div class="v69resetstyle" style="margin: 5px; float: left; position: relative; width: 162px; height: 90px;">';
		html+='<div  class="v69resetstyle" style="width:160px;max-height:122px;background:#f6f6f6;margin:0 auto 6px auto;overflow:hidden;position:relative;">';
			html+='<div  class="v69resetstyle" style="width:156px;height:86px;background:#cccccc;border:2px solid #dedede;overflow:hidden;position:relative;">';
				html+='<img style="position:absolute;width:160px;height:119px;top:-20px;left:0;cursor: pointer;" onclick="playVideo_631861('+vnr+')" title="'+htmlspecialchars(cvids_631861[vnr].desc)+'" src="'+cvids_631861[vnr].thumb+'" />';
				html+='<div class="v69resetstyle" style="position: absolute; width:24px;height:24px;top:28px;left:68px;z-index:200;cursor:pointer;cursor:hand;background:url(http://incdn.s3.amazonaws.com/dikp_v1/img/media_play24.png) no-repeat;" onclick="playVideo_631861('+vnr+')"></div>';
				html+='<div class="v69resetstyle" style="position: absolute; bottom: 0px; left: 0px;width:156px;height:15px;z-index:200;background-color:#dedede;color:#000000;font-size:11px;overflow:hidden;white-space: nowrap;padding:2px 5px 2px 3px;filter: alpha(opacity=80);filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80);-moz-opacity: 0.80; opacity: 0.80;cursor: pointer;" onclick="playVideo_631861('+vnr+')" >'+htmlspecialchars(cvids_631861[vnr].title)+'</div>';
			html+='</div>';
		html+='</div>';
	html+='</div>';
	return html;
}

//-----------------------------------------------------------------------
// cp 1..npages
function paginationhtml_631861(cp,npages) {
	//if (npages<=1)
	//	return '';	// empty if no pagination..
	var html='';
	html+='<div class="pages v69resetstyle" style="position:relative">';
	if (cp>1) {
		// we CAN prev! beter ltlt ipv &#171; 
		html+= '<div class="pageblock" onclick="gotopage_631861('+(cp-1)+');">&lt;&lt; Previous</div>';
	}
	else {
		html+= '<div class="pageblock_disabled">&lt;&lt; Previous</div>';
	}
			// Available pages - Link
		var lpage = 1;
		var cpageSur = 2;
		var dotted = false;
		for (var lpage=1;lpage<=npages;lpage++) {
			// 1-2...8-9-[10]-11-12....58-59 
			if ( lpage<=1 || (lpage>=cp-2 && lpage<=cp+2) || lpage>=npages) {
				dotted = false;	// we need to dot afterwards
				if (lpage == cp )
					html+='<div class="pageblock_curpage"><b>'+lpage+'</b></div>';
				else
					html+='<div class="pageblock" onclick="gotopage_631861('+lpage+');">'+lpage+'</div>';
			}
			else {
				// no printing.. buttt maybe we need to dot
				if ( !dotted ) {
					html+='<div class="pageblock_dots">...</div>';
					dotted = true;
				}
			}
		}
		
	// Next page - Link
	// beter gtgt ipv &#187;
	if ( cp<npages )
		html+='<div class="pageblock" onclick="gotopage_631861('+(cp+1)+');">Next &gt;&gt;</div>';
	else
		html+='<div class="pageblock_disabled">Next &gt;&gt;</div>';
	
	html+='<div style="position:absolute;right:5px;top:0px;">';
	html+='<a href="http://www.dik.nl//channel/videos/19783" target=_blank><img src="http://incdn.s3.amazonaws.com/dikp_v1/img/project/dik/logo.png" style="border:none;height:22px;display:inline;"></a>';
	html+='</div>';
	
	html+='</div>';
	return html;
}




