
/*$(".play").live("hover", function () {
    if ($(".video").length == 0) {
        var content = $(".right-middle .content-full").html();
        $(".right-middle .content-full").load("video.html",function() {
            $(".right-middle .content-full").append(0, content);
     });    
}
});*/

/*$(".btnLuk").live("click", function () {
    $("#video OBJECT").remove();
});*/

$(window).load(function () {
    $(".play").each(function () {
        var overlay = document.createElement("span");
       
        var width = $(this).css("width");
        var height = $(this).css("height");
        var text = $(this).attr("title");
        var top = height;
        var textratio = 0.15;
        var fontsize = parseFloat(height.replace("px", "") * textratio, 0);
        
        overlay.setAttribute("class", "video-overlay");
				$(overlay).css({
					"width": width,
					"height": parseFloat((height.replace("px", "") / 3), 0),
					"top": (parseFloat(height.replace("px",""),0)/3)*-1,
					"display": "block",
					"font-size": fontsize + "px",
					"position": "relative",
					"z-index": "999997",
					"left": "0",
					"color": "#fff",
					"line-height": "27px",
					"background": "Transparent url(images/overlay.png)",
					"-ms-filter": "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)",
					"filter": "alpha(opacity=70)",
					"-moz-opacity": ".70"
				});
        
        $(overlay).css("opacity", ".70");
        $(overlay).html(text);
        $(this).append(overlay);
    });
});
