function videowmv(link, name) {
	newWindow = window.open('', link + name, 'scrollbars=no, toolbar=no, status=no, width=400, height=340');
	newWindow.document.writeln('<?xml version="1.0" encoding = "UTF-8"?>');
	newWindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"');
	newWindow.document.writeln('                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
	newWindow.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">');
	newWindow.document.writeln('	<head>');
	newWindow.document.writeln('		<title>Vid ' + name + '</title>');
	newWindow.document.writeln('		<link rel="stylesheet" type="text/css" media="screen" href="all.css" />');
	newWindow.document.writeln('		<link rel="stylesheet" type="text/css" media="screen" href="content.css" />');
	/* newWindow.document.writeln('		<script src="all.js" type="text/javascript"></script>');
	newWindow.document.writeln('		<script src="content.js" type="text/javascript"></script>'); */
	newWindow.document.writeln('	</head>');
	newWindow.document.writeln('	');
	newWindow.document.writeln('	<body scroll="no">');
	newWindow.document.writeln('		<table cellpadding=\"0\" cellspacing=\"0\" height="100%">');
	newWindow.document.writeln('			<tr>');
	newWindow.document.writeln('				<td>');
	newWindow.document.writeln('					<object id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="100%" height="100%">');
	newWindow.document.writeln('						<param name="fileName" value="videos/' + link + '/' + name + '.wmv" />');
	newWindow.document.writeln('						<param name="animationatStart" value="true" />');
	newWindow.document.writeln('						<param name="transparentatStart" value="true" />');
	newWindow.document.writeln('						<param name="autoStart" value="true" />');
	newWindow.document.writeln('						<param name="showControls" value="false" />');
	newWindow.document.writeln('						<param name="Volume" value="-20" />');
	newWindow.document.writeln('						<param name="ShowStatusBar" value="true" />');
	newWindow.document.writeln('						<param name="loop" value="1" />');
	newWindow.document.writeln('						<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="videos/' + link + '/' + name + '.wmv" name="MediaPlayer" width="100%" height="330" autostart="1" showcontrols="0" volume="-20" ShowStatusBar="1" loop="1" />');
	newWindow.document.writeln('					</object>');
	newWindow.document.writeln('				</td>');
	newWindow.document.writeln('			</tr>');
	newWindow.document.writeln('		</table>');
	newWindow.document.writeln('	</body>');
	newWindow.document.write('</html>');
}

function videoflv(link, name)
{
	newWindow = window.open('videos/player.swf?url=' + link + '/' + name + '.flv', link + name, 'scrollbars=no, toolbar=no, status=no, resizable=yes, width=400, height=350');
}

function video(link, name)
{
	;
}

function bikes(link, name)
{
	window.open(link, name, 'toolbar=no, status=no, width=340, height=330');
}

function preloadImage(name1, name2)
{
	name1 = new Image();
	name1.src = name2 + '.gif';
}

function memberChange(num, name, w, h)
{
	document.getElementById(num).src=name + '.gif';
	var brand = document.getElementById(num);
	brand.width = w;
	brand.height = h;
}

function bikeChange(name)
{
	document.images[0].src=name + '.jpg';
}

function formHandler(form)
{
	if(form.program.options[form.program.selectedIndex].value != "")
	{
		parent.chosen.location.href = form.program.options[form.program.selectedIndex].value;
	}
}