var BLIP_SITE_URL = "http://blip.tv"; 
var OUTPUT_METHOD = "document_write";

var posts = [{ "Post" : {
	"title":"Web 2.0 Summit 09: \"High Order Ignite - Sponsored by Omidyar Network\"",
	"adminTitle":"Web 2.0 Summit 09: \"High Order Ignite - Sponsored by Omidyar Network\"",
	"description":"Bre Pettis (I Make Things), <br />Daniel Fletcher (CellScope), <br />Jacquelyn Ford Morie (USC Institute for Creative Technologies), <br />Dennis Crowley (foursquare), <br />Moderated by Brady Forrest (O\'Reilly Media, Inc.), <br />\"High Order Ignite - Sponsored by Omidyar Network\"",
	"tags":["web","2.0","summit","w2s","w2e","web2","web2.0","oreilly","oreilly","oreillymedia","oreilly","media","techweb","john","battelle","battellemedia","federated","media","technology"],
	"datestamp":"10-25-09 07:56pm",
	"datestampUnixtime":"1256514981",
	"datestampDate":"2009-10-25",
	"datestampText":"Oct 25, 2009",
		
	"postsId":2786870,
	"postsGuid":"FEC3007A-C1C1-11DE-A24E-91489B2DC1D6",
	"itemType":"file",
	"itemId":2766997,
	"url":"http://blip.tv/file/2766997",
	"mediaUrl":"http://blip.tv/file/get/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830-535.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830-535-362.jpg",
	"login":"web2summit",
	"userId":85096,
	"showName":"Web 2.0 Summit",
	"blogUrl":null,
	"media":{
		"url":"http://blip.tv/file/get/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":1849,
		"width":640,
		"height":360
	},
	"contentRating":"TV-UN",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Web 2.0 Summit 09: \"High Order Ignite - Sponsored by Omidyar Network\"",
	"posts_id":"2786870",
	"item_type":"file",
	"item_id":"2766997",
	"posts_url":"http://blip.tv/file/2766997",
	
	"media_src":"blip.tv/file/get/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Web2summit-Web20Summit09HighOrderIgniteSponsoredByOmidyarNetwork830-535.jpg"
	},
	
	"User":"web2summit"
}},{ "Post" : {
	"title":"Web 2.0 Summit 09: Tim Armstrong and John Battelle, \"A Conversation with Tim Armstong\"",
	"adminTitle":"Web 2.0 Summit 09: Tim Armstrong and John Battelle, \"A Conversation with Tim Armstong\"",
	"description":"Tim Armstrong (AOL), John Battelle (Federated Media Publishing), \"A Conversation with Tim Armstong\"",
	"tags":["web","2.0","summit","w2s","w2e","web2","web2.0","oreilly","oreilly","oreillymedia","oreilly","media","techweb","john","battelle","battellemedia","federated","media","technology"],
	"datestamp":"10-24-09 08:34pm",
	"datestampUnixtime":"1256430872",
	"datestampDate":"2009-10-24",
	"datestampText":"Oct 24, 2009",
		
	"postsId":2784309,
	"postsGuid":"29D65786-C0FE-11DE-9537-D6EFB9C3E29D",
	"itemType":"file",
	"itemId":2764436,
	"url":"http://blip.tv/file/2764436",
	"mediaUrl":"http://blip.tv/file/get/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341-233.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341-233-16.jpg",
	"login":"web2summit",
	"userId":85096,
	"showName":"Web 2.0 Summit",
	"blogUrl":null,
	"media":{
		"url":"http://blip.tv/file/get/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":1849,
		"width":640,
		"height":360
	},
	"contentRating":"TV-UN",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Web 2.0 Summit 09: Tim Armstrong and John Battelle, \"A Conversation with Tim Armstong\"",
	"posts_id":"2784309",
	"item_type":"file",
	"item_id":"2764436",
	"posts_url":"http://blip.tv/file/2764436",
	
	"media_src":"blip.tv/file/get/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Web2summit-Web20Summit09TimArmstrongAndJohnBattelleAConversation341-233.jpg"
	},
	
	"User":"web2summit"
}},{ "Post" : {
	"title":"Web 2.0 Summit 09: Tim Berners-Lee and Tim O\'Reilly, \"A Conversation with Tim Berners-Lee\"",
	"adminTitle":"Web 2.0 Summit 09: Tim Berners-Lee and Tim O\'Reilly, \"A Conversation with Tim Berners-Lee\"",
	"description":"Tim Berners-Lee (World Wide Web Consortium), Tim O\'Reilly (O\'Reilly Media, Inc.), \"A Conversation with Tim Berners-Lee\"",
	"tags":["web","2.0","summit","w2s","w2e","web2","web2.0","oreilly","oreilly","oreillymedia","oreilly","media","techweb","john","battelle","battellemedia","federated","media","technology"],
	"datestamp":"10-24-09 08:22pm",
	"datestampUnixtime":"1256430122",
	"datestampDate":"2009-10-24",
	"datestampText":"Oct 24, 2009",
		
	"postsId":2784292,
	"postsGuid":"6AB42ED8-C0FC-11DE-8897-DD496F52C9DB",
	"itemType":"file",
	"itemId":2764419,
	"url":"http://blip.tv/file/2764419",
	"mediaUrl":"http://blip.tv/file/get/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479-80.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479-80-154.jpg",
	"login":"web2summit",
	"userId":85096,
	"showName":"Web 2.0 Summit",
	"blogUrl":null,
	"media":{
		"url":"http://blip.tv/file/get/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":2022,
		"width":640,
		"height":360
	},
	"contentRating":"TV-UN",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Web 2.0 Summit 09: Tim Berners-Lee and Tim O\'Reilly, \"A Conversation with Tim Berners-Lee\"",
	"posts_id":"2784292",
	"item_type":"file",
	"item_id":"2764419",
	"posts_url":"http://blip.tv/file/2764419",
	
	"media_src":"blip.tv/file/get/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Web2summit-Web20Summit09TimBernersLeeAndTimOReillyAConversationW479-80.jpg"
	},
	
	"User":"web2summit"
}},{ "Post" : {
	"title":"Web 2.0 Summit 09: Safa Rashtchy, \"What Do Teens Want?\"",
	"adminTitle":"Web 2.0 Summit 09: Safa Rashtchy, \"What Do Teens Want?\"",
	"description":"Safa Rashtchy (Former Managing Director and Sr. Research Analyst at Piper Jaffray and Co.), \"What Do Teens Want?\"",
	"tags":["web","2.0","summit","w2s","w2e","web2","web2.0","oreilly","oreilly","oreillymedia","oreilly","media","techweb","john","battelle","battellemedia","federated","media","technology"],
	"datestamp":"10-24-09 08:08pm",
	"datestampUnixtime":"1256429296",
	"datestampDate":"2009-10-24",
	"datestampText":"Oct 24, 2009",
		
	"postsId":2784269,
	"postsGuid":"7E8596E2-C0FA-11DE-848F-BBF8AB188BE7",
	"itemType":"file",
	"itemId":2764396,
	"url":"http://blip.tv/file/2764396",
	"mediaUrl":"http://blip.tv/file/get/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118-772.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118-772-330.jpg",
	"login":"web2summit",
	"userId":85096,
	"showName":"Web 2.0 Summit",
	"blogUrl":null,
	"media":{
		"url":"http://blip.tv/file/get/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":2024,
		"width":640,
		"height":360
	},
	"contentRating":"TV-UN",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Web 2.0 Summit 09: Safa Rashtchy, \"What Do Teens Want?\"",
	"posts_id":"2784269",
	"item_type":"file",
	"item_id":"2764396",
	"posts_url":"http://blip.tv/file/2764396",
	
	"media_src":"blip.tv/file/get/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Web2summit-Web20Summit09SafaRashtchyWhatDoTeensWant118-772.jpg"
	},
	
	"User":"web2summit"
}},{ "Post" : {
	"title":"Web 2.0 Summit 09: Sean Parker, \"High Order Bit: The Rise of the Network Company\"",
	"adminTitle":"Web 2.0 Summit 09: Sean Parker, \"High Order Bit: The Rise of the Network Company\"",
	"description":"Sean Parker (Founders Fund), \"High Order Bit: The Rise of the Network Company\"",
	"tags":["web","2.0","summit","w2s","w2e","web2","web2.0","oreilly","oreilly","oreillymedia","oreilly","media","techweb","john","battelle","battellemedia","federated","media","technology"],
	"datestamp":"10-24-09 07:56pm",
	"datestampUnixtime":"1256428610",
	"datestampDate":"2009-10-24",
	"datestampText":"Oct 24, 2009",
		
	"postsId":2784252,
	"postsGuid":"E5AACE5C-C0F8-11DE-B437-A2DC3A86DD85",
	"itemType":"file",
	"itemId":2764379,
	"url":"http://blip.tv/file/2764379",
	"mediaUrl":"http://blip.tv/file/get/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497-409.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497-409-995.jpg",
	"login":"web2summit",
	"userId":85096,
	"showName":"Web 2.0 Summit",
	"blogUrl":null,
	"media":{
		"url":"http://blip.tv/file/get/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":755,
		"width":640,
		"height":360
	},
	"contentRating":"TV-UN",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Web 2.0 Summit 09: Sean Parker, \"High Order Bit: The Rise of the Network Company\"",
	"posts_id":"2784252",
	"item_type":"file",
	"item_id":"2764379",
	"posts_url":"http://blip.tv/file/2764379",
	
	"media_src":"blip.tv/file/get/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Web2summit-Web20Summit09SeanParkerHighOrderBitTheRiseOfTheNetw497-409.jpg"
	},
	
	"User":"web2summit"
}}
];



	
		var html; 
var container;
if(OUTPUT_METHOD == "dom") {
	container = document.createElement('div');
	container.className = 'bliptv_sidebar';
	container.style.width = '110px';
	container.style.border = '1px solid black';
	container.style.padding = '5px';
	
	var c = document.createElement('center');
	container.appendChild(c);

	var title = document.createElement('span');
	title.style.fontFamily = 'arial';
	title.style.fontSize = '7.5pt';
	title.style.fontWeight = 'bold';
	title.innerHTML = 'Web 2.0 Summit Video:';
	c.appendChild(title);
	c.appendChild(document.createElement('br'));
	c.appendChild(document.createElement('br'));
} else {
	html = '<div class="bliptv_sidebar" style="width: 110px; border: 1px solid black; padding: 5px;"><center>';
	html += '<span style="font-family: arial; font-size: 7.5pt; font-weight: bold;">Web 2.0 Summit Video:</span><br /><br />'; 
}

for(var i = 0; i < posts.length; i++) {
	if(posts[i]['Post']['Thumbnail']) {
		if(OUTPUT_METHOD == "dom") {
			var anchor = document.createElement('a');
			anchor.href = BLIP_SITE_URL + '/' + posts[i]['Post']['item_type'] + '/'+ posts[i]['Post']['item_id'];

			var img = document.createElement('img');
			img.src = posts[i]['Post']['Thumbnail']['Url'];
			img.width = '90';
			img.height = '75';
			img.border = '0';
			img.title = posts[i]['Post']['Title'];

			anchor.appendChild(img);
			c.appendChild(anchor);
			c.appendChild(document.createElement('br'));
			c.appendChild(document.createElement('br'));
		} else {
			html += '<a href="' + BLIP_SITE_URL + '/' + posts[i]['Post']['item_type'] + '/'+ posts[i]['Post']['item_id'] + '"><img src="' + posts[i]['Post']['Thumbnail']['Url'] + '" width="90" height="75" style="border: 0px;" title="' + posts[i]['Post']['Title'] + '"/></a><br /><br />';
		}
	}
}

if(OUTPUT_METHOD == "dom") {
	c.appendChild(document.createElement('br'));
	var anchor = document.createElement('a');
	anchor.href = BLIP_SITE_URL;
	
	var img = document.createElement('img');
	img.src = BLIP_SITE_URL  + '/skin/blipcast/blip.tv.share.button.gif';
	img.border = 0;

	anchor.appendChild(img);
	c.appendChild(anchor);

	document.getElementById('blip_sidebar_container').appendChild(container);
	
} else {
	html += '<br /><a href="' + BLIP_SITE_URL + '"><img src="' + BLIP_SITE_URL  + '/skin/blipcast/blip.tv.share.button.gif" border="0" /></a>'; 
	html += '</center></div>';
	document.write(html);
}

	

