function createWmv(wmvname) {
	// this looks to see if the user is in the CMS (a) by using the [skip][endskip]
	if (a == "a") {
	var src = "wmvs/";
	
	}
	// if the user is anywhere but the CMS they are shown the published path
	else {
	var src = "/wmvs/";
	
	}
	// this puts it all together
	document.write('<object id="MediaPlayer" width="' + width +'" height="' + height + '" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">');
	document.write('<param name="filename" value="' + src + wmvname + '.wmv" >');
	document.write('<param name="Showcontrols" value="True">');
	document.write('<param name="autoStart" value="True">');
	document.write('<embed type="application/x-mplayer2" src="' + src + wmvname + '.wmv" name="MediaPlayer" width="' + width +'" height="' + height + '"></embed>');
	document.write('</object>');

}	   
