//Wlk_qt function
//This is version 0.7......name change only v 0.5 ....adding in JS embed that actually works! (but sucks to use as it no longer involves just one tag)

//love, walker.

function write_wlkqt(video, width, height, controller, scale, qttype, autoplay, bgcolor, mvname, node, pan, tilt, fov)
{
	str = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"  CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=7,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'">'+'<PARAM NAME="controller" VALUE="'+controller+'">'+'<PARAM NAME="scale" VALUE="'+scale+'">'+'<PARAM NAME="type" VALUE="'+qttype+'">'+'<PARAM NAME="autoplay" VALUE="'+autoplay+'">'+'<PARAM NAME="target" VALUE="myself">'+'<PARAM NAME="src" VALUE="'+video+'">'+'<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/index.html">';
	if(bgcolor!=null)
	{
		str = str+'<PARAM NAME="bgcolor" VALUE="'+bgcolor+'">';
	}
	if(mvname!=null)
	{
		str = str+'<PARAM NAME="moviename" VALUE="'+mvname+'">';
	}
	if(node!=null)
	{
		str = str+'<PARAM NAME="node" VALUE="'+node+'">';
	}
	if(pan!=null)
	{
		str = str+'<PARAM NAME="pan" VALUE="'+pan+'">';
	}
	if(tilt!=null)
	{
		str = str+'<PARAM NAME="tilt" VALUE="'+tilt+'">';
	}
	if(fov!=null)
	{
		str = str+'<PARAM NAME="fov" VALUE="'+fov+'">';
	}	
	str = str+'<EMBED CONTROLLER="'+controller+'" WIDTH="'+width+'" HEIGHT="'+height+'" AUTOPLAY="'+autoplay+'" SCALE="'+scale+'" TARGET="myself" SRC="'+video+'" type="'+qttype+'"';
	if(bgcolor!=null)
	{
		str = str+' BGCOLOR="'+bgcolor+'"';	
	}
	if(mvname!=null)
	{
		str = str+' MOVIENAME="'+mvname+'"';	
	}
	if(node!=null)
	{
		str = str+' NODE="'+node+'"';	
	}
	if(pan!=null)
	{
		str = str+' PAN="'+pan+'"';	
	}
	if(tilt!=null)
	{
		str = str+' TILT="'+tilt+'"';	
	}
	if(fov!=null)
	{
		str = str+' FOV="'+fov+'"';	
	}
	str = str+' PLUGINSPAGE="http://www.apple.com/quicktime/download/index.html"></EMBED></OBJECT>';
	document.write(str);
}
