QTObject = function (_1, id, w, h) {
	this.mov = _1;
	this.id = id;
	this.width = w;
	this.height = h;
	this.redirect = "";
	this.sq = document.location.search.split("?")[1] || "";
	this.altTxt = "<p>This content requires the QuickTime Plugin. <a href='http://www.apple.com/quicktime/download/'>Download QuickTime Player</a>.</p>";
	this.bypassTxt = "<p>Already have QuickTime Player? <a href='?detectqt=false&" + this.sq + "'>Click here.</a></p>";
	this.params = new Object();
	this.doDetect = getQueryParamValue("detectqt")
};
QTObject.prototype.addParam = function (_5, _6) {
	this.params[_5] = _6
};
QTObject.prototype.getParams = function () {
	return this.params
};
QTObject.prototype.getParam = function (_7) {
	return this.params[_7]
};
QTObject.prototype.getParamTags = function () {
	var _8 = "";
	for (var _9 in this.getParams()) {
		_8 += "<param name=\"" + _9 + "\" value=\"" + this.getParam(_9) + "\" />"
	}
	if (_8 == "") {
		_8 = null
	}
	return _8
};
QTObject.prototype.getHTML = function () {
	var _a = "";
	if (navigator.plugins && navigator.plugins.length) {
		_a += "<embed type=\"video/quicktime\" src=\"" + this.mov + "\" width=\"" + this.width + "\" height=\"" + this.height + "\" id=\"" + this.id + "\"";
		for (var _b in this.getParams()) {
			_a += " " + _b + "=\"" + this.getParam(_b) + "\""
		}
		_a += "></embed>"
	} else {
		_a += "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"" + this.width + "\" height=\"" + this.height + "\" id=\"" + this.id + "\">";
		this.addParam("src", this.mov);
		if (this.getParamTags() != null) {
			_a += this.getParamTags()
		}
		_a += "</object>"
	}
	return _a
};
QTObject.prototype.getVariablePairs = function () {
	var _c = new Array();
	for (var _d in this.getVariables()) {
		_c.push(_d + "=" + escape(this.getVariable(_d)))
	}
	if (_c.length > 0) {
		return _c.join("&")
	} else {
		return null
	}
};
QTObject.prototype.write = function (_e) {
	if (isQTInstalled() || this.doDetect == "false") {
		if (_e) {
			document.getElementById(_e).innerHTML = this.getHTML()
		} else {
			document.write(this.getHTML())
		}
	} else {
		if (this.redirect != "") {
			document.location.replace(this.redirect)
		} else {
			if (_e) {
				document.getElementById(_e).innerHTML = this.altTxt + "" + this.bypassTxt
			} else {
				document.write(this.altTxt + "" + this.bypassTxt)
			}
		}
	}
};
function isQTInstalled() {
	var _f = false;
	qtObj = false;
	if (navigator.plugins && navigator.plugins.length) {
		for (var i = 0; i < navigator.plugins.length; i++) {
			var _11 = navigator.plugins[i];
			if (_11.name.indexOf("QuickTime") > -1) {
				_f = true
			}
		}
	} else {
		execScript("on error resume next: qtObj = IsObject(CreateObject(\"QuickTimeCheckObject.QuickTimeCheck.1\"))", "VBScript");
		_f = qtObj
	}
	return _f
}
function getQueryParamValue(_12) {
	var q = document.location.search;
	var _14 = q.indexOf(_12);
	var _15 = (q.indexOf("&", _14) != -1) ? q.indexOf("&", _14) : q.length;
	if (q.length > 1 && _14 != -1) {
		return q.substring(q.indexOf("=", _14) + 1, _15)
	} else {
		return ""
	}
}
