
	/*html5 video*/
	var detectVideoSupport = function (){
	    var detect = document.createElement('video') || false;
	    this.html5 = detect && typeof detect.canPlayType !== "undefined";
	    this.mp4 = this.html5 && (detect.canPlayType("video/mp4") === "maybe" || detect.canPlayType("video/mp4") === "probably");
	    this.ogg = this.html5 && (detect.canPlayType("video/ogg") === "maybe" || detect.canPlayType("video/ogg") === "probably");
	    return this;
	};
	var detectIdevice = function () {
		this.iphone = ((navigator.userAgent.indexOf('iPhone') !== -1) || (navigator.userAgent.indexOf('iPod') !== -1));
		this.ipad = (navigator.userAgent.indexOf('iPad') !== -1);
		this.idevice = (this.iphone || this.ipad);
		return this;
	}
	function HTML5showthevideo(dblockid) {
		$("#HTML5VideoPreview_"+dblockid).animate({ "opacity": "hide"}, 200, 
			    function() {
					$("#HTML5VideoPlayer_"+dblockid).animate({ "opacity": "show"}, 200);
					document.getElementById("HTML5VideoPlayer_"+dblockid).play();
				}
		);
	}
