﻿var videos =
[
	{ file: 'nab10testimonial_britwarner.mp4', name: 'Brit Warner', thumb: 'nab10testimonial_britwarner.png' },
	{ file: 'nab10testimonial_robertstarling.mp4', name: 'Robert Starling', thumb: 'nab10testimonial_robertstarling.png' },
	{ file: 'kayecruz.mp4', name : 'Kaye Cruz', thumb: 'kayecruz.png' },
	{ file: 'mikeramirez.mp4', name : 'Mike Ramirez', thumb: 'mikeramirez.png' },
	{ file: 'testamonials_showbiz2011_victor.mp4', name: 'Victor', thumb: 'victor.png' },
	{ file: 'testamonials_nab2011_tai.mp4', name: 'Tai', thumb: 'tai.png' },
	{ file: 'testimonial_nab2011_launchflix_stephaniehouser.mp4', name: 'Stephanie Houser', thumb: 'stephanie_houser.png' },
	{ file: 'testimonial_showbiz2011_elliotjohnson.mp4', name: 'Elliot Johnson', thumb: 'elliot_johnson.png' },
	{ file: 'testimonial_nab2011_mediaone_georgeharrold.mp4', name: 'George Harrold', thumb: 'george_harrold.png' },
];

$(function() {
	var randomnumber = Math.floor(Math.random() * videos.length);
	var currentVideo = videos[randomnumber];

	$('#matrix a, .lightbox').colorbox();

	$('<div />', {
		id: 'play-button'
	}).append($('<a />', {
		href: '/video/load_video.aspx?file=' + currentVideo.file,
		title: 'Testimonal from ' + currentVideo.name
	}).append($('<img />', {
		src: '/videos/thumbs/' + currentVideo.thumb,
		alt: currentVideo.name
	}))).prependTo('#profile-signup');

	$('#play-button a').colorbox({
		innerWidth: '848',
		innerHeight: '480',
		iframe: true,
		scrolling: false
	});
});
