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

var posts = [{ "Post" : {
	"title":"Kodak Zi8 Entry Level Mic Tests",
	"adminTitle":"Kodak Zi8 Entry Level Mic Tests",
	"description":"<p>Testing the mic in jack on the Kodak Zi8 with:",
	"tags":["kodak zi8","audio technica atm 10a","azden sgm-2x","audio technica atr-35s"],
	"datestamp":"09-25-09 05:59pm",
	"datestampUnixtime":"1253915977",
	"datestampDate":"2009-09-25",
	"datestampText":"Sep 25, 2009",
		
	"postsId":2666482,
	"postsGuid":"B7E0763E-AA1E-11DE-A531-DA9AE3CC50DF",
	"itemType":"file",
	"itemId":2646564,
	"url":"http://blip.tv/file/2646564",
	"mediaUrl":"http://blip.tv/file/get/Getseen-KodakZi8EntryLevelMicTests528.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Getseen-KodakZi8EntryLevelMicTests633.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Getseen-KodakZi8EntryLevelMicTests633-301.jpg",
	"login":"getseen",
	"userId":379752,
	"showName":"Get Seen by Steve Garfield",
	"blogUrl":"http://stevegarfield.com/getseen",
	"media":{
		"url":"http://blip.tv/file/get/Getseen-KodakZi8EntryLevelMicTests528.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":522,
		"width":1280,
		"height":720
	},
	"contentRating":"TV-G",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Kodak Zi8 Entry Level Mic Tests",
	"posts_id":"2666482",
	"item_type":"file",
	"item_id":"2646564",
	"posts_url":"http://blip.tv/file/2646564",
	
	"media_src":"blip.tv/file/get/Getseen-KodakZi8EntryLevelMicTests528.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Getseen-KodakZi8EntryLevelMicTests633.jpg"
	},
	
	"User":"getseen"
}},{ "Post" : {
	"title":"Kodak Zi8 Three Microphone Test: Handheld, Shotgun and Wireless",
	"adminTitle":"Kodak Zi8 Three Microphone Test: Handheld, Shotgun and Wireless",
	"description":"",
	"tags":["kodak","zi8","electro-voice","sennheiser","microphone"],
	"datestamp":"08-19-09 05:39pm",
	"datestampUnixtime":"1250717998",
	"datestampDate":"2009-08-19",
	"datestampText":"Aug 19, 2009",
		
	"postsId":2514069,
	"postsGuid":"D7A36342-8D08-11DE-8C11-A786C729B9B2",
	"itemType":"file",
	"itemId":2494056,
	"url":"http://blip.tv/file/2494056",
	"mediaUrl":"http://blip.tv/file/get/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202-932.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202-932-885.jpg",
	"login":"getseen",
	"userId":379752,
	"showName":"Get Seen by Steve Garfield",
	"blogUrl":"http://stevegarfield.com/getseen",
	"media":{
		"url":"http://blip.tv/file/get/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":70,
		"width":960,
		"height":540
	},
	"contentRating":"TV-G",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Kodak Zi8 Three Microphone Test: Handheld, Shotgun and Wireless",
	"posts_id":"2514069",
	"item_type":"file",
	"item_id":"2494056",
	"posts_url":"http://blip.tv/file/2494056",
	
	"media_src":"blip.tv/file/get/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Getseen-KodakZi8ThreeMicrophoneTestHandheldShotgunAndWireless202-932.jpg"
	},
	
	"User":"getseen"
}},{ "Post" : {
	"title":"Kodak Zi8 Unboxing and External Microphone Test",
	"adminTitle":"Kodak Zi8 Unboxing and External Microphone Test",
	"description":"",
	"tags":["kodak","zi8","unboxing","microphone"],
	"datestamp":"08-18-09 05:55pm",
	"datestampUnixtime":"1250632551",
	"datestampDate":"2009-08-18",
	"datestampText":"Aug 18, 2009",
		
	"postsId":2510146,
	"postsGuid":"E55AA51C-8C41-11DE-9669-48CB99B52DA4",
	"itemType":"file",
	"itemId":2490133,
	"url":"http://blip.tv/file/2490133",
	"mediaUrl":"http://blip.tv/file/get/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412-322.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412-322-234.jpg",
	"login":"getseen",
	"userId":379752,
	"showName":"Get Seen by Steve Garfield",
	"blogUrl":"http://stevegarfield.com/getseen",
	"media":{
		"url":"http://blip.tv/file/get/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":124,
		"width":960,
		"height":540
	},
	"contentRating":"TV-G",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Kodak Zi8 Unboxing and External Microphone Test",
	"posts_id":"2510146",
	"item_type":"file",
	"item_id":"2490133",
	"posts_url":"http://blip.tv/file/2490133",
	
	"media_src":"blip.tv/file/get/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Getseen-KodakZi8UnboxingAndExternalMicrophoneTest412-322.jpg"
	},
	
	"User":"getseen"
}},{ "Post" : {
	"title":"Getting Better Sound on the Nokia N95",
	"adminTitle":"Getting Better Sound on the Nokia N95",
	"description":"Here\'s a hack to use the included A/V cable to add an external powered mic to the Nokia N95 for better audio. Parts: RadioShack Gold Series Phono-to-Phono Audio Coupler Gold Series Adapter, 1/8\" Phone Plug to Phono Jack Sennheiser ew100ENGG2 Lavalier Wireless System Visit <a href=\"http://stevegarfield.com/getseen\">Get Seen</a>.",
	"tags":["nokia","n95","audio","phono","pho","adapter","plug","a/v","sennheiser","getseen"],
	"datestamp":"05-29-09 11:30am",
	"datestampUnixtime":"1243611004",
	"datestampDate":"2009-05-29",
	"datestampText":"May 29, 2009",
		
	"postsId":2185376,
	"postsGuid":"94F28B38-4C65-11DE-B9CE-90196A31DFAC",
	"itemType":"file",
	"itemId":2174605,
	"url":"http://blip.tv/file/2174605",
	"mediaUrl":"http://blip.tv/file/get/Getseen-GettingBetterSoundOnTheNokiaN95955.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Getseen-GettingBetterSoundOnTheNokiaN95955-525.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Getseen-GettingBetterSoundOnTheNokiaN95955-525-562.jpg",
	"login":"getseen",
	"userId":379752,
	"showName":"Get Seen by Steve Garfield",
	"blogUrl":"http://stevegarfield.com/getseen",
	"media":{
		"url":"http://blip.tv/file/get/Getseen-GettingBetterSoundOnTheNokiaN95955.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":113,
		"width":1280,
		"height":720
	},
	"contentRating":"TV-G",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"Getting Better Sound on the Nokia N95",
	"posts_id":"2185376",
	"item_type":"file",
	"item_id":"2174605",
	"posts_url":"http://blip.tv/file/2174605",
	
	"media_src":"blip.tv/file/get/Getseen-GettingBetterSoundOnTheNokiaN95955.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Getseen-GettingBetterSoundOnTheNokiaN95955-525.jpg"
	},
	
	"User":"getseen"
}},{ "Post" : {
	"title":"10 Cameras in 4 Minutes: Quick look at cameras that shoot HD",
	"adminTitle":"10 Cameras in 4 Minutes: Quick look at cameras that shoot HD",
	"description":"Canon S400 (not HD), Panasonic DMC-FX37, Sony Webbie MHS-PM1, Sony HD AVCHD, Flip mino (not HD), Flip mino HD (not shown, shoots 720P), Panasonic Lumix DMC-TS1, Panasonic HDC-SD100, Kodak Zi6",
	"tags":["panasonic dmc-fx37","sony webbie mhs-pm1","sony hd avchd","flip mino (not hd)","flip mino hd (not shown","shoots 720p)","panasonic lumix dmc-ts1","panasonic hdc-sd100","kodak zi6"],
	"datestamp":"05-27-09 06:49pm",
	"datestampUnixtime":"1243464597",
	"datestampDate":"2009-05-27",
	"datestampText":"May 27, 2009",
		
	"postsId":2178753,
	"postsGuid":"B3DAF982-4B10-11DE-BBB5-D899A8CADFF8",
	"itemType":"file",
	"itemId":2168015,
	"url":"http://blip.tv/file/2168015",
	"mediaUrl":"http://blip.tv/file/get/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791.mov?source=2",
	"thumbnailUrl":"http://a.images.blip.tv/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791-200.jpg",
	"thumbnail120Url":"http://a.images.blip.tv/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791-200-341.jpg",
	"login":"getseen",
	"userId":379752,
	"showName":"Get Seen by Steve Garfield",
	"blogUrl":"http://stevegarfield.com/getseen",
	"media":{
		"url":"http://blip.tv/file/get/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791.mov?source=2",
		"mimeType":"video/quicktime",
		"duration":239,
		"width":1280,
		"height":720
	},
	"contentRating":"TV-G",
	"advertising":"",

	/* Version 1 implementation, please supply version=2 in the future */
	"Title":"10 Cameras in 4 Minutes: Quick look at cameras that shoot HD",
	"posts_id":"2178753",
	"item_type":"file",
	"item_id":"2168015",
	"posts_url":"http://blip.tv/file/2168015",
	
	"media_src":"blip.tv/file/get/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791.mov?source=2",
	
	
	"Thumbnail":{
		"Url":"http://a.images.blip.tv/Getseen-10CamerasIn4MinutesQuickLookAtCamerasThatShootHD791-200.jpg"
	},
	
	"User":"getseen"
}}
];



	
		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 = 'Get Seen Videos: ';
	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;">Get Seen Videos: </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);
}

	

