//matrix.js for channel 458 / widget 456501 / cols 3 / rows 8 / 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_456501= new Array();	// channelvideo's
var curvid_456501=0;			// first video
var cpvideo_456501=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 matrix456501_curpg=1;
var matrix456501_npages=1;
var matrix456501_itemspp=24;

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

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

function vp_createwg() {
	var html='<div id="widget_flash_456501" class="widget_flash" style="width: 516px;height:830px;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_456501.push({vid:7250, thumb: 'http://i.ytimg.com/vi/ZNKTGrsTEMA/1.jpg', title: 'Affiliate Article Marketing - New Free Brad Callen Submitter', desc: 'http://www.threereviews.com/resources/Article-Submitter-Brad-Callen.html Affiliate article submitter reviews - 3 Free Article Directory submission software titles I use reviewed compared and the best are recommended.'});
	cvids_456501.push({vid:7253, thumb: 'http://i.ytimg.com/vi/fLJskZNEIDY/1.jpg', title: 'Make Money - Google Adwords and Adsense with Keyword Elite 1', desc: 'Learn how to create great Google Adwords Ads, Save Money and Increase Click Through Ratio (CTR) \&amp; Traffic to Your Site with, Make Money with Google Adsense using Brad Callen\'s Keyword Elite!'});
	cvids_456501.push({vid:7254, thumb: 'http://i.ytimg.com/vi/pkhG69E7Jjw/1.jpg', title: 'Affiliate Elite - Project #4 (by Affiliate-Elite.net)', desc: 'From http://affiliate-elite.net\n\nThe first project showcasing the power of Affiliate Elite - the upcoming affiliate marketing software release from Brad Callen.\n\nVideo courtesy of http://affiliate-elite.net'});
	cvids_456501.push({vid:7255, thumb: 'http://i.ytimg.com/vi/S_dWj_Eb7cQ/1.jpg', title: 'Affiliate Elite - Finding Mike Filsaime\'s Best Affiliates!', desc: 'http://brads-affiliate-elite.blogspot.com/'});
	cvids_456501.push({vid:7256, thumb: 'http://i.ytimg.com/vi/7rchWUkghIk/1.jpg', title: 'Keyword Elite: Best Keyword Research Tool for Google Adwords', desc: 'Keyword Elite is the best Keywords Research Tools. Brad Callen will show you how to research keywords for Google Adwords and how to crush your competition easily! You will also learn how to make Make Money Online using Google Adsense and how to Improve your Search Engine Ranking and Traffic as well as SEO (Search Engine Optimization). For more details, visit: http://www.TrafficPosition.com'});
	cvids_456501.push({vid:7257, thumb: 'http://i.ytimg.com/vi/CA29aqiTf70/1.jpg', title: 'Brad Callen\'s Affiliate Elite Review', desc: 'http://MyOpenReview.com\n\nI can honestly say that 70% of the internet marketing products out there are truly crap and then out of the 30% that are not crap there are only a few that are truly powerful solutions. Recently, Brad Callen created \&quot;Affiliate Elite! This product is surrounded by a Hype Avalanched. But all this HYPE is real?'});
	cvids_456501.push({vid:7258, thumb: 'http://i.ytimg.com/vi/vyTkfIIdhf4/1.jpg', title: 'Make Money - Google Adwords and Adsense with Keyword Elite 2', desc: 'Increase Google Adwords click throughs with Keyword Elite - Part 2. Learn from Brad Callen how to find the highest quality keywords in seconds! Learn how to Make Money from Google Adsense too, great Tips and Tricks. Visit: http://www.TrafficPosition.com for more details.'});
	cvids_456501.push({vid:7259, thumb: 'http://i.ytimg.com/vi/meH7EHP5v-8/1.jpg', title: 'Keyword Elite is not a scam - Project 1', desc: 'http://www.bestcomputerfixguide.com/keyword_elite\n\nThis is the official demo of the most powerfull PPC tool.  Generated 10 000+ keywords, spy on competition, adsense auto-templates.'});
	cvids_456501.push({vid:7260, thumb: 'http://i.ytimg.com/vi/nJXRqJrKmxM/1.jpg', title: 'The Quick and Easy Article Submitter Video', desc: 'No other free program on the web will allow you to submit your articles to that many article directories. so be sure to download your free copy right away.\n\nhttp://goaddr.com/78n\n\nFor a lot of people, myself included, it\'s always been difficult to understand new software programs without someone showing how to do it. Many people just learn better visually.\n\nWith that in mind, Brad has just released an in-depth 18 minute step-by-step video tutorail showing exactly how to use the software program.\n\nYou\'ll find it at:\n\nhttp://articlesubmitter.imwishlist.com/Videos/Help_Video1/Help_Video1.html'});
	cvids_456501.push({vid:7261, thumb: 'http://i.ytimg.com/vi/2nZBIawPvpI/1.jpg', title: 'Affiliate Elite Webinar - Project 1, Part 1', desc: 'http://buy-affiliateelite.com A small portion of a teaching webinar explaining what this amazing product can do. For more information about Affiliate Elite, go to http://www.buy-affiliateelite.com'});
	cvids_456501.push({vid:7262, thumb: 'http://i.ytimg.com/vi/gXuauWJgp8k/1.jpg', title: 'Affiliate Elite Review', desc: 'http://positionle.bryxen9.hop.clickbank.net Download your competitors pay per click ads and keywords in seconds. Find all the websites an affiliate owns!\n\nSee more videos: http://www.keywordresearching.com'});
	cvids_456501.push({vid:7263, thumb: 'http://i.ytimg.com/vi/KfOA3snsYjs/1.jpg', title: 'Find Hot Clickbank Products w/ Affiliate Elite', desc: 'http://buy-affiliateelite.com Find the hottest products on Clickbank, PayDOTcom and Commission Junction using Affiliate Elite.'});
	cvids_456501.push({vid:7264, thumb: 'http://i.ytimg.com/vi/cemS8hkC25s/1.jpg', title: 'Affiliate Elite - Affiliate Marketing Has Never Been Easier', desc: 'http://buy-affiliateelite.com Spy on your competition, use their Adwords ads against them and more with Affiliate Elite.'});
	cvids_456501.push({vid:7265, thumb: 'http://i.ytimg.com/vi/CGxw5VTDobk/1.jpg', title: 'Spy On Your Competitors w/ Affiliate Elite', desc: 'http://buy-affiliateelite.com The power in Affiliate Elite will change the way you do affiliate marketing forever. Find your competitors Adwords ads and find what keywords they are using to drive traffic.'});
	cvids_456501.push({vid:7266, thumb: 'http://i.ytimg.com/vi/MqOA5fe3Yds/1.jpg', title: 'Explode Affilate Sales with Affiliate Elite', desc: 'http://buy-affiliateelite.com Watch your affiliate marketing sales soar as you use Affiliate Elite. Reverse engineer Google Adwords ads and more.'});
	cvids_456501.push({vid:7267, thumb: 'http://i.ytimg.com/vi/zvp_ECR599M/1.jpg', title: 'How to find keywords and Not to Pay for Adwords', desc: 'http://twitterautomator.com ... how to search out competitor\'s keywords list and not pay for Google Adwords'});
	cvids_456501.push({vid:7268, thumb: 'http://i.ytimg.com/vi/6HQSTxNbAqQ/1.jpg', title: 'Affiliate Elite - Project #2 (by Affiliate-Elite.net)', desc: 'From http://affiliate-elite.net\n\nDiscover the power of Affiliate Elite - Internet Marketing guru Brad Callen\'s latest creation.\n\nVideo courtesy http://affiliate-elite.net'});
	cvids_456501.push({vid:7272, thumb: 'http://i.ytimg.com/vi/_vD3PgmUbOU/1.jpg', title: 'Seo tool compare keywords and boost google ranking.', desc: 'Keyword Elite is the best Keywords Research Tools. Brad Callen will show you how to research keywords for Google Adwords and how to crush your competition easily! You will also learn how to make Make Money Online using Google Adsense and how to Improve your Search Engine Ranking and Traffic as well as SEO (Search Engine Optimization).\n\n http://samalmarr.bryxen4.hop.clickbank.net'});
	cvids_456501.push({vid:7273, thumb: 'http://i.ytimg.com/vi/HmuqZXBKGbU/1.jpg', title: 'Keyword Elite Software Discount', desc: 'Keyword Elite Massive Discount Offer, This is an exclusive offer available at http://www.keywordelite.24hourearner.com'});
	cvids_456501.push({vid:7274, thumb: 'http://i.ytimg.com/vi/E5SKjWCGA74/1.jpg', title: 'Affiliate Elite In Action', desc: 'Grab It Now Or Forever Be Sorry For Losing A Lot Of Money Ahead'});
	cvids_456501.push({vid:7278, thumb: 'http://i.ytimg.com/vi/icOZq5wOL9A/1.jpg', title: 'AFFILIATE ELITTE', desc: 'How To Use Affiliate New Software'});
	cvids_456501.push({vid:7279, thumb: 'http://ak.static.dailymotion.com/dyn/preview/320x240/7302828.jpg?20080212002122', title: 'Make Money - Google Adwords and Adsense with Keyword Elite 1', desc: 'http://hitek192.bryxen4.hop.clickbank.net/ Learn how to create great Google Adwords Ads, Save Money and Increase Click Through Ratio (CTR) \&amp; Traffic to Your Site with, Make Money with Google Adsense using Brad Callen\'s Keyword Elite http://hitek192.bryxen4.hop.clickbank.net/'});
	cvids_456501.push({vid:7280, thumb: 'http://ak.static.dailymotion.com/dyn/preview/320x240/10836418.jpg?20080816030317', title: 'Affiliate Article Marketing - New Free Brad Callen Submitter', desc: 'http://www.threereviews.com/resources/Article-Submitter-Brad-Callen.html Affiliate article submitter reviews - 3 Free Article Directory submission software titles I use reviewed compared and the best are recommended.'});
	cvids_456501.push({vid:7281, thumb: 'http://ak.static.dailymotion.com/dyn/preview/320x240/12067922.jpg?20081025153742', title: 'Search Engine Optimization Strategy', desc: 'http://www.buyseoelite.infoSince word is getting out about SEO Elite\u2122 4.0, let me warn you, you don\'t want a competitor using it against you.  \&quot;You must have SEO Elite or you will be at a distinct disadvantage to those that do.\&quot;  '});
	cvids_456501.push({vid:7284, thumb: 'http://i.ytimg.com/vi/5qoUilSq_m0/1.jpg', title: 'SEO Elite', desc: 'To find out more about SEO Elite, You can visit the review website at http://www.seoelite-reviews.com\nfor additional perks and bonuses.'});
	cvids_456501.push({vid:7285, thumb: 'http://i.ytimg.com/vi/TGJfcBaIyiM/1.jpg', title: 'SEO Elite 4.0 Training: Project 1,  Video 1 of 3', desc: 'Purchase SEO Elite from me and get a half hour of SEO/Web consulting valued at \000. This offer expires Dec 31st, 2007 so take advantage of it now before it\'s gone!'});
	cvids_456501.push({vid:7286, thumb: 'http://i.ytimg.com/vi/0praqiH1n9A/1.jpg', title: 'SEO Elite 4.0 Training: Project 1,  Video 2 of 3', desc: 'Purchase SEO Elite from me and get a half hour of SEO/Web consulting valued at \000. This offer expires Dec 31st, 2007 so take advantage of it now before it\'s gone!'});
	cvids_456501.push({vid:7287, thumb: 'http://i.ytimg.com/vi/jGHnCstR4rE/1.jpg', title: 'SEO Elite 4.0 Training: Project 1,  Video 3 of 3', desc: 'Purchase SEO Elite from me and get a half hour of SEO/Web consulting valued at \000. This offer expires Dec 31st, 2007 so take advantage of it now before it\'s gone!'});
	cvids_456501.push({vid:7288, thumb: 'http://i.ytimg.com/vi/6lO2ZH08KoQ/1.jpg', title: 'Seo Elite Review Can I to get # 1 Google Rankings?', desc: 'http://www.a1watchdog.com/seoelite.html\nWatch this video to see how Seo Elite users Get #1 and page 1 rankings in google.'});
	cvids_456501.push({vid:7289, thumb: 'http://i.ytimg.com/vi/b1elzXo2xM0/1.jpg', title: 'SEO training video seo elite', desc: 'http://hothot.ath.cx:8080/special/seo/\n\nThis is \"SEO Elite\" a tool that everyone successful webmaster uses! give it a check today as it has done wonders for us'});
	cvids_456501.push({vid:7290, thumb: 'http://i.ytimg.com/vi/Sk6ItNUJNdw/1.jpg', title: 'SEO Tips, Tutorials, and Truth and tools you need', desc: 'http://hothot.ath.cx:8080/special/seo/\n\nThis is \&quot;SEO Elite\&quot; a tool that everyone successful webmaster uses! give it a check today as it has done wonders for us'});
	cvids_456501.push({vid:7291, thumb: 'http://i.ytimg.com/vi/r9tPlgxmsr0/1.jpg', title: 'With SEOElite You Can Humiliate Your Competition!!', desc: '\&quot;Learn how I use this revolutionary software to consistently average over 15,000 visitors to my websites, per day - Using only FREE search engines traffic from Google, Yahoo, and MSN!\&quot;'});
	cvids_456501.push({vid:7292, thumb: 'http://i.ytimg.com/vi/foDE5M2OeFI/1.jpg', title: 'SEO Elite Review', desc: 'http://www.halotis.com/reviews/seo.php\nSEO Elite is a software package that makes finding and acting on your optimal SEO, and backlinking strategy easy.'});
	cvids_456501.push({vid:7293, thumb: 'http://i.ytimg.com/vi/3HF5ate25NM/1.jpg', title: 'How to get the Top 100 Free Keywords - Nic Faivre Presents', desc: 'http://ExpertWealthCreator.com\nhttp://NicFaivre.com\nEver wanted to know a simple and effective way to get the top 100 keywords or free keywords? Learn how today! Nic Faivre divulges all...\n\nmost searched keywords, popular keywords, search engine keywords,internet keywords,keywords health insurance company, keywords jaksor mp3,keywords ohio individual health insurance, website keywords,meta keywords, \nsociological keywords,enter keywords here ,grant keywords ,how to get the right keywords ,what are keywords ,ace controls keywords ,choosing keywords, add keywords here ,good keywords \nhotel ice romania keywords ,keywords california individual health insurance ,keywords here \nkeywords michigan health insurance,keywords tools \ntags, keywords ,auction keywords ,highest paying keywords ,how to make money blogging with the right keywords ,keywords california health insurance plan ,keywords health insurance california ,keywords health insurance illinois \nkeywords health insurance plan california ,keywords health insurance quote ,keywords health insurance quote california \nkeywords medical health insurance ,keywords people search ,keywords texas health insurance \nnumber 6 has hundred keywords in numerology \nsearch keywords,top keywords ,what keywords are people searching for ,hack gate keywords ,air conditioner keywords ,best keywords ,country keywords ,ebay keywords listing ,file search by keywords ,fun keywords ,keywords analyzer \nkeywords bitch inside of me mp3 ,keywords california health insurance , keywords for catcher in the rye , keywords health insurance for self employed , keywords health insurance indiana , keywords health insurance lead \nkeywords in czech , keywords in your niche long tail traffic , keywords individual health insurance california , keywords management \n keywords mustang sally mp3 ,keywords paul anka mp3 , keywords pennsylvania health insurance , keywords sejo kalac mp3 , keywords simpli reied mp3 , keywords vs. tagsfirefox 3 , sql server keywords ,summary of keywords a vocabulary of culture and society race , top paying keywords \n definition of keywords , ad groups keywords site campaigns relevant , aol keywords , best keywords for online advertising ,budget optimization keywords amount base , convert csv to keywords string , day\'s most-searched-for keywords \n ebay keywords , electronic resume keywords \n how do i choose good keywords for my website \n how to clear keywords in dogpile , improve website with negative keywords , keywords arizona health insurance ,keywords car finance ,\n keywords cheap life insurance , keywords drug treatment ,keywords for grants ,\n keywords health insurance in california , keywords in page copy , keywords in speech \nkeywords site , keywords statistics'});
	cvids_456501.push({vid:7294, thumb: 'http://i.ytimg.com/vi/RrgFJZt5AFM/1.jpg', title: 'Use Keyword Elite and Learn the Techniques From Aaron Wall', desc: 'http://www.seobook.com/3670.html\n\nI believe you have already heard about Keyword Elite. Keyword Elite is a desktop-based keyword generation software. \&quot;Desktop-based\&quot; is important because some keyword generators like WordTracker and AdWords Accelerator, are web-based, subscription-based. As for Keyword Elite, you can own it for life.\n\nBut before you go out there to get your copy of the Keyword Elite software, please some time to take a look at my simple review on the Keyword Elite software.\n\n1) Keyword Elite Who is it for?\n\nThis keyword software is ideal for anyone who wants to find a good solution to do their keyword research, from creating and selecting good keywords to build your list to spying your Adwords competition.\n\n2) Keyword Elite Strong Points\n\nHas a very user-friendly interface.\n\nHas a success blue-print e-book which is a step-by-step guide takes YOU from knowing absolutely nothing about Pay Per Click marketing.\n\nAble to assist you well in building a large list of keywords for any market.\n\nAble to assist you to analyze and spy your Adwords competitors so that you can fine tune your Adwords campaign to beat your competitors.\n\nProduces killer keywords lists.\n\nIntegrate easily with Wordtracker.\n\nAble to assist you to build up keywords that are killer for Adsense pages.\n\nKeyword Elite always stay updated through emails.\n\n3) Keyword Elite Weak Points\n\nNo smooth way to go from projects to projects. You need to work on separate projects.\n\nThe forum that comes with the purchase is not very active.\n\nKeyword Elite is slow to generate keywords.\n\n4) Keyword Elite Ratings\n\n5/5 for user-friendliness and usability\n5/5 for pay-per-click advertisers\n4/5 for search engine optimization effort\n\n4/5 for niche-miners\n5/5 for values.\n\n5) Keyword Elite Verdict\n\nA pretty up-to-standard keyword research tool for spying on competitors, keywords list management and creation of kill keyword lists. Good to go.\n\nKeyword research, as you might already know, is a critical activity for uncovering niches and uncovering low-competition keywords, either for SEO purposes or pay per click advertising. While the popular keyword tools like Wordtracker and Overture do provide good results, it\'s some of the less obvious keyword research tools that can take your keyword research to the next level. Here are some less obvious keyword research tools you can start using today:\n\nWordtracker\n\nWordtracker is a free or paid website that has been around for a while. It\'s \'range\' is very wide and you can use it to expand your keyword portfolio easily.\n\nKeyword Discovery\n\nKeyword Discovery is one of the most advanced keyword research tools out there. The free option is great, but the paid option is where the money is. You will really be able to go deep and wide in your keyword research by using this service.\n\nNiche Taxi\n\nNiche Taxi is a very unique marketing weapon in that it actually tells you whether they keyword phrase you have typed in to search is actually profitable! You can also build an Adsense empire over there by registering a domain name and generating a customized website for free. This takes niche research to another level. It allows you to research keywords as well as create profitable websites that bring you Adsense income.\n\nThere you go, 3 little-known \'keyword spying\' tools that you can use today to explode your Internet profits. Go try them out today and you might be surprised at your results.'});
	cvids_456501.push({vid:7295, thumb: 'http://i.ytimg.com/vi/7rchWUkghIk/1.jpg', title: 'Keyword Elite: Best Keyword Research Tool for Google Adwords', desc: 'Keyword Elite is the best Keywords Research Tools. Brad Callen will show you how to research keywords for Google Adwords and how to crush your competition easily! You will also learn how to make Make Money Online using Google Adsense and how to Improve your Search Engine Ranking and Traffic as well as SEO (Search Engine Optimization). For more details, visit: http://www.TrafficPosition.com'});
	cvids_456501.push({vid:7296, thumb: 'http://i.ytimg.com/vi/_NInybL2cPo/1.jpg', title: 'Keyword Elite Review - The truth', desc: 'Do you REALLY need this application to make money online as an Internet Marketer, get the real answer here.'});
	cvids_456501.push({vid:7297, thumb: 'http://i.ytimg.com/vi/m1pfQdf6bW8/1.jpg', title: 'Affiliate Elite - Marketing Software for Clickbank', desc: 'http://www.affiliateelite.me\n\nAffiliate Elite Review exploring all the ways to make money with Affiliate Elite and Clickbank.\n\nVisit http://www.affiliateelite.me/getbonus for a special bonus.'});
	cvids_456501.push({vid:7298, thumb: 'http://i.ytimg.com/vi/09xt9GVvMOY/1.jpg', title: 'free seo in 24 hours google msn yahoo  free search engine', desc: 'free search engine optimisation for yahoo google msn ask and many more .'});
	cvids_456501.push({vid:7299, thumb: 'http://i.ytimg.com/vi/_vD3PgmUbOU/1.jpg', title: 'Seo tool compare keywords and boost google ranking.', desc: 'Keyword Elite is the best Keywords Research Tools. Brad Callen will show you how to research keywords for Google Adwords and how to crush your competition easily! You will also learn how to make Make Money Online using Google Adsense and how to Improve your Search Engine Ranking and Traffic as well as SEO (Search Engine Optimization).\n\n http://samalmarr.bryxen4.hop.clickbank.net'});
	cvids_456501.push({vid:7300, thumb: 'http://i.ytimg.com/vi/u-pPR3u3BOc/1.jpg', title: 'Affiliate Elite - Want Super Affiliate Earning Power?', desc: 'http://www.affiliateelite.me\n\nWant Super Affiliate Earning Power? Then watch this Affiliate Elite Review exploring all the ways to make your affiliate earnings explode with Affiliate Elite\n\nVisit http://www.affiliateelite.me/getbonus for a special bonus.'});
	cvids_456501.push({vid:7301, thumb: 'http://i.ytimg.com/vi/ZttjdTKtCkM/1.jpg', title: 'SEO Tools - Affiliate Elite Project 4', desc: 'Can you spend  bucks on this???\nhttp://affiliateelitereveal.pinurl.com'});
	cvids_456501.push({vid:7302, thumb: 'http://i.ytimg.com/vi/V7P36XVPTkY/1.jpg', title: 'Google\'s Free Keyword Search Tool', desc: 'http://hotwebmarketingtools.com/ Wow... the Google called giant has done it again. When it comes to SEO or PPC or affiliate marekting, one of the most important keys to making it work is always keywords. read the blog entry and watch the video about this free tool from Google.'});
	cvids_456501.push({vid:7303, thumb: 'http://i.ytimg.com/vi/JdtMh3zLKY8/1.jpg', title: 'Want Wealthy Affiliate Earning Potential?', desc: 'http://www.affiliateelite.me\n\nDo you want wealthy affiliate earning potential? Learn how wealthy super affiliates leverage their time with Affiliate Elite to explode their affiliate earnings. Visit http://www.affiliateelite.me/getbonus for a special bonus'});
	cvids_456501.push({vid:7304, thumb: 'http://i.ytimg.com/vi/fOZ3eE-xEWo/1.jpg', title: 'Affiliate Earning Secrets Revealed!', desc: 'http://www.affiliateelite.me\n\nAffiliate Earning Secrets Revealed. Learn how super affiliates leverage their time with Affiliate Elite to explode their clickbank earnings. \nVisit http://www.affiliateelite.me/getbonus for a special bonus.'});
	cvids_456501.push({vid:7305, thumb: 'http://i.ytimg.com/vi/wObgSEw71Y8/1.jpg', title: 'Highest Paid Keywords In Google Adsense', desc: 'http://www.MyBigReview.com\n\nKeyword Spy is an incredible tool to locate the highest paid \&quot;money keywords\&quot; from any of your competitors. Find out who is bidding on what terms and use their site as a channel for your content links too!'});
	cvids_456501.push({vid:7306, thumb: 'http://i.ytimg.com/vi/8UJASfe0uJU/1.jpg', title: 'Find A Keyword', desc: 'http://www.KeywordSearchPro.com\n\nKeyword Research Pro allows you to brainstorm for keywords, find LSI keywords, find Google Sets, generate keywords from 6 different FREE Keyword Tools.'});
	cvids_456501.push({vid:7307, thumb: 'http://i.ytimg.com/vi/SCKHQu1ol1s/1.jpg', title: 'Driving Traffic Through Google Paid Search Webinar (1)', desc: 'Part 1 of 4\n\nIn this three part webinar series we will show you how to drive more leads, profile your prospects and sell more software.\n\nIn our 1st webinar, Driving More Traffic Using Google Paid Search, we went over how you can drive more leads to your sales department using paid search campaigns with a focus on Google.\n\nOur presenter, Ryan Walker, Runawares Search Division Director, showed some of the ins and outs you need to know if you are going to use Google in your marketing.  Ryan is an SEO and SEM expert having gained extensive experience at Urchin, Google and Microsoft and is Google-Certified. He has managed search campaigns for companies large and small and has access to the elite Google Beta programs that give his clients an edge over their competitors.'});
	cvids_456501.push({vid:54674, thumb: 'http://i.ytimg.com/vi/_NInybL2cPo/2.jpg', title: 'Keyword Elite Review - The truth', desc: 'Do you REALLY need this application to make money online as an Internet Marketer, get the real answer here.'});
	html+='<div id="cvideos456501">';
	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_456501.innerHTML=html;
	wgElm_456501.style.display = 'block';
	gotopage_456501(matrix456501_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_456501() {
	closevid_456501();
}

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


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



function closeVideoPlayer_456501() {
	// close screen
	closevid_456501();
	// call to flash object
	//getFlashObject("videostrip_456501").videoDeselect(0);
}


function closevid_456501() {
  el = document.getElementById('vidplayer_456501');
  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_456501(videoitem_id) {

	// close old one
	closevid_456501();

	// open new
	//var vidlist = document.getElementById(id);
	var video_div = document.createElement('div');
	var title='hello';
	video_div.id = "vidplayer_456501";
	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_456501');
	//	//var top = vp_offsetTop(wgElm_456501);
	//	//var left = vp_offsetLeft(wgElm_456501);
	//	var top = vp_offsetTop(wgFlashDiv);
	//	var left = vp_offsetLeft(wgFlashDiv);
	//
	//	// left or right
	//	if (left < document.body.clientWidth/2) {
	//		if (3==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 + 3*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_456501[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_456501();" 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_456501() {
	//alert('cvids='+(cvids_456501.length).toString()+'itemspp='+matrix456501_itemspp);
	matrix456501_npages= Math.ceil(cvids_456501.length / matrix456501_itemspp);
}

function gotopage_456501(pg) {
		
	//if (!matrix456501_npages)
	initpage_456501();
	
	if (pg<1)
		pg=1;
	if (pg>matrix456501_npages)
		pg=matrix456501_npages;
		
	oldpg=matrix456501_curpg;
	matrix456501_curpg=pg;
	var mxs=document.getElementById('cvideos456501');
	var html='';
	for (var i=(matrix456501_curpg-1)*matrix456501_itemspp,cv=0;i<cvids_456501.length && cv<matrix456501_itemspp;i++) {
		html+=  vidthumbhtmlSmall_456501(i);
		cv++;
	}
	html+=  '<div class="v69resetstyle" style="clear:both;"></div>';
	
				html+=  '<div  class="v69resetstyle" style="margin:1px 0px">'+paginationhtml_456501(matrix456501_curpg, matrix456501_npages)+'</div>';
	
	mxs.innerHTML=html;
}

function vidthumbhtmlSmall_456501(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_456501('+vnr+')" title="'+htmlspecialchars(cvids_456501[vnr].desc)+'" src="'+cvids_456501[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_456501('+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_456501('+vnr+')" >'+htmlspecialchars(cvids_456501[vnr].title)+'</div>';
			html+='</div>';
		html+='</div>';
	html+='</div>';
	return html;
}

//-----------------------------------------------------------------------
// cp 1..npages
function paginationhtml_456501(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_456501('+(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_456501('+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_456501('+(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/458" 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;
}




