rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
	rnd.seed = (rnd.seed*9301+49297) % 233280;
	return rnd.seed/(233280.0);
};
function rand(number) {
	return Math.ceil(rnd()*number);
};
function writeVideo() {
	var video = new Array();
	var vlink = new Array();
	var vthumb = new Array();
	var vdesc = new Array();
	video[0] = "";
	vlink[0] = "http://www.viddler.com/explore/GTRBlog/videos/111/";
	vdesc[0] = "SuperGT 2009 Rd 9 News Reel";
	vthumb[0] = "http://cdn-thumbs.viddler.com/thumbnail_1_3503f395.jpg";
	video[1] = "";
	vlink[1] = "http://www.viddler.com/explore/GTRBlog/videos/110/";
	vdesc[1] = "HKS Superior-R Ti Exhaust for Nissan GT-R";
	vthumb[1] = "http://cdn-thumbs.viddler.com/thumbnail_1_530ef309.jpg";
	video[2] = "";
	vlink[2] = "http://www.viddler.com/explore/GTRBlog/videos/109/";
	vdesc[2] = "Top Gear Australia - Nissan GT-R Test Without Speed Limiter";
	vthumb[2] = "http://cdn-thumbs.viddler.com/thumbnail_1_e98f6f7a.jpg";
	video[3] = "";
	vlink[3] = "http://www.viddler.com/explore/GTRBlog/videos/108/";
	vdesc[3] = "Best Motoring July 2009 Preview - Nissan GT-R Battle";
	vthumb[3] = "http://cdn-thumbs.viddler.com/thumbnail_1_4aca3e6.jpg";
	video[4] = "";
	vlink[4] = "http://www.viddler.com/explore/GTRBlog/videos/107/";
	vdesc[4] = "Best Motoring June 2009 -Tuner Battle - Preview";
	vthumb[4] = "http://cdn-thumbs.viddler.com/thumbnail_1_d42dc174.jpg";
	video[5] = "";
	vlink[5] = "http://www.viddler.com/explore/GTRBlog/videos/106/";
	vdesc[5] = "SuperGT 2009 - Round 03 - Fuji Speedway News Reel";
	vthumb[5] = "http://cdn-thumbs.viddler.com/thumbnail_1_1e7b097e.jpg";
	video[6] = "";
	vlink[6] = "http://www.viddler.com/explore/GTRBlog/videos/105/";
	vdesc[6] = "FIA GT 2009 - Round 1 Silverstone Preview";
	vthumb[6] = "http://cdn-thumbs.viddler.com/thumbnail_1_d23aa69b_v1.jpg";
	video[7] = "";
	vlink[7] = "http://www.viddler.com/explore/GTRBlog/videos/103/";
	vdesc[7] = "SuperGT 2009 Round 2 - Suzuka Circuit";
	vthumb[7] = "http://cdn-thumbs.viddler.com/thumbnail_1_49cc59a5.jpg";
	video[8] = "";
	vlink[8] = "http://www.viddler.com/explore/GTRBlog/videos/101/";
	vdesc[8] = "Tommy Kaira - Garaiya Presentation";
	vthumb[8] = "http://cdn-thumbs.viddler.com/thumbnail_1_26b9fa8a.jpg";
	video[9] = "";
	vlink[9] = "http://www.viddler.com/explore/GTRBlog/videos/102/";
	vdesc[9] = "Tommy Kaira ZZ Demonstration";
	vthumb[9] = "http://cdn-thumbs.viddler.com/thumbnail_1_e2ccefb.jpg";
	video[10] = "";
	vlink[10] = "http://www.viddler.com/explore/GTRBlog/videos/100/";
	vdesc[10] = "Nissan Launch the 370z Roadster and Nismo Version in New York";
	vthumb[10] = "http://cdn-thumbs.viddler.com/thumbnail_1_ac52a6e9.jpg";
	video[11] = "";
	vlink[11] = "http://www.viddler.com/explore/GTRBlog/videos/99/";
	vdesc[11] = "3&quot; AAM Competition Mid-Pipe GT-R";
	vthumb[11] = "http://cdn-thumbs.viddler.com/thumbnail_1_be0f4dae.jpg";
	video[12] = "";
	vlink[12] = "http://www.viddler.com/explore/GTRBlog/videos/98/";
	vdesc[12] = "3&quot; AAM Competition Down-Pipe, 3&quot; AAM Competition Mid-Pipe GT-R";
	vthumb[12] = "http://cdn-thumbs.viddler.com/thumbnail_1_96ea1539.jpg";
	video[13] = "";
	vlink[13] = "http://www.viddler.com/explore/GTRBlog/videos/97/";
	vdesc[13] = "3&quot; AAM Competition Mid-Pipe GT-R";
	vthumb[13] = "http://cdn-thumbs.viddler.com/thumbnail_1_4346a458.jpg";
	video[14] = "";
	vlink[14] = "http://www.viddler.com/explore/GTRBlog/videos/96/";
	vdesc[14] = "Nismo FIA GT1 Nissan GT-R OnBoard Camera Footage";
	vthumb[14] = "http://cdn-thumbs.viddler.com/thumbnail_1_5e68c478.jpg";
	video[15] = "";
	vlink[15] = "http://www.viddler.com/explore/GTRBlog/videos/95/";
	vdesc[15] = "Best Motoring May 2009: Preview";
	vthumb[15] = "http://cdn-thumbs.viddler.com/thumbnail_1_7bd96964_v1.jpg";
	video[16] = "";
	vlink[16] = "http://www.viddler.com/explore/GTRBlog/videos/94/";
	vdesc[16] = "SuperGT 2009: Round 1 Winner Report";
	vthumb[16] = "http://cdn-thumbs.viddler.com/thumbnail_1_4ed7d209.jpg";
	video[17] = "";
	vlink[17] = "http://www.viddler.com/explore/GTRBlog/videos/93/";
	vdesc[17] = "Challenge Nissan GT-R Y-Pipes by GT Motoring";
	vthumb[17] = "http://cdn-thumbs.viddler.com/thumbnail_1_a476cc7_v1.jpg";
	video[18] = "";
	vlink[18] = "http://www.viddler.com/explore/GTRBlog/videos/92/";
	vdesc[18] = "Motor Trend: Hyundai vs Mustang GT vs 370z";
	vthumb[18] = "http://cdn-thumbs.viddler.com/thumbnail_1_679ebbb2_v1.jpg";
	video[19] = "";
	vlink[19] = "http://www.viddler.com/explore/GTRBlog/videos/91/";
	vdesc[19] = "JUN Super Lemon R33 GT-R Test Drive";
	vthumb[19] = "http://cdn-thumbs.viddler.com/thumbnail_1_d1f3c5ed.jpg";

	var thenum = rand(video.length);
	var thecode = '<div class="vlink"><a href="'+vlink[thenum-1]+'"><img src="'+vthumb[thenum-1]+'" alt="'+vdesc[thenum-1]+'" width=220 height=140 border=0 class="vpic"></a><br>'+vdesc[thenum-1]+'</div>';

	document.getElementById("videospace").innerHTML = thecode;
};
