// JavaScript Document


function tabProcess(id)
{
	if(jQuery('#'+id).attr("class") != 'tabActive')
	{
			jQuery("#tab_home").attr("class","tab homeTab");
			jQuery("#tab_tvshow").attr("class","tab tvshowTab");
			jQuery("#tab_quanxa").attr("class","tab quanxaTab");
			jQuery("#"+id).attr("class",jQuery("#"+id).attr("class")+" tabActive");
			/*jQuery("#gameinfo_content").css("display","none");
			jQuery("#sharegame_content").css("display","none");
			jQuery("#pointlist_content").css("display","none");
			jQuery("#price_content").css("display","none");
			jQuery("#"+id+"_content").css("display","block");*/
		
	}
}





function replyComment(boxid) {
	if (jQuery(boxid + ' #boxCommentReply').attr("class") != "boxActive") {
		jQuery(boxid + ' #boxCommentReply').attr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {											   
			jQuery(boxid + ' #boxCommentReply').fadeIn("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left bottom");
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					createScrollBar ('#boxCommentHay #news_detail_commentList', 300);
					
				});
			});
		});
	} else {
		jQuery(boxid + ' #boxCommentReply').removeAttr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {
			jQuery(boxid + ' #boxCommentReply').fadeOut("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left top");														
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					createScrollBar ('#boxCommentHay #news_detail_commentList', 300);
				});
			});
		});	
	}
}

function QA_reply(boxid)
{
	if (jQuery(boxid + ' #QA_boxhoidap_boxReply').attr("class") != "boxActive") {
		jQuery(boxid + ' #QA_boxhoidap_boxReply').attr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {											   
			jQuery(boxid + ' #QA_boxhoidap_boxReply').fadeIn("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left bottom");
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					createScrollBar ('#QA_boxhoidap_list', 440);
				});
			});
		});
	} else {
		jQuery(boxid + ' #QA_boxhoidap_boxReply').removeAttr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {
			jQuery(boxid + ' #QA_boxhoidap_boxReply').fadeOut("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left top");														
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					createScrollBar ('#QA_boxhoidap_list', 440);
				});
			});
		});	
	}
}

function showVote(voteid, perc) {
	$('table.tblVoted td#' + voteid + ' div.star_bg div.star_face').css('width', perc + "%");
}

function showuserVote () {
	jQuery('.btnVoted').fadeOut("fast", function (){
		jQuery('.userVote').fadeIn("def");										 
	});	
}

function userVote () {
	jQuery('#tieuchiVote').fadeOut("def", function(){
		jQuery('.userVoteReport').fadeIn("def");
	});
}

function HideTextLogin(ctr)
{ 
   if (ctr.id == "username")
    if(jQuery('#username').attr('value')=="Username")
        jQuery('#username').attr('value','');
   if (ctr.id == "password")
    if(jQuery('#password').attr('value')=="Password")
        jQuery('#password').attr('value','');
   if (ctr.id == "searchword")
    if(jQuery('#searchword').attr('value')=="Nhập từ tìm kiếm")
        jQuery('#searchword').attr('value','');
}
function ShowTextLogin(ctr)
{
    if (ctr.id == "username")
     if(jQuery('#username').attr('value')=="")
        jQuery('#username').attr('value','Username');
   if (ctr.id == "password")
    if(jQuery('#password').attr('value')=="")
        jQuery('#password').attr('value','Password');
   if (ctr.id == "searchword")
    if(jQuery('#searchword').attr('value')=="")
        jQuery('#searchword').attr('value','Nhập từ tìm kiếm');
}
function Search_process()
{
        var key = jQuery('#searchword').attr('value');
        if(key == "Nhập từ tìm kiếm" )
        {
            alert("Bạn chưa nhập từ khóa!");
            return false;
        }
        else
        {
            key = removeHTMLTags(key);
            window.location='/SearchResult.aspx?key='+key;
            return false;
        }
        
}

function removeHTMLTags(str){
 	
 		var strInputCode = str;
 		
 	 	strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
 		 	return (p1 == "lt")? "<" : ">";
 		});
 		var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");
 		while(strTagStrippedText.indexOf('"')!=-1)
 		    strTagStrippedText = strTagStrippedText.replace('"','');
 		while(strTagStrippedText.indexOf('\'')!=-1)    
 		strTagStrippedText = strTagStrippedText.replace('\'','');
 		//document.getElementById(ctrID).value = strTagStrippedText;
 		return strTagStrippedText;
 		//alert("Output text:\n" + strTagStrippedText);
 		
}
function login_process() {


    var u = jQuery('#username').attr('value');
    var p = jQuery('#password').attr('value');
    if(u=="Username" && p=="Password")
    {
        alert("Bạn phải nhập Username và mật khẩu");
        return;
    }
    else
    {
        jQuery.get("/User_Ultility.aspx?type=login&u="+u+"&p="+p, function(response) {
          
           if(response.indexOf("OKI$")!=-1)
           {
                //alert(response);
                var UserName = response.split('$')[1];
                var member_content = '<div id="box_text"><div class="textMember">Xin chào bạn '+UserName+'</div><div class="btnLogin"><a id="text" href="javascript:logout();">Thoát</a></div><div class="clear"></div></div>';
	            jQuery('#Visitor').css("display", "none");
	            jQuery('#Member').css('display', 'block');
	            jQuery('#Member').html(member_content);  
	            window.location.reload(true);
           }
           else
           {
                alert("Sai tên đăng nhập hoặc mật khẩu! Bạn vui lòng đăng nhập lại!");
           }
        });
    }
    
   
}
function showTabSearchResult(tabid) {
	if(jQuery('#'+tabid).attr("class") != 'activated')
	{
		for(var i=1; i<=4; i++) {
			switch(i) {
				case 1:
					jQuery('#tab_' + i).attr("class", "tab_votenhieu bold");
					LoadContentTab('1','1');
					break;
				case 2:
					jQuery('#tab_' + i).attr("class", "tab_diadiem bold");
					LoadContentTab('2','1');
					break;
				case 3:
					jQuery('#tab_' + i).attr("class", "tab_monngon bold");
					LoadContentTab('3','1');
					break;
				case 4:
					jQuery('#tab_' + i).attr("class", "tab_phucvu bold");
					LoadContentTab('4','1');
					break;
			}
		}
		jQuery("#"+tabid).attr("class",jQuery("#"+tabid).attr("class")+" activated");
		jQuery('#search_result_content').fadeOut("def", function() {
			jQuery('#search_result_content').fadeIn("def");
		});
	}
	return false;
}
function LoadContentTab(type,page)
{
    AjaxRequestURL('search_result_content',"/QuanXa_Tab.aspx?type="+type+"&page="+page);
    return false;
}

function LoadListBanDocViet(page)
{
    AjaxRequestURL('divBanDocChiaSe',"/ListBanDocViet.aspx?cat="+112+"&page="+page);
    return false;
}
function LoadListTVShow(page)
{
    AjaxRequestURL('divTVShow',"/TVShow_Paged.aspx?cat="+113+"&page="+page);
    return false;
}

function logout() {
	jQuery('#Visitor').css("display", "block");
	jQuery('#Member').css('display', 'none');
}

function CheckStatusUser(UserName)
{
    //alert(UserName);
    if(UserName!=null && UserName != "")
    {
            var member_content = '<div id="box_text"><div class="textMember">Xin chào '+UserName+'</div><div class="btnLogin"><a id="text" href="javascript:logout();">Thoát</a></div><div class="clear"></div></div>';
	        jQuery('#Visitor').css("display", "none");
	        jQuery('#Member').css('display', 'block');
	        jQuery('#Member').html(member_content); 
    }
}

function AjaxRequestURLNew(url) {

    var xmlHttp;
    try {
        if (!document.all) {
            xmlHttp = new XMLHttpRequest();
        }
        else {
            try {
                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch (e) {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
    }
    catch (e) {
        alert("Your browser does not support AJAX!");
        return false;
    };
    xmlHttp.onreadystatechange = function() {
        if (xmlHttp.readyState == 4) {
            alert(xmlHttp.responseText);
        }
    };
    xmlHttp.open("GET", url, true); xmlHttp.send(null);
}


function replyComment(boxid,idComment,pIDComment,userReply) {

	if (jQuery(boxid + ' #boxCommentReply').attr("class") != "boxActive") {
		jQuery(boxid + ' #boxCommentReply').attr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {											   
			jQuery(boxid + ' #boxCommentReply').fadeIn("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left bottom");
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					//createScrollBar ('#boxCommentHay #news_detail_commentList', 300);
					
				});
			});
		});
	} else {
		jQuery(boxid + ' #boxCommentReply').removeAttr("class", "boxActive");
		jQuery(boxid + ' .btnReply').fadeOut("fast", function () {
			jQuery(boxid + ' #boxCommentReply').fadeOut("def", function() {
				jQuery(boxid + ' .btnReply').css("background-position", "left top");														
				jQuery(boxid + ' .btnReply').fadeIn("fast", function () {
					//createScrollBar ('#boxCommentHay #news_detail_commentList', 300);
				});
			});
		});	
	}
}

function Get_Cookie(name) 
{
    var start = document.cookie.indexOf( name + "=" );
    var len = start + name.length + 1;
    if ( ( !start ) &&
    ( name != document.cookie.substring( 0, name.length ) ) )
    {
    return null;
    }
    if ( start == -1 ) return null;
    var end = document.cookie.indexOf( ";", len );
    if ( end == -1 ) end = document.cookie.length;
    return unescape( document.cookie.substring( len, end ) );
}

function Set_Cookie( name, value, expires)
{
    var today = new Date();
    today.setTime( today.getTime() );
    if ( expires )
    {
        expires = expires * 1000;
    }
    var expires_date = new Date( today.getTime() + (expires) );
    document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) ;
}
 function get_radio_value (radio_array)
    {
        var i;
        for (i = 0; i < radio_array.length; i++)
        {
            if (radio_array[i].checked) 
            {
                return radio_array[i].value;
            }
        }
        return null;
    }
    

function AjaxRequestURL(div,url){var obj = document.getElementById(div);if (obj){obj.innerHTML = "<img src='/images/loading.gif'/>Đang tải dữ liệu..."}var xmlHttp;try{if (!document.all){xmlHttp=new XMLHttpRequest()}else{try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}}}catch (e){alert("Your browser does not support AJAX!");return false};xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){if (obj) obj.innerHTML =xmlHttp.responseText}};xmlHttp.open("GET",url,true);xmlHttp.send(null)}

function writeBoxReplyComment(userReply){
var strVar="";
strVar+='    <div style="font-size: 14px;display: none; font-family: Arial; font-weight: bold; margin-top: 15px;overflow:hidden;text-align:center" id="tblMessageReply">';
strVar+='    "Bạn đã gửi bình luận thành công"<br \/><a href="" onclick="return ClickHereReply();">Clik vào đây để tiếp tục bình luận<\/a>';
strVar+='    <\/div>';
strVar += " <table id=\"tblCommentReply\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
strVar += "                                                      <tbody>";
strVar += "                                                          <tr>";
strVar += "                                                              <td width=\"20%\">Tên của bạn:<\/td>";
strVar += "                                                              <td>";
strVar += "                                                                  <div style=\"border:1px solid #999999; width: 70%; height: 20px; padding-left: 3px; padding-top: 3px;\" class=\"divInline\">";
strVar += "                                                                      <input id=\"txtNameReply\" type=\"text\" \/>";
strVar += "                                                                  <\/div>";
strVar += "                                                                  <span class=\"redText bold divInline\">*<\/span>";
strVar += "                                                                  <div class=\"clear\"><\/div>";
strVar += "                                                              <\/td>";
strVar += "                                                          <\/tr>";
strVar += "                                                          <tr>";
strVar += "                                                              <td width=\"20%\">Email:<\/td>";
strVar += "                                                              <td>";
strVar += "                                                                  <div style=\"border:1px solid #999999; width: 70%; height: 20px; padding-left: 3px; padding-top: 3px;\" class=\"divInline\">";
strVar += "                                                                      <input id=\"txtMailReply\" type=\"text\" \/>";
strVar += "                                                                  <\/div>";
strVar += "                                                                  <span class=\"redText bold divInline\">*<\/span>";
strVar += "                                                                  <div class=\"clear\"><\/div>";
strVar += "                                                              <\/td>";
strVar += "                                                          <\/tr>";
strVar += "                                                          <tr>";
strVar += "                                                              <td width=\"20%\">Nội dung:<\/td>";
strVar += "                                                              <td>";
strVar += "                                                                  <div style=\"border:1px solid #999999; padding: 3px;\">";
strVar += "                                                                      <textarea id=\"txtContentReply\" onkeyup=\"telexingVietUC(this,event);\">";
strVar+='@'+userReply+': ';
strVar += " <\/textarea>";
strVar += "                                                                  <\/div>";
strVar += "                                                              <\/td>";
strVar += "                                                          <\/tr>";
strVar += "                                                      <\/tbody>";
strVar += "                                                  <\/table>";
strVar += "                                                  <div class=\"divInline\">";
strVar += "                                                      <div class=\"divInline\" style=\"padding-right: 10px;\">";
strVar += "                                                          <input id=\"rTV\" type=\"radio\" checked=\"CHECKED\" title=\"Telex\" onfocus=\"setTypingMode(1);\" name=\"TV\"><span class=\"redText bold\" style=\"margin-left: 3px;\">Telex<\/span><\/input>";
strVar += "                                                      <\/div>";
strVar += "                                                      <div class=\"divInline\" style=\"padding-right: 10px;\">";
strVar += "                                                          <input id=\"Radio2\" type=\"radio\" title=\"VNI\" onfocus=\"setTypingMode(2);\" name=\"TV\" ><span class=\"redText bold\" style=\"margin-left: 3px;\">VNI<\/span><\/input>";
strVar += "                                                      <\/div>";
strVar += "                                                      <div class=\"divInline\" style=\"padding-right: 10px;\">";
strVar += "                                                          <input id=\"Radio1\" type=\"radio\" title=\"Name\" onfocus=\"setTypingMode(0);\" name=\"TV\" ><span class=\"redText bold\" style=\"margin-left: 3px;\">None<\/span><\/input>";
strVar += "                                                      <\/div>";
strVar += "                                                      <div class=\"clear\"><\/div>";
strVar += "                                                  <\/div>";
strVar += "                                                  <div style=\"display: inline; float: right\">";
strVar += "                                                      <a href=\"#\"><img onclick=\"return ValidateSendCommentReply();\" src=\"\/images\/boxhoidap_send.jpg\"\/><\/a>";
strVar += "                                                  <\/div>";
strVar += "                                                  <div class=\"clear\"><\/div>";
return strVar;
}

if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;


function ShowVideo(videoURL)
{     

    var strVar="";
    strVar += "<object id=\"ob2\" codebase=\"http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,0,0\"";
    strVar += "    classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"550\" align=\"middle\"";
    strVar += "    height=\"410\">    ";
    strVar += "    <param name=\"flashvars\" value=\"file=\/images\/flash\/"+ videoURL +"\">";
    strVar += "    <param name=\"Movie\" value=\"\/images\/videoplayer\/player.swf\">";
    strVar += "    <param name=\"Src\" value=\"\/images\/videoplayer\/player.swf\">";
    strVar += "    <param name=\"WMode\" value=\"Transparent\">   ";
    strVar += "    <param name=\"AllowScriptAccess\" value=\"always\">  ";
    strVar += "    <embed src=\"\/images\/videoplayer\/player.swf\" flashvars=\"file=\/images\/flash\/"+ videoURL +"\" quality='high' width=\"550\" height=\"410\"\/>";
    strVar += "<\/object>";


    document.getElementById('tvshow_tv').innerHTML = strVar;   
    return false;  
}

function ShowVideo_1(videoURL,ID)
{     

    document.getElementById('tvshow_tv').innerHTML = videoURL;  
   
    LoadComment(ID,''); 
    ChangeNews_ID(ID);
    return false;  
}