
function videoPlayer(mov, id, w, h, h2){
	this.mov = mov;
	this.id = id;
	this.width = w;
	this.height = h;
	this.ieHeight = h2;
	this.getHTML = function(){
		var wmvHTML = ""
					+ '<object id="mediaPlayer" width="'+this.width+'" height="'+this.ieHeight+'" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" type="application/x-oleobject">'
					+ '<param name="fileName" value="'+this.mov+'">'
					+ '<param name="autoStart" value="true">'
					+ '<param name="showControls" value="true">'
					+ '<param name="showStatusBar" value="true">'
					+ '<embed id="mediaPlayer" name="mediaPlayer" type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"'
					+ '   width="'+this.width+'" height="'+this.height+'" src="'+this.mov+'" autostart="true" showControls="true" showStatusBar="true">'
					+ '<\/embed>'
					+ '<\/object>';
		return wmvHTML;
	}
	this.write = function(id){
		if(id){
			document.getElementById(id).innerHTML = this.getHTML();
		} else {
			document.write(this.getHTML());
		}
	}
}