//----------------------------------------------------------
// Copyright (C) iPOV inc. All rights reserved.
//----------------------------------------------------------
//

assetURL = '/mysite/vc';
var videoAssetURL = 'vc';	// because the player is on a different base path than the page.
params = {
	swfliveconnect: "true",
	allowScriptAccess: "always",
	allowNetworking: "all",
	allowFullscreen: "true",
	salign: "lt",
	scale: "noscale",
	loop: "false",
	wmode: "transparent"
};


var idCounter = 1;
var maxTests = 1024;

userOptions = {
		/*
	'5d_heart-out': {
		id: (idCounter++) + '',
		description: 'Beating Heart Simulation',
		thumbnail: '5d_heart-out.jpg',
		thumbnailSmall: '5d_heart-out_small.jpg',
		vthumb: '5d_heart-out.flv',
		thumbWidth: 86,
		thumbHeight: 66,
		layer: 'video',
		url: '5d_heart-out2.swf',
		width: 240,
		height: 320,
		variant: 'avm1',
		fps: 30,
		version: 6,
		maxEnd: 1624,
		end: 1634
	}, */
	'single-flv': {
		id: (idCounter++) + '',
		description: 'Ab Machine',
		thumbnail: 'abcrunch2.jpg',
		thumbnailSmall: 'abcrunch2_small.jpg',
		thumbWidth: 120,
		thumbHeight: 90,
		layer: 'video',
		url: 'abcrunch2.flv',
		variant: 'flv',
		width: 320,
		height: 240,
		maxEnd: 43100
	},
	'single-flv2': {
		id: (idCounter++) + '',
		description: 'Music Video',
		thumbnail: 'rayvon_music.jpg',
		thumbnailSmall: 'rayvon_music_small.jpg',
		thumbWidth: 120,
		thumbHeight: 90,
		layer: 'video',
		url: 'rayvon_music.flv',
		variant: 'flv',
		width: 406,
		height: 296,
		maxEnd: 30250
	},
	'single-avm2': {
		id: (idCounter++) + '',
		description: 'T-shirt Slow Fold',
		thumbnail: 'SlowFold_no_ctrl_KF_flash9.jpg',
		thumbnailSmall: 'SlowFold_no_ctrl_KF_flash9_small.jpg',
		thumbWidth: 120,
		thumbHeight: 90,
		layer: 'video',
		url: 'SlowFold_no_ctrl_KF_flash9.swf',
		width: 300,
		height: 200,
		version: '9',
		fps: 12,
		maxEnd: 438
	}

};




function clone(obj){
	if(obj == null || typeof(obj) != 'object')
		return obj;

	var temp = new obj.constructor(); // changed (twice)

	for(var key in obj)
		temp[key] = clone(obj[key]);

	return temp;
}


