//gw.js for group 13 / widget 936641 / WxH: 580x2400 / RxC: 13x5 / skin: blogworld 
// 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.yubby.com/',	// 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 chs_936641= new Array();	// channels
var curch_936641=0;			// first channel

var wgElm_936641 = document.getElementById('viidoo_gw_936641');
if (wgElm_936641) {
	vp_createwg();
}

pgstats.addcollect('gid','13');
pgstats.addcollect('hit','embed');
pgstats.addcollect('widget','groupwidget');
pgstats.xPageHit();

function vp_createwg() {
	var html='<div id="widget_flash_936641" style="width: 580px;height:2400px;overflow:hidden; border: 1px solid #f8f8f8;background-color:#ffffff;font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Tahoma,Geneva,Arial,helvetica,sans-serif">';

	chs_936641.push({chid:2579, thumb: 'http://www.yubby.com/img/channels/000005442u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Guy Kawasaki', desc: 'Keynote:<br/>Guy Kawasaki<br/><br/>You can love or hate him but please, do listen to him. He shares some great insights for entrepreneurs, bloggers and anyone interested in becoming an internet success story.<br/><br/>Guy Kawasaki is a managing director of Garage Technology Ventures, an early-stage venture capital firm, co-founder of AllTop.com, and columnist for Entrepreneur Magazine. <br/><br/>Previously, he was an Apple Fellow at Apple Computer, Inc. Guy is the author of nine books including Reality Check, The Art of the Start, Rules for Revolutionaries, How to Drive Your Competition Crazy, Selling the Dream, and The Macintosh Way. He has a BA from Stanford University and an MBA from UCLA as well as an honorary doctorate from Babson College.'});
	chs_936641.push({chid:7244, thumb: 'http://www.yubby.com/img/channels/000005443u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Kara Swisher', desc: 'Keynote:<br/>Kara Swisher'});
	chs_936641.push({chid:7249, thumb: 'http://www.yubby.com/img/channels/000005448u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Chris Brogan', desc: 'Keynote:<br/>Chris Brogan'});
	chs_936641.push({chid:7252, thumb: 'http://www.yubby.com/img/channels/000005449u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Laura Fitton', desc: 'Keynote:<br/>Laura Fitton'});
	chs_936641.push({chid:7255, thumb: 'http://www.yubby.com/img/channels/000005450u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jeremiah Owyang', desc: 'Keynote:<br/>Jeremiah Owyang'});
	chs_936641.push({chid:7256, thumb: 'http://www.yubby.com/img/channels/000005451u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Scott Monty', desc: 'Keynote:<br/>Scott Monty'});
	chs_936641.push({chid:7445, thumb: 'http://www.yubby.com/img/channels/000005452u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Richard Jalichandra', desc: 'Keynote:<br/>Richard Jalichandra'});
	chs_936641.push({chid:7259, thumb: 'http://www.yubby.com/img/channels/000005453u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Wendy Piersall', desc: 'Keynote:<br/>Wendy Piersall'});
	chs_936641.push({chid:7257, thumb: 'http://www.yubby.com/img/channels/000005441u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Brian Solis', desc: 'Keynote:<br/>Brian Solis'});
	chs_936641.push({chid:7291, thumb: 'http://www.yubby.com/img/channels/000005454u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Chad Vader', desc: 'Keynote:<br/>Chad Vader'});
	chs_936641.push({chid:7292, thumb: 'http://www.yubby.com/img/channels/000005455u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Don Lemon', desc: 'Keynote:<br/>Don Lemon'});
	chs_936641.push({chid:7293, thumb: 'http://www.yubby.com/img/channels/000005456u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Leo Laporte', desc: 'Keynote:<br/>Leo Laporte'});
	chs_936641.push({chid:7295, thumb: 'http://www.yubby.com/img/channels/000005457u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Joanna Drake Earl', desc: 'Keynote:<br/>Joanna Drake Earl'});
	chs_936641.push({chid:7296, thumb: 'http://www.yubby.com/img/channels/000005458u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Kevin Pollak', desc: 'Keynote:<br/>Kevin Pollak'});
	chs_936641.push({chid:7300, thumb: 'http://www.yubby.com/img/channels/000005459u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jay Rosen', desc: 'Keynote:<br/>Jay Rosen'});
	chs_936641.push({chid:7290, thumb: 'http://www.yubby.com/img/channels/000005460u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Ted Murphy', desc: 'Keynote:<br/>Ted Murphy'});
	chs_936641.push({chid:7337, thumb: 'http://www.yubby.com/img/channels/000005461u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jermaine Dupri', desc: 'Keynote:<br/>Jermaine Dupri'});
	chs_936641.push({chid:7339, thumb: 'http://www.yubby.com/img/channels/000005462u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jenny, the Bloggess', desc: 'Keynote:<br/>Jenny, the Bloggess'});
	chs_936641.push({chid:7342, thumb: 'http://www.yubby.com/img/channels/000005463u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Anthony Edwards', desc: 'Keynote:<br/>Anthony Edwards'});
	chs_936641.push({chid:7344, thumb: 'http://www.yubby.com/img/channels/000005464u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Hugh Hewitt', desc: 'Keynote:<br/>Hugh Hewitt'});
	chs_936641.push({chid:7446, thumb: 'http://www.yubby.com/img/channels/000005465u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Leesa Barnes', desc: 'Conference:<br/>Leesa Barnes'});
	chs_936641.push({chid:7448, thumb: 'http://www.yubby.com/img/channels/000005466u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Tim Street', desc: 'Conference:<br/>Tim Street'});
	chs_936641.push({chid:7449, thumb: 'http://www.yubby.com/img/channels/000005467u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Lucretia Pruitt', desc: 'Conference:<br/>Lucretia Pruitt'});
	chs_936641.push({chid:7450, thumb: 'http://www.yubby.com/img/channels/000005468u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Darren Rowse', desc: 'Conference:<br/>Darren Rowse'});
	chs_936641.push({chid:7451, thumb: 'http://www.yubby.com/img/channels/000005469u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Mignon Fogarty', desc: 'Conference:<br/>Mignon Fogarty'});
	chs_936641.push({chid:185, thumb: 'http://www.yubby.com/img/channels/000005470u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: '@scobleizer Robert Scoble famous blogger, twitter, friendfeed \&amp;Qik;lover', desc: 'Conference:<br/>Robert Scoble<br/><br/>Robert Scoble (born January 18, 1965) is an American blogger, technical evangelist, and author. Scoble is best known for his blog, Scobleizer, which came to prominence during his tenure as a technical evangelist at Microsoft. He currently works for Fast Company as a video blogger. He is also the co-author of Naked Conversations: How Blogs are Changing the Way Businesses Talk with Customers with Shel Israel.'});
	chs_936641.push({chid:7335, thumb: 'http://www.yubby.com/img/channels/000005471u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Cali Lewis', desc: 'Conference:<br/>Cali Lewis'});
	chs_936641.push({chid:7452, thumb: 'http://www.yubby.com/img/channels/000005472u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Brian Clark', desc: 'Conference:<br/>Brian Clark'});
	chs_936641.push({chid:7453, thumb: 'http://www.yubby.com/img/channels/000005473u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Mur Lafferty', desc: 'Conference:<br/>Mur Lafferty'});
	chs_936641.push({chid:7454, thumb: 'http://www.yubby.com/img/channels/000005474u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Aliza Sherman', desc: 'Conference:<br/>Aliza Sherman'});
	chs_936641.push({chid:7540, thumb: 'http://www.yubby.com/img/channels/000005523u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jalen Rose', desc: 'Conference:<br/>Jalen Rose'});
	chs_936641.push({chid:7498, thumb: 'http://www.yubby.com/img/channels/000005524u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Conference Amanda Rose Twitterfestival', desc: 'Conference:<br/>Amanda Rose'});
	chs_936641.push({chid:7500, thumb: 'http://www.yubby.com/img/channels/000005525u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'John Chow', desc: 'Conference:<br/>John Chow'});
	chs_936641.push({chid:7504, thumb: 'http://www.yubby.com/img/channels/000005526u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Lindsay Maines', desc: 'Conference:<br/>Lindsay Maines'});
	chs_936641.push({chid:7505, thumb: 'http://www.yubby.com/img/channels/000005527u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Amber Naslund', desc: 'Conference:<br/>Amber Naslund'});
	chs_936641.push({chid:7513, thumb: 'http://www.yubby.com/img/channels/000005528u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Matt Burden', desc: 'Conference:<br/>Matt Burden'});
	chs_936641.push({chid:1077, thumb: 'http://www.yubby.com/img/channels/000005271u.png',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Liz Strauss, Queen Social Media', desc: 'Conference:<br/>Liz Strauss<br/><br/>Bio Social Strategist - I help businesses \&amp; universities understand the culture and sensitivities of the social web.'});
	chs_936641.push({chid:7506, thumb: 'http://www.yubby.com/img/channels/000005529u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Barbara Jones', desc: 'Conference:<br/>Barbara Jones'});
	chs_936641.push({chid:7514, thumb: 'http://www.yubby.com/img/channels/000005530u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Muhammad Saleem', desc: 'Conference:<br/>Muhammad Saleem<br/><br/>We couldn\'t find too many videos of Muhammad himself, but we did include videos from his projects liked tipd.com, artofmanliness.com, and chicagonow.org!'});
	chs_936641.push({chid:7510, thumb: 'http://www.yubby.com/img/channels/000005531u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Becky Carroll', desc: 'Conference:<br/>Becky Carroll<br/><br/>Petra Consulting <br/>Group/Customers Rock! is headed up by Becky Carroll, long-time customer advocate and someone who is passionate about social media, marketing, and the customer experience. In 2005, Becky founded Petra Consulting Group, a strategic consultancy helping companies grow through customer conversation leading to stronger customer relationships. Through our work with companies such as HP, Electronic Arts, and Ford, we have spent a lot of time improving customer experiences, driving increases in marketing results, and helping companies re-think their customer service and support.'});
	chs_936641.push({chid:7530, thumb: 'http://www.yubby.com/img/channels/000005532u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Rob King', desc: 'Conference:<br/>Rob King'});
	chs_936641.push({chid:7507, thumb: 'http://www.yubby.com/img/channels/000005533u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Loren Feldman', desc: 'Conference:<br/>Loren Feldman'});
	chs_936641.push({chid:7509, thumb: 'http://www.yubby.com/img/channels/000005534u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Maggie Fox', desc: 'Conference:<br/>Maggie Fox'});
	chs_936641.push({chid:7511, thumb: 'http://www.yubby.com/img/channels/000005535u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Mari Smith', desc: 'Conference:<br/>Mari Smith'});
	chs_936641.push({chid:7512, thumb: 'http://www.yubby.com/img/channels/000005536u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Brian Cuban', desc: 'Conference:<br/>Brian Cuban <br/><br/><br/><br/>The Cuban revolution rant'});
	chs_936641.push({chid:7515, thumb: 'http://www.yubby.com/img/channels/000005537u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Natasha Wescoat', desc: 'Conference:<br/>Natasha Wescoat'});
	chs_936641.push({chid:7497, thumb: 'http://www.yubby.com/img/channels/000005538u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jeremy Tanner', desc: 'Conference:<br/>Jeremy Tanner'});
	chs_936641.push({chid:7518, thumb: 'http://www.yubby.com/img/channels/000005539u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Nelly Yusupova', desc: 'Conference:<br/>Nelly Yusupova'});
	chs_936641.push({chid:7556, thumb: 'http://www.yubby.com/img/channels/000005540u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Shira Lazar', desc: 'Conference:<br/>Shira Lazar'});
	chs_936641.push({chid:7536, thumb: 'http://www.yubby.com/img/channels/000005541u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Rob Walch', desc: 'Conference:<br/>Rob Walch'});
	chs_936641.push({chid:7517, thumb: 'http://www.yubby.com/img/channels/000005542u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'CC Chapman Blogger \&amp; Podcaster', desc: 'Conference:<br/>CC Chapman <br/><br/><br/><br/>Podcaster \&amp; viral video\'s'});
	chs_936641.push({chid:7524, thumb: 'http://www.yubby.com/img/channels/000005543u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Nicole Nicolay', desc: 'Conference:<br/>Nicole Nicolay'});
	chs_936641.push({chid:7534, thumb: 'http://www.yubby.com/img/channels/000005544u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Chris Pirillo', desc: 'Conference:<br/>Chris Pirillo'});
	chs_936641.push({chid:7535, thumb: 'http://www.yubby.com/img/channels/000005545u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Connie Bensen', desc: 'Conference:<br/>Connie Bensen'});
	chs_936641.push({chid:7537, thumb: 'http://www.yubby.com/img/channels/000005546u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Deb Micek', desc: 'Conference:<br/>Deb Micek'});
	chs_936641.push({chid:7565, thumb: 'http://www.yubby.com/img/channels/000005547u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Tim Bourquin', desc: 'Conference:<br/>Tim Bourquin'});
	chs_936641.push({chid:7552, thumb: 'http://www.yubby.com/img/channels/000005548u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Shannon Paul', desc: 'Conference:<br/>Shannon Paul'});
	chs_936641.push({chid:7539, thumb: 'http://www.yubby.com/img/channels/000005549u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Frank Eliason', desc: 'Conference:<br/>Frank Eliason'});
	chs_936641.push({chid:7543, thumb: 'http://www.yubby.com/img/channels/000005550u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jason van Orden', desc: 'Conference:<br/>Jason van Orden'});
	chs_936641.push({chid:7544, thumb: 'http://www.yubby.com/img/channels/000005551u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'JD Lasica', desc: 'Conference:<br/>JD Lasica'});
	chs_936641.push({chid:7545, thumb: 'http://www.yubby.com/img/channels/000005552u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jennifer Leggio', desc: 'Conference:<br/>Jennifer Leggio'});
	chs_936641.push({chid:7547, thumb: 'http://www.yubby.com/img/channels/000005553u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Jennifer Van Grove', desc: 'Conference:<br/>Jennifer Van Grove'});
	chs_936641.push({chid:7561, thumb: 'http://www.yubby.com/img/channels/000005554u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Tee Morris', desc: 'Conference:<br/>Tee Morris'});
	chs_936641.push({chid:7549, thumb: 'http://www.yubby.com/img/channels/000005555u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Shama Hyder', desc: 'Conference:<br/>Shama Hyder'});
	chs_936641.push({chid:7558, thumb: 'http://www.yubby.com/img/channels/000005556u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Stefanie Michaels', desc: 'Conference:<br/>Stefanie Michaels'});
	chs_936641.push({chid:7663, thumb: 'http://www.yubby.com/img/channels/000005557u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Patrick O\'Keefe', desc: 'Panelist:<br/>Patrick O\'Keefe<br/><br/>This channel features speaking appearances made by Patrick O\'Keefe, owner of the iFroggy Network (http://www.ifroggy.com) and author of \&quot;Managing Online Forums\&quot; (http://www.managingonlineforums.com).'});
	chs_936641.push({chid:7682, thumb: 'http://www.yubby.com/img/channels/000005558u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Tom Martin', desc: 'Panelist:<br/>Tom Martin<br/><br/>Videos of presentations given by Tom Martin.'});
	chs_936641.push({chid:7676, thumb: 'http://www.yubby.com/img/channels/000005559u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Paul Colligan', desc: 'Speaker:<br/>Paul Colligan'});
	chs_936641.push({chid:7656, thumb: 'http://www.yubby.com/img/channels/000005560u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Mitch\'s Videos', desc: 'Speaker:<br/>Mitch Canter'});
	chs_936641.push({chid:7684, thumb: 'http://www.yubby.com/img/channels/000005561u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Chef Mark Tafoya', desc: 'Panelist:<br/>Chef Mark Tafoya<br/><br/>Executive Producer of Culinary Media Network, the world\'s first ALL-Food Podcast network.  www.culinarymedianetwork.com<br/><br/>Co-author of the new cookbook, The Gilded Fork Entertaining at Home: A Year of Dinner Parties. www.gildedforkcookbook.com<br/><br/>Book signing at Blog World Expo Saturday October 17, 3 PM!'});
	chs_936641.push({chid:7683, thumb: 'http://www.yubby.com/img/channels/000005590u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Spirit Jump', desc: 'Panelist:<br/>Meaghan Edelstein'});
	chs_936641.push({chid:7930, thumb: 'http://www.yubby.com/img/channels/000005618u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'drew', desc: ''});
	chs_936641.push({chid:7690, thumb: 'http://www.yubby.com/img/channels/000005563u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Don McAllister', desc: 'Speakers:<br/>Don McAllister'});
	chs_936641.push({chid:2815, thumb: 'http://www.yubby.com/img/channels/000005564u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Vincent Everts', desc: 'Panelist:<br/>Vincent Everts<br/><br/>Vincent Everts is an serial entrepreneur \&amp; trendwatcher in the Netherlands. He inspires audiences with fast moving presentations where he demonstrates the influence of a wide area of new technologies in the way we work, learn, govern and play.<br/><br/>He is an inspired gadget user and is a big user of all the new technologies himself. Technology is wonderfull but the organisational, economical and political factors determine the rate of innovation which is a lot of time disappointing in business and which we need to accelerate.'});
	chs_936641.push({chid:7839, thumb: 'http://www.yubby.com/img/channels/000005522u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Becky McCray speaks', desc: 'Panelist:<br/>Becky McCray<br/><br/>BlogWorld Expo invited us to use Yubby to create a video channel of ourselves, so I dug out a few clips of speeches and interviews to share.'});
	chs_936641.push({chid:7881, thumb: 'http://www.yubby.com/img/channels/000005576u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'AngeloMandato', desc: 'Speaker:<br/>Angelo Mandato<br/><br/>Angelo Mandato, host of Plugins, The WordPress Plugins Podcast, one of the leader organizers of PodCamp Ohio, and CIO of Rawvoice.'});
	chs_936641.push({chid:7869, thumb: 'http://www.yubby.com/img/channels/000005588u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Todd Cochrane', desc: 'Speaker:<br/>Todd Cochrane'});
	chs_936641.push({chid:7837, thumb: 'http://www.yubby.com/img/channels/000005589u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'timothysykes', desc: 'Panelist:<br/>Timothy Sykes'});
	chs_936641.push({chid:7904, thumb: 'http://www.yubby.com/img/channels/000005601u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Nicole Simon', desc: 'Speaker:<br/>Nicole Simon<br/><br/>Best known for her cruel to be kind feedback and her podcast interviews, Nicole Simon is a German social media Specialist. She has published a book about how to use Twitter for private and personal endeavours last year.<br/><br/>She consults companies and organisations who want to know how to use Twitter and other social media tools; also she is a sought-after sparrings partner especially for startups. She loves to bring different communities together and helps them learn from each other. She also runs the German Girl Geek Dinners, co-moderates the forum Global Business Women on Xing and serves as advisory / jury member for several European conferences like next08 and 09 and the Web 2.0 Expo Europe. <br/><br/>And of course you can find her on twitter under @nicolesimon.'});
	chs_936641.push({chid:7948, thumb: 'http://www.yubby.com/img/channels/000005629u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'MacMost', desc: 'Speaker:<br/>Gary Rosenzweig'});
	chs_936641.push({chid:7894, thumb: 'http://www.yubby.com/img/channels/000005633u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Mark Horvath', desc: 'Speaker:<br/>Mark Horvath'});
	chs_936641.push({chid:8018, thumb: 'http://www.dik.nl/img/channels/000005675u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'Lewis Howes', desc: 'Speaker:<br/>Lewis Howes'});
	chs_936641.push({chid:8185, thumb: 'http://www.yubby.com/img/channels/000005786u.jpg',twidth: '654.33333333333',theight: '130',tleft: '-277.66666666667',tright: '-15.5',ttop: '0',tbottom: '0',title: 'BryanElliott.TV', desc: 'Speaker:<br/>Bryan Elliott'});
html+='<div id="thumb_936641" style="width:578px;height:2398px;position:relative;padding:5px 0px 0 5px;">';
html+=chMatrixHtml_936641(568,2388);
html +='<img style="position:absolute;right:20px;bottom:10px;height:25px;z-index:5;cursor:pointer;" src="http://www.yubby.com/img/project/yubby/logo_stroke.png" onclick="location.href=\'http://www.yubby.com/\';">';
html+='</div>';
	/******
	html +='<div style="height:26px;width:580px;position:relative;">';
	html +='<div style="position:absolute;left:35px;top:3px;color:#444;font-size:11px;line-height:10px;cursor:pointer;width:185px;height:20px;overflow:hidden;" onclick="location.href=vidplayurl_936641();"><span style="color:#888;">You are watching channel</span><br/>blogworld</div>';
	html +='<img style="position:absolute;left:416px;top:0px;height:25px;z-index:5;cursor:pointer;" src="http://www.yubby.com/img/project/yubby/logo.png" onclick="location.href=vidplayurl_936641();">';
	html +='<img onclick="showmatrix_936641(0);" style="position:absolute;left:5px;top:1px;cursor:pointer;" src="http://www.yubby.com//img/widget/solo/skins/blogworld/iconmatrix24.png" title="Click here for related videos"/>';
	html +='<img onclick="playprev_936641();" style="position:absolute;left:480px;top:1px;cursor:pointer;" src="http://www.yubby.com//img/widget/solo/skins/blogworld/iconprev24.png" title="go to the previous video in the channel"/>';
	html +='<img onclick="playstop_936641();" style="position:absolute;left:504px;top:1px;cursor:pointer;" src="http://www.yubby.com//img/widget/solo/skins/blogworld/iconstop24.png" title="stop"/>';
	html +='<img onclick="playstart_936641();" style="position:absolute;left:528px;top:1px;cursor:pointer;" src="http://www.yubby.com//img/widget/solo/skins/blogworld/iconplay24.png" title="play"/>';
	html +='<img onclick="playnext_936641();" style="position:absolute;left:552px;top:1px;cursor:pointer;" src="http://www.yubby.com//img/widget/solo/skins/blogworld/iconnext24.png" title="go to the next video in the channel"/>';
	html +='</div>';
	html+='</div>';
	*/

	wgElm_936641.innerHTML=html;
	gotopage_936641(1);
	wgElm_936641.style.display = 'block';
}

function playnext_936641() {
	if (curvid_936641 < chs_936641.length -1 ) {
		curvid_936641++;
		if (cpvideo_936641)
			playstart_936641();	// we are playing video
		else {
			var thumbdiv=document.getElementById('thumb_936641');
			thumbdiv.innerHTML=vidthumbhtml_936641(curvid_936641);
		}
	}
}
function playprev_936641() {
	if (curvid_936641 >0 ) {
		curvid_936641--;
		if (cpvideo_936641)
			playstart_936641();	// we are playing video
		else {
			var thumbdiv=document.getElementById('thumb_936641');
			thumbdiv.innerHTML=vidthumbhtml_936641(curvid_936641);
		}
	}
}
function playstart_936641(vnr) {
	closepopup_936641();	// close popup (if open)
	if (vnr==null)
		vnr=curvid_936641;
	else
		curvid_936641=vnr;	// set the current
	var thumbdiv=document.getElementById('thumb_936641');
	thumbdiv.innerHTML='<iframe name="playerframe" class="playerframe" src="http://www.yubby.com/widget/playvideo/'+chs_936641[vnr].vid+'/580/2374/L/W" width="580" height="2374" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';
	cpvideo_936641=true;
}

function playstop_936641() {
	cpvideo_936641=false;
	var thumbdiv=document.getElementById('thumb_936641');
	thumbdiv.innerHTML=vidthumbhtml_936641(curvid_936641);
}

function chthumbhtml_936641(vnr) {
	var html='';
	html+='<div style="width:570px;height:356px; overflow:hidden; position:absolute;left:5px;top:5px;">';
html+='<img src="'+chs_936641[vnr].thumb+'" style="width:570px;height:428px;top:-36px;position:relative;">';
html+='</div>';
html+='<div style="width:560px;height:2003px;position:absolute;left:5px;top:361px;background-color:#AAA;padding:5px;"><div style="overflow:hidden;height:2003px;"><div style="margin: 2px 3px; font-size:16px;color:#555555;">'+chs_936641[vnr].title+'</div><div style="margin: 2px 5px; font-size:13px;line-height:13px;color:#ffffff;overflow:hidden;height:40px;"  title="'+chs_936641[vnr].desc+'">'+chs_936641[vnr].desc+'</div><div style="padding: 3px 5px; letter-spacing:1px; background-color: #aaa; color: white; position: absolute; right: 0px; top: -14px; font-size: 10px;">'+(vnr+1)+'/'+(chs_936641.length)+'</div></div></div>';
html+='<div style="position: absolute; width:72px;height:72px;top:1151px;left:254px;z-index:200;cursor:pointer;cursor:hand;background:url(http://www.yubby.com/img/media_play72.png) no-repeat;" onClick="playstart_936641();"></div>';
	return html;
}

function chthumbhtmlSmall_936641(vnr,twidth,theight) {
	var html='';
	// 162 // 
	// 90 // max-height:122px;
	var twidth=99;		// width 500 3 cols = 480/3-10 = 150 
	var theight=166;
	var titleh=32;
	var dwidth=twidth;
	var iwidth=dwidth;
	var iheight=theight-4-titleh;
	var oimg=chs_936641[vnr];
	var ptop=(iheight-48)/2;
	var imgtooltip=chs_936641[vnr].desc;
	imgtooltip=imgtooltip.replace(/\<br\/\>/g," ");
	//alert(imgtooltip);
	
	html+='<div style="margin: 5px; float: left; position: relative; width: '+twidth+'px; height: '+theight+'px;border:2px solid #ffffff;background-color:#ffffff">';
		//html+='<div style="width:'+dwidth+'px;background:#f6f6f6;margin:0 auto 6px auto;overflow:hidden;position:relative;">';
			html+='<div style="width:'+iwidth+'px;height:'+iheight+'px;background:#cccccc;overflow:hidden;position:relative;">';
				html+='<img style="position:absolute;border:0 solid #ffffff;padding:0;margin:0;left:'+oimg.tleft+'px;top:'+oimg.ttop+'px;width:'+oimg.twidth+'px;height:'+oimg.theight+'px;cursor: pointer;" onclick="playChannel_936641('+vnr+')" title="'+imgtooltip+'" src="'+chs_936641[vnr].thumb+'" />';
										html+='<div style="position: absolute; width:24px;height:24px;bottom:5px;right:2px;z-index:200;cursor:pointer;cursor:hand;background:url(http://www.yubby.com/img/media_play24.png) no-repeat;" onclick="playChannel_936641('+vnr+')"></div>';
							html+='</div>';
			html+='<div style="position: absolute; bottom: 0px; left: 0px;width:'+(twidth)+'px;height:'+titleh+'px;z-index:200;background-color:#ffffff;color:#333333;font-size:11px;line-height:normal;overflow:hidden;white-space: nowrap;padding:0px 0px 0px 0px;cursor: pointer;" onclick="playChannel_936641('+vnr+')">'+chs_936641[vnr].desc+'</div>';

		//html+='</div>';

	html+='</div>';
	return html;
}

// cp 1..npages
function paginationhtml_936641(cp,npages) {
	if (npages<=1)
		return '';	// empty if no pagination..
	var html='';
	html+='<div class="pages">';
	if (cp>1) {
		// we CAN prev!
		html+= '<span class="pageblock" onclick="gotopage_936641('+(cp-1)+');">&#x25C0;</span>';
	}
	else {
		html+= '<span class="pageblock_disabled">&#x25C0;</span>';
	}
	// 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<=2 || (lpage>=cp-4 && lpage<=cp+4) || lpage>=npages-1) {
			dotted = false;	// we need to dot afterwards
			if (lpage == cp )
				html+='<span class="pageblock_curpage"><b>'+lpage+'</b></span>';
			else
				html+='<span class="pageblock" onclick="gotopage_936641('+lpage+');">'+lpage+'</span>';
		}
		else {
			// no printing.. buttt maybe we need to dot
			if ( !dotted ) {
				html+='<span class="pageblock_dots">&nbsp;...&nbsp;</span>';
				dotted = true;
			}
		}
	}
		
	// Next page - Link
	if ( cp<npages )
		html+='<span class="pageblock" onclick="gotopage_936641('+(cp+1)+');">&#x25B6;</span>';
	else
		html+='<span class="pageblock_disabled">&#x25B6;</span>';
	html+='</div>';
	return html;
}

var curr_channel=0;
function chplayurl_936641(vnr) {
	if (vnr==null)
		vnr=curr_channel;
	return 'http://www.yubby.com/channel/player/'+chs_936641[vnr].chid+'/first';
}



function closepopup_936641() {
  el = document.getElementById('ipopup_936641');
  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;
}



var matrix_curpg=1;
var matrix_npages=1;

function gotopage_936641(pg) {
	matrix_curpg=pg;
	var ippage=65;	// ncols*nrows;	// items per page
	matrix_npages= Math.ceil(chs_936641.length / ippage);	// global
	
	var mxs=document.getElementById('mxs_936641');
	var html='';
	for (var i=(matrix_curpg-1)*ippage,cv=0;i<chs_936641.length && cv<ippage;i++) {
		html+=  chthumbhtmlSmall_936641(i);
		cv++;
	}
	html+=  '<div style="clear:both;"></div>';
				html+='<style type="text/css">	\
					a.lnkwdg:link, a.lnkwdg:visited  	{font-size:16px;color:#3172b4;text-decoration:none;} \
					a.lnkwdg:hover					{text-decoration:underline; }\
					</style>';
			html+= '<div style="margin:0px 0px;position: absolute; bottom:4px;left:7px;"><a class="lnkwdg" href="http://www.blogworldexpo.com/general-information/yubby">See all speakers &#x25B6;</a></div>';
				mxs.innerHTML=html;
}

function chMatrixHtml_936641(base_width,base_height) {	// w500-12 = 488 
	// determine size and cols/rows and pages
	var ncols=5;	// Math.floor(base_width/300)+1;
	var nrows=13;	// Math.floor(base_height/200)+1;
	var ippage=65;	// ncols*nrows;	// items per page
	
	var twidth=99;	//Math.floor(base_width/ncols)-10;
	var theight=166;
	
	matrix_npages= Math.ceil(chs_936641.length / ippage);	// global
	
	var ch_html='';
	ch_html+='<div style="padding:0px;position:relative;background-color:#ffffff;width:'+(base_width)+'px;height:'+(base_height)+'px;">';
	ch_html+='<br style="display:none;"/><style type="text/css">	\
		.pages {padding:2px 0 2px 8px; margin:0; clear:both;font-size:12px;} \
			.pages span.pageblock {border: 1px solid #888;background-color:#fff; color:#000; height: 12px; padding: 3px 6px;margin: 0px 4px 0px 0px;cursor: pointer;cursor:hand;}\
			.pages span.pageblock:hover {color:#D10101;text-decoration:underline;}	\
			.pages span.pageblock_disabled {border: 1px solid #888; background-color:#fff;color: #aaa; height: 12px; padding: 3px 6px;margin: 0px 4px 0px 0px;}\
			.pages span.pageblock_dots {border: 0px solid #888; color: #000; height: 12px; padding: 3px 6px;margin: 0px 4px 0px 0px;}\
			.pages span.pageblock_curpage {border: 1px solid #888; background-color:#fff; color: #aaa; height: 12px; padding: 3px 6px;margin: 0px 4px 0px 0px;}\
		</style>';
	ch_html+=	'<div style="margin:0px 0px 0px 0px;" id="mxs_936641">';
	// for (var i=0,cv=0;i<chs_936641.length && cv<ippage;i++) {
	// 	ch_html+=  chthumbhtmlSmall_936641(i);
	// 	cv++;
	// }
	// ch_html+=  '<div style="clear:both;"></div>';
	// 
	// if (matrix_npages>1) {
	// 	ch_html+=  '<div style="margin:10px 0px;position:abolute;bottom:0px;">'+paginationhtml_936641(matrix_curpg, matrix_npages)+'</div>';
	// }

	ch_html+=	'</div>';
	ch_html+=  '<div style="clear:both;"></div>';
	ch_html+='</div>';
	return ch_html;
}

//--------------------------------------------- POPUP -----------------------------------------------------

// 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;
}

function closech_936641() {
  el = document.getElementById('chplayer_936641');
  if (el) {
    el.parentNode.removeChild(el);
  } 
}
// obsolete
function closeVideoPlayer_936641() {
	// close screen
	closevid_936641();
	// call to flash object
	getFlashObject("videostrip_936641").videoDeselect(0);
}

function playChannel_936641(vnr) {

	// close old one
	closech_936641();
	curr_channel=vnr;
	// open new
	var ch_div = document.createElement('div');
	var title='hello';
	ch_div.id = "chplayer_936641";
	ch_div.style.position = 'absolute';
	ch_div.style.border = 'none';
	var base_width=500;
	var base_height=500;
	
	ch_div.style.width = (base_width+14)+'px';
	ch_div.style.height = (base_height+16+2*22)+'px';
	ch_div.style.zIndex = '10000';
	//ch_div.style.border = "5px solid #cccccc";
	
	if (true) {
		// CENTER SCREEN
		var arrayPageSize = getPageSize();
		var arrayPageScroll = getPageScroll();
		var popup_top = arrayPageScroll[1] + ((arrayPageSize[3] -base_height) / 2);
		var popup_left = arrayPageScroll[0] +((arrayPageSize[0] - base_width) / 2);
		if (popup_top<0)
			popup_top=0;
		if (popup_left<0)
			popup_left=0;
		ch_div.style.position = 'absolute';
		ch_div.style.top = popup_top + 'px';
		ch_div.style.left = popup_left + 'px';
	}
	else {
		// left or right of widget
		var top = vp_offsetTop(wgElm_936641);
		var left = vp_offsetLeft(wgElm_936641);

		// left or right
	    if (left < document.body.clientWidth/2) {
			ch_left = left +580; // - 8;
			alert('hij zit links, left='+left);
	    } else {

			ch_left = left - (base_width+2*17+10) ; // 402 plus borders 2x17 
			alert ('left='+left+' basew='+base_width);
	    }
		top=top; // - 3;
	
		//alert('video_left='+video_left+' top='+top);
		ch_div.style.top = top + 'px';
		ch_div.style.left = ch_left + 'px';
	}
	//	$skins['simple']=array('wskin'=>'simple','wbgcol'=>'#ffffff','wborder'=>'0px solid #fff');
	var ch_html = '<div style="padding:3px 3px 3px 3px;position:relative;border:0px solid #ffffff;">';
	ch_html +='<iframe name="playerframe" class="playerframe"	src = "http://www.yubby.com/widget/embed/square/'+chs_936641[vnr].chid+'/selected_item:first/autoplay:Y/lang:en/500/skin:blogworld" width="500" height="500" frameborder=0 scrolling="no" allowtransparency="true"></iframe>';
	ch_html +=	   '<div onclick="closech_936641();" style="position:absolute;top:13px;right:13px;cursor:pointer;cursor:hand;background:url(http://www.yubby.com/img/icon_bwht_close22.png) no-repeat;width:24px;height:24px;z-index:10000;"></div>\
					</div>';
					
	ch_div.innerHTML=ch_html;
	document.body.appendChild(ch_div);
}





