//matrix.js for channel 1802 / widget 637596 / cols 1 / rows 4 / skin clean 
// 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_637596= new Array();	// channelvideo's
var curvid_637596=0;			// first video
var cpvideo_637596=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 matrix637596_curpg=1;
var matrix637596_npages=1;
var matrix637596_itemspp=4;

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

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

function vp_createwg() {
	var html='<div id="widget_flash_637596" class="widget_flash" style="width: 172px;height:430px;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://www.dik.nl/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_637596.push({vid:42835, thumb: 'http://a.images.blip.tv/Vincente-RuslandIn3MinutenAlsJeGeenTijdHebtKijkHierDanNaRauw459-861.jpg', title: 'Russia Perestrojka innovation tour 15-21 juni www.rusland2009.nl', desc: 'The dutch delegation went to visit the ceo\'s of companies like yandex, beeline, Yota, Gameland, indepependent Media, Art Lebedev and 10 others between 15-21st of june. Did we enjoy Russia? We sure did. In russia, there is never one answer and only different realities. Look at the next 6 minutes of impressions. If you like what you see goto www.yubby.com/c/rusland2009 for the full interviews'});
	cvids_637596.push({vid:43357, thumb: 'http://a.images.blip.tv/Vincente-ArtLebadevDesignStudioTourOptimusMaximusKeyboard647-934.jpg', title: 'ArtLebadev design studio tour \&amp; optimus maximus keyboard', desc: 'Art Lebedev is a famous russion design studio in Moscow with 200 people who makes a lot of products. Their sophisticated keyboard optimus maximus which sells for 1730 dollar and has 120 little oled screens is famous. But they do products, websites and corperate identity products. The studio looks like a big living room. I am doing a tour and show the keyboard.'});
	cvids_637596.push({vid:42365, thumb: 'http://a.images.blip.tv/Vincente-CEOArkadyVolozTellsTheStoryOfYandex299-503.jpg', title: 'CEO Arkady Voloz tells the story of Yandex', desc: ''});
	cvids_637596.push({vid:43310, thumb: 'http://i.ytimg.com/vi/sBq_rOtmPgg/1.jpg', title: '@vincente bevlogen over #rusland2009', desc: 'Share your adventures realtime with your friends mobypicture.com'});
	cvids_637596.push({vid:42836, thumb: 'http://a.images.blip.tv/Vincente-GamelandPublisherCeoDmitriPluschevSalesThisYearDown50T914-814.jpg', title: 'Gameland publisher Ceo Dmitri Pluschev sales this year down 50%+ to M', desc: ''});
	cvids_637596.push({vid:42058, thumb: 'http://a.images.blip.tv/Vincente-InterviewYotaWimaxCEODennisSverdlov31500MInvestment800341-746.jpg', title: 'Interview Yota Wimax CEO Dennis Sverdlov (31) 500M euro investment, 800 mensen', desc: 'In Russia Yota is implementing a national Wimax network. Started in 2007 with 2 people they now have 800+ people and are live sinds september 2008. They invested \ufffdM in 1600 basestations in Moscow and St Petersburg. They are adding 10.000 new users a week. In 2010 they will have 1 million users. For  you get unlimited internet, voip, streaming and downloading music everywhere with no quota. Through the QOS quality of service business users get priority, then normal users and lastly the bittorrent users. Average user is 100gbyte/month with some people doing terrabyes. Dennis is an extreme enthousiastic en charasmatic CEO who is 31 years old and has an impressive vision. Enjoy the internet with him. Afterwarts I give an overview of the exciting devices you can use to connect to (specially the batterij operated mouse size wimax-wifi station is amazing).'});
	cvids_637596.push({vid:42366, thumb: 'http://a.images.blip.tv/Vincente-CEOIndependendMediaCEOElenaMyasnikova989-752.jpg', title: 'CEO Independend Media CEO Elena Myasnikova ', desc: ''});
	cvids_637596.push({vid:43358, thumb: 'http://a.images.blip.tv/Vincente-ArtLebadevDesignOptimusMaximusKeyboard264-816.jpg', title: 'Art Lebadev design optimus maximus keyboard', desc: 'Waarom neem je niet een echt toetsenbord met 120 kleine video schermpjes waar je alles op kan projecteren. Het kost 1730 dollar maar dan heb je ook iets wat direct alle programma\'s en talen kan aansturen. Een mooi stukje design werk. Helaas maar een paar honderd van verkocht'});
	cvids_637596.push({vid:42837, thumb: 'http://a.images.blip.tv/Vincente-rusland2009IetsMeerDetailMetWomen20DuringClubbing698-649.jpg', title: '#rusland2009 iets meer detail met women 2.0 during clubbing', desc: ''});
	cvids_637596.push({vid:42364, thumb: 'http://a.images.blip.tv/Vincente-InterviewLivejournalcomManagerAngeliqueDemoDiscussionRuss776-110.jpg', title: 'Interview livejournal.com manager Angelique, demo \& discussion Russia', desc: ''});
	cvids_637596.push({vid:42170, thumb: 'http://a.images.blip.tv/Vincente-VID00009320-309.jpg', title: 'Alexander Egorov we russions are poor, hungry and angry', desc: ''});
	cvids_637596.push({vid:25814, thumb: 'http://i.ytimg.com/vi/svjLIZKAHQI/1.jpg', title: 'Art Lebedev Optimus Maximus CES 2008 review hands on', desc: 'http://www.clipset.net/2008/01/14/ces-2008-optimus-maximus-el-teclado-con-botones-oled-probado/ '});
	cvids_637596.push({vid:42012, thumb: 'http://a.images.blip.tv/Vincente-rusland2009UniversityInteractiveArtDepartmentProfNinaDvor213-331.jpg', title: 'St Petersburg university interactive art department Prof Nina Dvorko \&amp; student Monika', desc: 'Nice optimistic interview from student Monika from the interactive Art department and Prof Nina Dvorko about the role multimedia story telling will tell in our world'});
	cvids_637596.push({vid:42010, thumb: 'http://a.images.blip.tv/Vincente-rusland2009PaycashVictorDostov452-580.jpg', title: 'Paycash CEO Victor Dostov', desc: 'After 10 years hard workd Victor Dostow sold his payment system to Yandex, the biggest search engine from russia. He is now working on a mobile payment system'});
	cvids_637596.push({vid:42011, thumb: 'http://a.images.blip.tv/Vincente-Petersburg717-640.jpg', title: 'Peter Hamecour (ex Nos) over de ziel van Rusland \&amp; Petersburg', desc: 'Peter Hamecour heeft als NOS/AD correspondent 20 jaar in Rusland geleefd. Hierbij vertelt hij of de ziel van de natie en waar het in zijn opinie naar toe gaat. '});
	cvids_637596.push({vid:42013, thumb: 'http://a.images.blip.tv/Vincente-StPetersburgAlsStad256-753.jpg', title: 'St Petersburg als stad', desc: ''});
	cvids_637596.push({vid:43360, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/157/763/15776325_200.jpg', title: 'Vincent Everts over de reis voordat hij weg gaat naar schiphol', desc: ''});
	cvids_637596.push({vid:42009, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/157/758/15775896_200.jpg', title: 'Harriet www.retriever.nl, ik wil gewoon keihard business doen in rusland', desc: ''});
	cvids_637596.push({vid:39261, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/942/416/9424161_200.jpg', title: 'Vincent Everts interviews Nicolay Yaremko of Yandex', desc: 'Yandex (yandex.ru, \u042f\u043d\u0434\u0435\u043a\u0441) is russia\'s largest search engine with a market share of 60%. Nicolay gives a presentation at thenextweb 2009.\n'});
	cvids_637596.push({vid:27012, thumb: 'http://a.images.blip.tv/Vincente-BasOzonruVpMarketing756-305.jpg', title: 'Bas Ozon.ru vp marketing', desc: ''});
	cvids_637596.push({vid:34044, thumb: 'http://ts.vimeo.com.s3.amazonaws.com/101/039/10103968_200.jpg', title: 'Interview Dorrit Gruijters over de Innovatiereis naar Rusland', desc: ''});
	cvids_637596.push({vid:27010, thumb: 'http://a.images.blip.tv/Vincente-AlexiOzonru990-670.jpg', title: 'Alexey Marketing Manager Ozon.ru about Ebooks', desc: ''});
	cvids_637596.push({vid:27011, thumb: 'http://a.images.blip.tv/Vincente-AlexiOzonruAboutEbookExperiences633-336.jpg', title: 'Alexey Marketing manager Ozon.ru about Ebook experiences', desc: 'Alexey discusses the trends in the russion e-commerce market and the role which Ozon, the marketleader in this space plays at the moment. How bad is the crisis? '});
	cvids_637596.push({vid:25971, thumb: 'http://a.images.blip.tv/Vincente-MoscowCity12MiljardBouwerkAppartementenHotelsEnOffice529-805.jpg', title: 'Moscow City 12 miljard bouwerk appartementen, hotels en office', desc: '\nZe stampen het wel uit de grond. Nu is er even geen geld dus de bouw ligt stil maar prachtig stukje werk van Chinese, turkse en uiteindelijk ook russische bedrijven. \n'});
	cvids_637596.push({vid:25969, thumb: 'http://a.images.blip.tv/Vincente-SchlengScheienCultureelAttacheeVanMoscowAmbassadeOverMed595-124.jpg', title: 'Schleng Scheien Cultureel attachee van Moscow Ambassade over Media ontwikkelingen', desc: '\nWat zijn de interessante oude media (TV eerste kanaal, krant: Novia Gazetta) om te bezoeken, waarom is www.LiveJournal.com zo\'n interessant platform is (Facebook van Rusland waar een Nederlandse CEO zit). Commenrciele kunstontwikkelingen zijn hier erg interessant en innovatief zoals de Ostengruppe. Hij praat over de crisis en welke mogelijkheden het biedt. Nu is de tijd om rusland te bezoeken en te leren kennen. \n'});
	cvids_637596.push({vid:25968, thumb: 'http://a.images.blip.tv/Vincente-AndreGeneralManagerOfArtLebadevDesignStudio517-714.jpg', title: 'Andre General manager of ArtLebadev design studio', desc: '\n180 people from the biggest design studio in eastern europa who create fantastic website, retail products, products development, corperate identies and printwork. Very interesting place with lots of dynamic people. They work for Microsoft. Samsung, HP and many other clients.Wonderfully excentric and interesting\n'});
	cvids_637596.push({vid:25966, thumb: 'http://a.images.blip.tv/Vincente-AnneteWassenaarCEOImpressMediaRealEstateVerkochtAanTurk262-46.jpg', title: 'Annete Wassenaar CEO impress Media real estate verkocht aan turkse uitgever', desc: '\nAnnete Wasenaar kwam 9 jaar geleden in Rusland aan. Spreekt vloeiend rusland en heeft nu 200 man aan het werk door een bloeiende community (met bladen, evenementen, online \& presente) te creeren van project ontwikkelaars, makelaars en de financiele industrie. First mover advantage, vertrouwen voor geld verdienen leidde tot 80% marktaandeel wat nu gestegen is tot 95%. Nieuwe media inclusief video is een belangrijk gedeelte van de boodschap. Hoe is het om als nederlander, en als vrouw hier zo\'n ondernemende rol te vervullen?\n'});
	cvids_637596.push({vid:25967, thumb: 'http://a.images.blip.tv/Vincente-AlexiBeelineMobileOperator894-372.jpg', title: 'Alexi Beeline Mobile operator', desc: '\nWhat is Beeline 50Million + mobile users, 1 million Fiber the the roof connections and the crisis is nothing more then a bit of rain. \n'});
	cvids_637596.push({vid:25970, thumb: 'http://a.images.blip.tv/Vincente-ArtLebadevDesignStudioTour930-861.jpg', title: 'ArtLebadev design studio tour', desc: ''});
	cvids_637596.push({vid:22467, thumb: 'http://a.images.blip.tv/Vincente-AnnaliesVanDerBeltCEOSUPCOMWwwLivejournalcomDeel1113.png', title: 'Annelies van den Belt CEO SUP.COM www.Livejournal.com deel1', desc: 'Annelies van den Belt is CEO van het grootste internet www.sup.com media bedrijf met www.krant.ru, www.livejournal.com met 23 miljoen leden in rusland en de grootste sportkrant. Zij heeft in een vorig leven www.times.co.uk gereorganiseerd en is nu bezig SUP in de vaart der volkeren op te stoten. Ze praat in dit interview over haar achtergrond, Sup, Rusland en de crisis.\n'});
	cvids_637596.push({vid:25834, thumb: 'http://a.images.blip.tv/Crenews-CRENews0132448-233.jpg', title: 'CRE News #013 (2)', desc: '\n\nSpecial guest - Konstantin Kovalev, operating partner of Blackwood.\n\n'});
	cvids_637596.push({vid:25973, thumb: 'http://a.images.blip.tv/Vincente-MoscowCity12MiljardBouwerkAppartementenHotelsEnOffice297-508.jpg', title: 'Moscow City 12 miljard bouwerk appartementen, hotels en office', desc: '\nNu van de grond gezien\n'});
	cvids_637596.push({vid:25972, thumb: 'http://a.images.blip.tv/Vincente-RedSquarteQuickImpression720-323.jpg', title: 'Red Squarte quick impression', desc: ''});
	cvids_637596.push({vid:22468, thumb: 'http://a.images.blip.tv/Vincente-AnnaliesVanDerBeltCEOSUPCOMWwwLivejournalcom336.png', title: 'Annalies van den Belt CEO SUP.COM www.Livejournal.com', desc: 'Annelies van den Belt is CEO van het grootste internet www.sup.com media bedrijf met www.krant.ru, www.livejournal.com met 23 miljoen leden in rusland en de grootste sportkrant. Zij heeft in een vorig leven www.times.co.uk gereorganiseerd en is nu bezig SUP in de vaart der volkeren op te stoten. Ze praat in dit interview over haar achtergrond, Sup, Rusland en de crisis. \n'});
	cvids_637596.push({vid:22469, thumb: 'http://a.images.blip.tv/Vincente-VID00012836-307.jpg', title: 'Richard de Booij, Wannahaves over de Rusland2009 innovatie reis in Juni', desc: '\nWaarom gaat Wannahaves naar de grootste internet markt van Europa? Richard vertelt over zijn succes in China en waarom hij mee gaat met de Interimic/marketingfacts reis\n'});
	cvids_637596.push({vid:22458, thumb: 'http://a.images.blip.tv/Vincente-VID00009226-606.jpg', title: 'Roeland Stekelenburg NOS over de Rusland Innovation trip', desc: '\nInterimic en Marketingfacts organiseren een Rusland innovatie trip. Waarom gaan iemand als Roeland stekelenburg, hoofd nieuwe media en Gerard Dielessen directeur NOS mee? \n'});
	cvids_637596.push({vid:22473, thumb: 'http://a.images.blip.tv/Vincente-VID00013657-573.jpg', title: 'Ronald van den Hoff oprichter Seats2meet over de Rusland2009 innovatie reis', desc: '\nRonald van den Hoff, oprichter van Mindz.com, Seats2meet en andere innovatieve connecten vertelt wat hem inspireerd in Rusland. Hij heeft nav zijn China innovatie reis al een outsourcings bedrijf in Bulgarije opgericht (!) en wil graag kijken in de grootste internet en outsourcing markt in rusland.\n'});
	cvids_637596.push({vid:22471, thumb: 'http://a.images.blip.tv/Vincente-VID00014588-704.jpg', title: 'Marco Derksen Marketingfacts over de Rusland2009 innovatie reis', desc: '\nWaarom gaat Marketingfacts naar de grootste internet markt van Europa? Marco praat over de waarde van de groep en het kijken buiten de nederlandse grenzen en waarom Rusland zo interressant is.\n'});
	cvids_637596.push({vid:22474, thumb: 'http://a.images.blip.tv/Vincente-VID00015871-749.jpg', title: 'Hugo Leijtens start in China na innovatie reis', desc: '\nInterimic en Marketingfacts organiseerde een China reis, hugo Leijtens raakte zo geinspireerd dat hij er direct een software development bedrijf heeft beginnen rondom social media. \n'});
	cvids_637596.push({vid:22470, thumb: 'http://a.images.blip.tv/Vincente-VID00011292-298.jpg', title: 'Serge Fenenko over de Rusland als als grootste internet markt', desc: '\nSerge over de russische media markt. Is de afgelopen jaren met 20% per jaar gegroeid. Hij woont al 15 jaar in Nederland maar doet vele acties in Moscow , de meest ontwikkelde internet stad in Europa met 80% breedband. http://www.marketingfacts.nl/pages/bloggers/#Serge%20Fenenko \n'});
	cvids_637596.push({vid:25818, thumb: 'http://i.ytimg.com/vi/shC_PX9AHZ8/1.jpg', title: 'CES 2008: Optimus Maximus questions answered', desc: 'After our last post on the Optimus Maximus there were a lot of questions regarding how it works and whatnot. We answer many of these questions including the most important one: who would buy a \0000 keyboard? More info at http://www.artlebedev.com and http://www.technologyevangelist.com '});
	html+='<div id="cvideos637596">';
	html+='</div>';	// widget_flash
	
	wgElm_637596.innerHTML=html;
	wgElm_637596.style.display = 'block';
	gotopage_637596(matrix637596_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_637596() {
	closevid_637596();
}

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


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



function closeVideoPlayer_637596() {
	// close screen
	closevid_637596();
	// call to flash object
	//getFlashObject("videostrip_637596").videoDeselect(0);
}


function closevid_637596() {
  el = document.getElementById('vidplayer_637596');
  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_637596(videoitem_id) {

	// close old one
	closevid_637596();

	// open new
	//var vidlist = document.getElementById(id);
	var video_div = document.createElement('div');
	var title='hello';
	video_div.id = "vidplayer_637596";
	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_637596');
	//	//var top = vp_offsetTop(wgElm_637596);
	//	//var left = vp_offsetLeft(wgElm_637596);
	//	var top = vp_offsetTop(wgFlashDiv);
	//	var left = vp_offsetLeft(wgFlashDiv);
	//
	//	// left or right
	//	if (left < document.body.clientWidth/2) {
	//		if (1==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 + 1*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:318px;width:400px;background-color:transparent;padding:0;margin:0;">';
	vid_html +='<iframe name="playerframe" class="playerframe"	src = "http://www.dik.nl/widget/playvideo/'+cvids_637596[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_637596();" 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_637596() {
	//alert('cvids='+(cvids_637596.length).toString()+'itemspp='+matrix637596_itemspp);
	matrix637596_npages= Math.ceil(cvids_637596.length / matrix637596_itemspp);
}

function gotopage_637596(pg) {
		
	//if (!matrix637596_npages)
	initpage_637596();
	
	if (pg<1)
		pg=1;
	if (pg>matrix637596_npages)
		pg=matrix637596_npages;
		
	oldpg=matrix637596_curpg;
	matrix637596_curpg=pg;
	var mxs=document.getElementById('cvideos637596');
	var html='';
	for (var i=(matrix637596_curpg-1)*matrix637596_itemspp,cv=0;i<cvids_637596.length && cv<matrix637596_itemspp;i++) {
		html+=  vidthumbhtmlSmall_637596(i);
		cv++;
	}
	html+=  '<div class="v69resetstyle" style="clear:both;"></div>';
	
			if (matrix637596_npages>1) {
			html+=  '<div  class="v69resetstyle" style="margin:1px 0px">'+paginationhtml_637596(matrix637596_curpg, matrix637596_npages)+'</div>';
		}
	
	mxs.innerHTML=html;
}

function vidthumbhtmlSmall_637596(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_637596('+vnr+')" title="'+htmlspecialchars(cvids_637596[vnr].desc)+'" src="'+cvids_637596[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://www.dik.nl/img/media_play24.png) no-repeat;" onclick="playVideo_637596('+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_637596('+vnr+')" >'+htmlspecialchars(cvids_637596[vnr].title)+'</div>';
			html+='</div>';
		html+='</div>';
	html+='</div>';
	return html;
}

//-----------------------------------------------------------------------
// cp 1..npages
function paginationhtml_637596(cp,npages) {
	if (npages<=1)
		return '';	// empty if no pagination..
	var html='';
	html+='<div class="pages v69resetstyle">';
	if (cp>1) {
		// we CAN prev! beter ltlt ipv &#171; 
		html+= '<div class="pageblock" onclick="gotopage_637596('+(cp-1)+');">&lt;&lt; </div>';
	}
	else {
		html+= '<div class="pageblock_disabled">&lt;&lt; </div>';
	}
			html+='<div class="pageblock_dots" style="width:80px;"></div>';
		
	// Next page - Link
	// beter gtgt ipv &#187;
	if ( cp<npages )
		html+='<div class="pageblock" onclick="gotopage_637596('+(cp+1)+');"> &gt;&gt;</div>';
	else
		html+='<div class="pageblock_disabled"> &gt;&gt;</div>';
	html+='</div>';
	return html;
}



