function createVideoControl(divID, format, width, height, url) {
	if (format == "wmv") {
		height = parseInt(height) + 46;
		var embedCode = '<OBJECT ID="MediaPlayer" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" WIDTH="' + width + '" HEIGHT="' + height +'" ' +
									' STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">' + "\n" +
									'<PARAM NAME="FileName" VALUE="' + url + '">' +
									'<PARAM name="autostart" VALUE="true">' +
									'<PARAM name="ShowControls" VALUE="true">' +
									'<PARAM name="ShowStatusBar" value="false">' +
									'<PARAM name="Scale" value="ToFit">' +
									'<PARAM name="ShowDisplay" VALUE="false">' + "\n" +
									'<EMBED TYPE="application/x-mplayer2" SRC="' + url + '" NAME="MediaPlayer" WIDTH="' + width + '" HEIGHT="' + height + '" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="1" SCALE="ToFit"></EMBED>' + "\n" +
								'</OBJECT>';
	} else {
		var embedCode = '<OBJECT ID="rv" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="' + width + '" HEIGHT="' + height +'">' + "\n" +
									'<PARAM NAME="src" VALUE="' + url + '">' +
									'<PARAM name="autostart" VALUE="true">' +
									'<PARAM name="controls" value="ImageWindow">' +
									'<PARAM name="console" value="one">' + "\n" +
									'<EMBED TYPE="audio/x-pn-realaudio-plugin" SRC="' + url + '" WIDTH="' + width + '" HEIGHT="' + height + '" CONTROLS="ImageWindow" CONSOLE="one" AUTOSTART="true"></EMBED>' + "\n" +
								'</OBJECT>' + "\n" + 
								'<OBJECT ID="rvc" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="' + width + '" HEIGHT="36">' + "\n" +
									'<PARAM NAME="src" VALUE="' + url + '">' +
									'<PARAM name="autostart" VALUE="true">' +
									'<PARAM name="controls" value="ControlPanel">' +
									'<PARAM name="console" value="one">' + "\n" +
									'<EMBED TYPE="audio/x-pn-realaudio-plugin" SRC="' + url + '" WIDTH="' + width + '" HEIGHT="36" CONTROLS="ControlPanel" CONSOLE="one" AUTOSTART="true"></EMBED>' + "\n" +
								'</OBJECT>';
	}
	
	var e = document.getElementById(divID);
	e.innerHTML = embedCode;
}

function setActiveVideo(myID) {

	var e = document.getElementById('sel_real_isdn');
	if (myID == "sel_real_isdn") {
		e.className = "button left HI";
	} else {
		e.className = "button left";
	}
	var e = document.getElementById('sel_real_dsl');
	if (myID == "sel_real_dsl") {
		e.className = "button left HI";
	} else {
		e.className = "button left";
	}
	var e = document.getElementById('sel_wmv_isdn');
	if (myID == "sel_wmv_isdn") {
		e.className = "button right HI";
	} else {
		e.className = "button right";
	}
	var e = document.getElementById('sel_wmv_dsl');
	if (myID == "sel_wmv_dsl") {
		e.className = "button right HI";
	} else {
		e.className = "button right";
	}
	
	trackUser();
}
