﻿listphotho = '/images/02/ntnshow.jpg,/images/15/kn05.jpg,/images/02/nhacthohkp.jpg,' +
'/images/02/nhacthomd.jpg,/images/02/nhacthonlt.jpg,/images/02/nhacthopbt.jpg,' +
'/images/02/nhacthoptcv.jpg,/img/minhchau.jpg,/images/02/nhacthonh02.jpg'; 

/*
listthicanhacsi-big = '/images/17/thisiminhhanhsmall.jpg,/images/11/CaSi-MinhXuan.jpg,/images/11/CaSi-TrucLy.jpg,' +
'/images/17/md02.jpg,/images/11/casimynuongsmall.jpg,/images/16/cdksmall02.jpg,/images/17/LaTrung02.jpg,' +
'/img/BichThienAoDo.jpg,/images/02/DinhTieuLang.jpg,/images/11/phamchauloansmall.jpg,/images/17/ptasmall.jpg,' +
'/images/11/CaSianhnguyen.jpg,/images/11/CaSiNhatHuy.jpg,/images/11/CaSiThanhNguyen.jpg,' +
'/images/02/nhacthonh02.jpg,/images/09/thd2009.jpg,/img/ngocnhi.jpg,/images/02/nhacthohkp.jpg,' +
'/images/11/Casi-KimKhanh.jpg,/images/11/CaSi-ThaiHoa.jpg,/images/11/CaSi-DaoNguyen.jpg,' +
'/images/11/NSkienthanh.jpg,/images/11/casimyphuongsmall.jpg,/images/11/hoai-huong00.jpg,/images/11/lenhungoc03.jpg,/images/15/kn01.jpg,' +
'/images/11/minhduong01.jpg,/image/pvctt01.jpg,/images/11/TranThiLinhChi01.jpg,' +
'/images/15/nguyensycam01.jpg,/images/11/CaSiHoangAnh.jpg,/img/tranthuhuong.jpg,/img/phanvan.jpg'; 
*/
listthicanhacsi = '/images/21/thisiminhhanhsmall.jpg,' +
'/images/21/trinhthuymy.jpg,' +
'/images/23/tmh00.jpg,' +
'/images/21/thuvan.jpg,' +
'/images/21/CaSiThuThanh.jpg,' +
'/images/22/ttnsmall.jpg,' +
'/images/21/LaTrung02.jpg,' +
'/images/21/nhacthohkp.jpg,' +
'/images/21/CaSianhnguyen.jpg,' +
'/images/21/CaSiBachLan.jpg,' +
'/images/21/CaSi-MinhXuan.jpg,' +
'/images/21/CaSi-TrucLy.jpg,' +
'/images/21/CaSiVietVuong.jpg,' +
'/images/21/md02.jpg,' +
'/images/21/casimynuongsmall.jpg,' +
'/images/21/cdksmall02.jpg,' +
'/images/21/BichThienAoDo.jpg,' +
'/images/21/DinhTieuLang.jpg,' +
'/images/21/phamchauloansmall.jpg,' +
'/images/21/ptasmall.jpg,' +
'/images/21/CaSiNhatHuy.jpg,' +
'/images/21/CaSiThanhNguyen.jpg,' +
'/images/21/nhacthonh02.jpg,' +
'/images/21/thd2009.jpg,' +
'/images/21/ngocnhi.jpg,' +
'/images/21/Casi-KimKhanh.jpg,' +
'/images/21/CaSi-ThaiHoa.jpg,' +
'/images/21/CaSi-DaoNguyen.jpg,' +
'/images/21/NSkienthanh.jpg,' +
'/images/21/casimyphuongsmall.jpg,' +
'/images/21/hoai-huong00.jpg,' +
'/images/21/lenhungoc03.jpg,' +
'/images/21/kn01.jpg,' +
'/images/21/minhduong01.jpg,' +
'/images/21/pvctt01.jpg,' +
'/images/21/TranThiLinhChi01.jpg,' +
'/images/21/nguyensycam01.jpg,' +
'/images/21/CaSiHoangAnh.jpg,' +
'/images/21/tranthuhuong.jpg,' +
'/images/21/phanvan.jpg,' + 
'/images/21/thvnsmall.jpg,' +
'/images/21/nguyenngoctuyet.jpg,' +
'/images/21/ntnshow.jpg,' +
'/images/21/ptcv.jpg,' +
'/images/21/nguyenlamthang.jpg';


listtacpham = '/img/tgqhsmall.jpg,/img/lltqsmall.jpg,/img/tqmsmall.jpg,/img/mxsmall.jpg,/img/ttknsmall.jpg,/img/cbhdsmall.jpg,' +
'/img/bbpdsmall.jpg,/img/krtsmall.jpg,/img/hydktcctsmall.jpg,/img/sksmall.jpg,/img/ntvsmall.jpg,/img/tksmall.jpg,/img/dtsmall.jpg,/img/mnsmall.jpg,/img/adpnsmall.jpg,' + 
'/img/dntsmall.jpg,/img/bsmsmall.jpg,/img/svtksmall.jpg,/img/tdcmsmall.jpg,/img/tcgsmall.jpg,/img/9bhdsmall.jpg,/img/trsmall.jpg,/img/tcvnrsmall.jpg,' + 
'/img/tegnsmall.jpg,/img/tycsmall.jpg,/img/ttlsmall.jpg,/img/cccmsmall.jpg,/img/nmdytsmall.jpg,' + 
'/img/cmnsmall.jpg,' + 
'/img/khoanhkhacsmall.jpg,/img/ctkdksmall.jpg,/img/gqsmall.jpg,/img/snbsmall.jpg,' + 
'/img/tinhyeukhongdaysmall.jpg,/img/TroVePhoXuaSmall.jpg,/img/TinhEmXuBuoiSmall.jpg,' +
'/img/nhapsmall.jpg,/images/13/nndtgsmall.jpg,/images/14/vtcvsmall.jpg,/img/ylcsmall.jpg,' +
'/img/TruongGiangHaiGiongNuocSmall.jpg,/images/01/maccan.jpg,/img/DeMinhMaiYeuNhau.jpg,' +
'/img/NoiLaiVongTaySmall.jpg,/img/tpclsmall.jpg,/img/BongRauMuongSmall.jpg,/images/13/ottgsmall.jpg,' +
'/img/diepngutinhsmall.jpg,/img/duoitrangsmall.jpg,/img/TocRoi.jpg,/img/blmhsmall.jpg,' +
'/img/tktgsmall.jpg,/img/ctqinternetsmall.jpg,/img/mmtdsmall.jpg,/img/SangMua.jpg,' +
'/img/NhuNhungConMua.jpg,/img/LaTro.jpg,/img/nhomluasmall.jpg,/img/GiotDayGiotVoi.jpg,' + 
'/img/tutuyettinhthismall.jpg,/img/thoigiannoinhosmall.jpg,/images/16/tycsmall.jpg'; 


listmember = '/img/trinhthuymy.jpg,/img/huynhthuvan.jpg,/img/tranmaihuong.jpg,/img/minhtuan.jpg,/img/nguyenthikimlien.jpg,/img/nguyenhay.jpg,/img/nguyenminhthanh.jpg,/img/thaithanhnguyen.jpg,' +
'/images/17/thisiminhhanhsmall.jpg,/images/11/TranThiLinhChi01.jpg,/images/15/nguyensycam01.jpg,' +
'/images/09/thd2009.jpg,/images/02/DinhTieuLang.jpg,/images/02/nhacthonh02.jpg,/image/hoaihuong04.jpg,/img/lamhoang.jpg,' +
'/images/11/NSkienthanh.jpg,/images/17/pta1.jpg,/images/02/ntnshow.jpg,/images/15/kn01.jpg,/images/02/nhacthohkp.jpg,' +
'/img/leducthong.jpg,/img/lequangdiep.jpg,/images/02/nhacthomd.jpg,/images/02/nhacthopbt.jpg,' +
'/images/11/nvtsmall.jpg,/img/hoacau.jpg,/img/hanlinhsan.jpg,/img/ngocnhi.jpg,/img/nguyensugiao.jpg,' +
'/image/nguyenngoctuyet.jpg,/img/khanhphuong.jpg,/img/lebaduy.jpg,/img/bachthuy.jpg,' +
'/images/11/pcl-2008.jpg,/img/huynhngocnga.jpg,/image/nguyenlamthang01.jpg,/img/huynhbichvan.jpg,' + 
'/img/phamphusa.jpg,/img/nguyenkimson.jpg,/img/vungocroan.jpg,/img/ltt.jpg,/img/truongphap.jpg,' + 
'/images/17/md04.jpg,/images/21/ptcv.jpg,/img/minhchau.jpg,/images/17/LaTrung02.jpg,'   +
'/images/11/lenhungoc03.jpg,/img/tranhoangvunguyen01.jpg,/image/pvctt01.jpg,/img/phanvan.jpg'; 


listnhacnnyvn  = '/images/02/CaSiNgoThanhVan.jpg,/images/02/CaSiNgocThuy.jpg,/images/02/CaSiNhuLoan.jpg,' +
'/images/02/CaSiBachLan.jpg,/images/02/CaSiMyTam.jpg,/images/02/CaSiThuyDuong.jpg,/images/02/CaSiTranThuHa.jpg,' +
'/images/02/CaSiNgocHue.jpg,/images/02/CaSiThuPhuong.jpg,/images/02/CaSiMyLinh.jpg,' +
'/images/02/CaSiLoanChau.jpg,/images/02/CaSiHoNgocHa.jpg,/images/02/CaSiYLan.jpg,' +
'/images/02/CaSiKhanhLy.jpg,/images/02/CaSiLamThuyVan.jpg,' +
'/images/02/CaSiThanhHa.jpg,/images/02/CaSiKhanhHa.jpg,/images/02/CaSiThienKim.jpg,' +
'/images/02/CaSiNgocKhue.jpg,/images/02/CaSiTuQuyen.jpg,/images/02/CaSiNgoThanhVan.jpg,' +
'/images/02/CaSiLuuBich.jpg,/images/02/CaSiThanhThao.jpg,/images/02/CaSiThanhLam.jpg,' +
'/images/02/CaSiBaoYen.jpg,/images/02/CaSiPhiKhanh.jpg,/images/02/CaSiMinhThu.jpg,' +
'/images/02/CaSiDiemLien.jpg,/images/02/CaSiThanhVy.jpg,/images/02/CaSiHongNhung.jpg,' +
'/images/02/CaSiCamLy.jpg,/images/02/CaSiPhuongThanh.jpg'; 



thd_li = '/thuyhuongduong/img/thd27.jpg,/thuyhuongduong/img/thd26.jpg,/thuyhuongduong/img/thd19.jpg,/thuyhuongduong/img/thd20.jpg,/thuyhuongduong/img/thd23.jpg,/thuyhuongduong/img/thd24.jpg,/thuyhuongduong/img/thd22.jpg,' +
'/thuyhuongduong/img/thd18.jpg,/thuyhuongduong/img/thd01.jpg,/thuyhuongduong/img/thd02.jpg,/thuyhuongduong/img/thd03.jpg,/thuyhuongduong/img/thd04.jpg,/thuyhuongduong/img/thd05.jpg,' +
'/thuyhuongduong/img/thd06.jpg,/thuyhuongduong/img/thd07.jpg,/thuyhuongduong/img/thd08.jpg,/thuyhuongduong/img/thd09.jpg,/thuyhuongduong/img/thd10.jpg,' +
'/thuyhuongduong/img/thd11.jpg,/thuyhuongduong/img/thd12.jpg,/thuyhuongduong/img/thd13.jpg,/thuyhuongduong/img/thd14.jpg,/thuyhuongduong/img/thd15.jpg,/thuyhuongduong/img/thd16.jpg,' +
'/thuyhuongduong/img/thd17.jpg,/thuyhuongduong/img/thd00.jpg,/thuyhuongduong/img/thd21.jpg';

hh_li = '/hoaihuong/img/hoaart19.jpg,/hoaihuong/img/hoaart20.jpg,' +
'/hoaihuong/img/hoaart18.jpg,/hoaihuong/img/hoaart01.jpg,/hoaihuong/img/hoaart02.jpg,/hoaihuong/img/hoaart03.jpg,/hoaihuong/img/hoaart04.jpg,/hoaihuong/img/hoaart05.jpg,' +
'/hoaihuong/img/hoaart06.jpg,/hoaihuong/img/hoaart07.jpg,/hoaihuong/img/hoaart08.jpg,/hoaihuong/img/hoaart09.jpg,/hoaihuong/img/hoaart10.jpg,' +
'/hoaihuong/img/hoaart11.jpg,/hoaihuong/img/hoaart12.jpg,/hoaihuong/img/hoaart13.jpg,/hoaihuong/img/hoaart14.jpg,/hoaihuong/img/hoaart15.jpg,/hoaihuong/img/hoaart16.jpg,' +
'/hoaihuong/img/hoaart17.jpg,/hoaihuong/img/hoaart21.jpg';

md_li = '/minhduong/img/md18.jpg,/minhduong/img/md01.jpg,/minhduong/img/md02.jpg,/minhduong/img/md03.jpg,/minhduong/img/md04.jpg,/minhduong/img/md05.jpg,' +
'/minhduong/img/md06.jpg,/minhduong/img/md07.jpg,/minhduong/img/md08.jpg,/minhduong/img/md09.jpg,/minhduong/img/md10.jpg,' +
'/minhduong/img/md11.jpg,/minhduong/img/md12.jpg,/minhduong/img/md13.jpg,/minhduong/img/md14.jpg,/minhduong/img/md15.jpg,/minhduong/img/md16.jpg,' +
'/minhduong/img/md17.jpg,/minhduong/img/md00.jpg'; 

lnn_li = '/images/11/lnn_01.jpg,/images/11/lnn_02.jpg,/images/11/lnn_03.jpg,/images/11/lnn_04.jpg,/images/11/lnn_05.jpg,/images/11/lnn_06.jpg,' +
'/images/11/lnn_07.jpg,/images/11/lnn_08.jpg,/images/11/lnn_09.jpg,/images/11/lnn_10.jpg,/images/11/lnn_11.jpg,' +
'/images/11/lnn_12.jpg,/images/11/lnn_13.jpg'; 

pbt_li = '/images/13/pbtsmall01.jpg,/images/13/pbtsmall02.jpg,/images/13/pbtsmall03.jpg,/images/13/pbtsmall04.jpg,/images/13/pbtsmall05.jpg,/images/13/pbtsmall06.jpg,' +
'/images/13/pbtsmall07.jpg'; 

th_li = '/images/17/th01.jpg,/images/17/th02.jpg,/images/17/th03.jpg,/images/17/th04.jpg,/images/17/th05.jpg,' +
'/images/17/th06.jpg'; 

mdan_li = '/images/18/mdsmall01.jpg,/images/18/mdsmall02.jpg,/images/18/mdsmall03.jpg,/images/18/mdsmall04.jpg,' +
'/images/18/mdsmall05.jpg,/images/18/mdsmall06.jpg,/images/18/mdsmall07.jpg,/images/18/mdsmall08.jpg,' +
'/images/18/mdsmall09.jpg'; 
mh_li = '/images/19/mhsmall01.jpg,/images/19/mhsmall02.jpg,/images/19/mhsmall03.jpg,/images/19/mhsmall04.jpg,' +
'/images/19/mhsmall05.jpg,/images/19/mhsmall06.jpg,/images/19/mhsmall07.jpg,/images/19/mhsmall08.jpg'; 
thvn_li = '/images/19/thvnsmall01.jpg,/images/19/thvnsmall02.jpg,/images/19/thvnsmall03.jpg,/images/19/thvnsmall04.jpg,' +
'/images/19/thvnsmall05.jpg,/images/19/thvnsmall06.jpg,/images/19/thvnsmall07.jpg,/images/19/thvnsmall08.jpg'; 
kn_li = '/images/19/knsmall01.jpg,/images/19/knsmall02.jpg,/images/19/knsmall03.jpg,/images/19/knsmall04.jpg,' +
'/images/19/knsmall05.jpg,/images/19/knsmall07.jpg,/images/19/knsmall08.jpg,/images/19/knsmall09.jpg,/images/19/knsmall10.jpg,' +
'/images/19/knsmall11.jpg,/images/19/knsmall12.jpg,/images/19/knsmall13.jpg,/images/19/knsmall14.jpg,/images/19/knsmall15.jpg'; 
dtl_li = '/images/19/dtlsmall01.jpg,/images/19/dtlsmall02.jpg,/images/19/dtlsmall03.jpg,/images/19/dtlsmall04.jpg,' +
'/images/19/dtlsmall05.jpg,/images/19/dtlsmall06.jpg,/images/19/dtlsmall07.jpg,/images/19/dtlsmall08.jpg,' + 
'/images/19/dtlsmall09.jpg,/images/19/dtlsmall10.jpg,/images/19/dtlsmall11.jpg,/images/19/dtlsmall12.jpg'; 
pta_li = '/images/21/pta01.jpg,/images/21/pta02.jpg,/images/21/pta03.jpg,/images/21/pta04.jpg,' +
'/images/21/pta05.jpg,/images/21/pta06.jpg'; 
nmt_li = '/images/22/ptanmt01.jpg,/images/22/ptanmt02.jpg,/images/22/ptanmt03.jpg,/images/22/ptanmt04.jpg,' +
'/images/22/ptanmt015.jpg,/images/22/ptanmt06.jpg,/images/22/ptanmt07.jpg,/images/22/ptanmt08.jpg,/images/22/ptanmt00.jpg,/images/22/ptanmt10.jpg'; 


function getlistf (list) {

    var aList= list.split(",")
    if (aList == null) return  '';
    var maxindex = aList.length;
    var now = new Date();
    var index = (now.getTime()+now.getDate()+now.getMonth()+now.getYear()) % (maxindex);
    return aList[index];
   
}
function getlist (list,firstitem) {

    var aList= list.split(",")
    if (aList == null) return  '';
    var maxindex = aList.length;
    var maxcaso = 4;
    var now = new Date();
    var index = (now.getTime()+now.getDate()+now.getMonth()+now.getYear()) % (maxindex);
    var caso = (now.getTime()+now.getDate()+now.getMonth()+now.getYear()) % (maxcaso);
    var listNew = '';

    var j = index-1;
    var i = index;
    switch (caso) {
        case 0:
            var j = index-1;
            var i = index;
            for( ; j >= 0 ; j--) {	
                listNew = listNew + aList[j] + ',';    
            }
            for( ; i < aList.length ; i++) {	
                if (i + 1 == aList.length) listNew = listNew + aList[i];
                else listNew = listNew + aList[i] + ',';
            }
        break;
        case 1:
            var j = index;
            var i = index+1;
            for( ; i < aList.length ; i++) {	
                listNew = listNew + aList[i] + ',';
            }  
            for( ; j >= 0 ; j--) {	
                if (j == 0)   listNew = listNew + aList[j]; 
                else listNew = listNew + aList[j] + ',';    
            }
        break;
        case 2:
            for(var j = aList.length - 1; j >= 0 ; j--) {	
                if (j == 0)   listNew = listNew + aList[j]; 
                else listNew = listNew + aList[j] + ',';    
            }
        break;
        case 3:
            for(var i = 0; i < aList.length ; i++) {	
                if (i + 1 == aList.length) listNew = listNew + aList[i];
                else listNew = listNew + aList[i] + ',';
            }

        break;
        defaut:
        break;
     }
   
    
    listNew = listNew + ',' +  firstitem;
    //alert(listNew);
    return listNew;
}


var imgdefault = getlistf(listmember);
function writewmp (p1,p2,p3,p4,p5,p6) {
    
    var buf = '';
    var pp1 = p1 + 5;
    var pp2 = p2 + 5;
   
    var now = new Date();
    var maxdirection = 10;
    var strdirection="right";
    var msgdirection="left";
    var msgcolor="Red";
    var strmsgdirection=p4;
    if (GetBrowserType () != 1) strmsgdirection = "";
    var urlsfmusic = '../img/sf3color.jpg';
    if (p6 != '') urlsfmusic = p6;
    var direction = (now.getTime()+now.getDate()+now.getMonth()+now.getYear()) % (maxdirection);
    switch (direction)	{
        case 0:
        strdirection="left";
        msgdirection="left";
        msgcolor="DarkBlue";
        break;
        case 1:
        strdirection="right";
        msgdirection="left";
        msgcolor="maroon";
        break;
        case 2:
        strdirection="left";
        msgdirection="left";
        msgcolor="red";
        break;
        case 3:
        strdirection="right";
        msgdirection="left";
        msgcolor="blue";
        break;
        case 4:
        strdirection="right";
        msgdirection="left";
        msgcolor="Indigo";
        case 5:
        strdirection="left";
        msgdirection="left";
        msgcolor="Crimson";
        break;
        case 6:
        strdirection="right";
        msgdirection="left";
        msgcolor="MidnightBlue";
        break;
        case 7:
        strdirection="left";
        msgdirection="left";
        msgcolor="DarkMagenta";
        break;
        case 8:
        strdirection="right";
        msgdirection="left";
        msgcolor="SaddleBrown";
        break;
        case 9:
        strdirection="right";
        msgdirection="left";
        msgcolor="OrangeRed";
        break;
        default:
    break;
    }
    
    document.write('<br>');

    
    switch (p3)
	{
	   
		case "" :
		    //if (GetBrowserType () == 1 || GetBrowserType () == 0)  {
		    if (GetBrowserType () == 1)  {
		        document.write('<p align="center">');
		        
		        if (GetBrowserType () == 1)  {
                    //document.write('<table  border="2"  background="../img/sfmusic.jpg"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
                    document.write('<table  border="2"  background="' + urlsfmusic + '"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
                    document.write('<tr>');
                    document.write('<td  align="center" style="text-align: center;">'); 
                }
	            buf = '<OBJECT id="wmp" name="wmp"  height=' + p2 + ' ' + 'width=' + p1 + ' ' + 'classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">';
                
                document.write('<PARAM NAME="ShowControls" VALUE="-1">');
                document.write('<PARAM NAME="ShowDisplay" VALUE="0">');
                document.write('<PARAM NAME="ShowStatusBar" VALUE="-1">');
                document.write('<PARAM NAME="AutoSize" VALUE="0">');
                document.write('<param name="AudioStream" value="-1">');
                document.write('<param name="AutoStart" value="-1">');
                document.write('<param name="AnimationAtStart" value="-1">');
                document.write('<param name="AllowScan" value="-1">');
                document.write('<param name="AllowChangeDisplaySize" value="-1">');
                document.write('<param name="AutoRewind" value="-1">');
                document.write('<param name="Balance" value="0">');
                document.write('<param name="BaseURL" value>');
                document.write('<param name="BufferingTime" value="5">');
                document.write('<param name="CaptioningID" value>');
                document.write('<param name="ClickToPlay" value="-1">');
                document.write('<param name="CursorType" value="0">');
                document.write('<param name="CurrentPosition" value="-1">');
                document.write('<param name="CurrentMarker" value="0">');
                document.write('<param name="DefaultFrame" value>');
                document.write('<param name="DisplayBackColor" value="0">');
                document.write('<param name="DisplayForeColor" value="16777215">'); 
                document.write('<param name="DisplayMode" value="0">');
                document.write('<param name="DisplaySize" value="4">');
                document.write('<param name="Enabled" value="-1">');
                document.write('<param name="EnablePositionControls" value="-1">');
                document.write('<param name="EnableFullScreenControls" value="0">');
                document.write('<param name="EnableTracker" value="-1">');
                document.write('<param name="InvokeURLs" value="-1">');
                document.write('<param name="Language" value="-1">');
                document.write('<param name="Mute" value="0">');
                document.write('<param name="PlayCount" value="0">');
                document.write('<param name="PreviewMode" value="0">');
                document.write('<param name="Rate" value="1">');
                document.write('<param name="SAMILang" value>');
                document.write('<param name="SAMIStyle" value>');
                document.write('<param name="SAMIFileName" value>');
                document.write('<param name="SelectionStart" value="-1">');
                document.write('<param name="SelectionEnd" value="-1">');
                document.write('<param name="SendOpenStateChangeEvents" value="-1">');
                document.write('<param name="SendWarningEvents" value="-1">');
                document.write('<param name="SendErrorEvents" value="-1">');
                document.write('<param name="SendKeyboardEvents" value="0">');
                document.write('<param name="SendMouseClickEvents" value="0">');
                document.write('<param name="SendMouseMoveEvents" value="0">');
                document.write('<param name="SendPlayStateChangeEvents" value="-1">');
                document.write('<param name="ShowCaptioning" value="0">');
                document.write('<param name="ShowAudioControls" value="-1">');
                document.write('<param name="ShowGotoBar" value="0">');
                document.write('<param name="ShowPositionControls" value="-1">');
                document.write('<param name="ShowTracker" value="-1">');
                document.write('<param name="TransparentAtStart" value="0">');
                document.write('<param name="VideoBorderWidth" value="0">');
                document.write('<param name="VideoBorderColor" value="0">');
                document.write('<param name="VideoBorder3D" value="0">');
                document.write('<param name="Volume" value="-1">');
                document.write('<param name="WindowlessVideo" value="0">');
                document.write('<param name="URL" value="' + imgdefault + '">');
                
                
                //document.write('<embed name="wmp"  type="application/x-mplayer2" autostart="false"  autoplay="false" width="400" height="280" ></embed>');
                //document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Mediaplayer/"SRC="../music/BaiCaDangDo.wma" name="wmp" AutoStart="true" HEIGHT="280" WIDTH="400" </embed> ');
                
                document.write(buf);
		        document.write('</OBJECT>');
		        
		        var src = imgdefault;
		        if (p5 != '') src = p5;
                playmediahere(src);
		    }
		    else {
                //document.write('<OBJECT id="wmp"  name="wmp"   classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="300" height="200"><param name="autostart" value="false" /><param name="src" value="http://p4.hostingprod.com/@vuontaongo.org/huongmetrongtho.wma" /><param name="url" value="http://p4.hostingprod.com/@vuontaongo.org/huongmetrongtho.wma" /><param name="width" value="300" /><param name="height" value="200" />');
	    	    //document.write('<embed  name="wmp"  type="application/x-mplayer2" autostart="false" src="http://p4.hostingprod.com/@vuontaongo.org/huongmetrongtho.wma" width="300" height="200"></embed>');
	    	    //document.write('</OBJECT>');
                
                //document.write('<object  id="wmp" name="wmp"  data="http://www.vnweblogs.com/flash/mp3player/mp3player.swf" type="application/x-shockwave-flash" width=p1 height="20" class="ltPlayer"><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="movie" value="http://www.vnweblogs.com/flash/mp3player/mp3player.swf" /><param name="FlashVars" value="&amp;file=http://cucvang.vnweblogs.com/gallery/2890/muimehuongtet12.mp3&amp;height=20&amp;width=p1" />');
                //document.write('</OBJECT>');
                
                //document.write('<embed src="http://www.nnyvn.com/music/BaiCaDangDo.wma" id="wmp" name="wmp"  type="application/x-mplayer2" autostart="true"  autoplay="true" width="400" height="280" ></embed>');
                //document.write('<embed src="" name="wmp"  type="application/x-mplayer2" autostart="false"  autoplay="false" width="400" height="280" ></embed>');

		    }
		    break;
		    
		     case "wmp" : // Window Media Player
		    if (GetBrowserType () == 1)  {
		        document.write('<p align="center">');
		        
		        if (GetBrowserType () == 1)  {
                    document.write('<table  background="../img/sf6.jpg"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
                    document.write('<tr>');
                    document.write('<td  align="center" style="text-align: center;">'); 
                }
	            buf = '<OBJECT id="wmp" name="wmp"  height=' + p2 + ' ' + 'width=' + p1 + ' ' + 'classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">';
                document.write('<param name="ShowStatusBar" value="-1">');
                document.write('<param name="ShowControls" value="-1">');
                document.write('<param name="Volume" value="100">');
                document.write('<param name="AutoSize" value="-1">');
                 

                document.write('<param name="AllowScan" value="-1">');
                document.write('<param name="AllowChangeDisplaySize" value="-1">');
                document.write('<param name="Enabled" value="-1">');
                //document.write('param name="EnableContextMenu" value="-1">');
                document.write('<param name="EnablePositionControls" value="-1">');
                document.write('<param name="EnableTracker" value="-1">');
                document.write('<param name="InvokeURLs" value="-1">');
                document.write('<param name="PlayCount" value="10">');
                document.write('<param name="Rate" value="1">');
                document.write('<param name="SelectionStart" value="-1">');
                document.write('<param name="SelectionEnd" value="-1">');
                document.write('<param name="WindowlessVideo" value="-1">');
                document.write('<param name="fullScreen" value="0">');
                
                document.write(buf);
		        document.write('</OBJECT>');
		        
		    }
		    else {

		    }
		    break;
	    case "swf": //Flash Player
            
            document.write('<p align="center">');
		        
	        if (GetBrowserType () == 1)  {
                document.write('<table  background="../img/sf6.jpg"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
                document.write('<tr>');
                document.write('<td  align="center" style="text-align: center;">'); 
            }
            
            document.write('<object id="FLVPlayer"  name="FLVPlayer"  align="middle" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
            document.write('<param name="movie" value="http://www.nnyvn.com/img/notnhac.gif" />');
            document.write('<param name="quality" value="high" />');
            document.write('<param name="scale" value="showall" />');
            document.write('<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=video/trongtranTSon2007&autoPlay=false&autoRewind=false" />');
            document.write('<embed src="http://www.nnyvn.com/img/notnhac.gif" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=video/trongtranTSon2007&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="342" height="291" name="wmp" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('</object>');
            
            
            
            break;
	    
	    case "swf_bantinonline":
	        
		    document.write('<div id="flvVNO"><img src="../image/vietnamonline.jpg" width="436" height="281"></div>');
            document.write('<script type="text/javascript" src="/js/swfobject.js"></script>');
            document.write('<script type="text/javascript">');
            document.write('var s1 = new SWFObject("http://vno.chinhphu.vn/vno/js/flvplayer.swf","mediaplayer","436","260","8");');
            document.write('s1.addParam("allowfullscreen","false");');
            document.write('s1.addVariable("width","436");');
            document.write('s1.addVariable("height","260");');
            document.write('s1.addVariable("file","http://vno.chinhphu.vn/vnomedia/flv/200807/1981847_1_VIETNAMONLINE1607.flv");');
            document.write('s1.addVariable("autostart","true");');
            document.write('s1.addVariable("repeat","false"); ');
            document.write('s1.addVariable("bufferlength",6);');
            document.write('s1.addVariable("image","../image/vietnamonline.jpg");');
            document.write('s1.write("flvVNO");');
            document.write('</script>');
		    break;
		    
        case "youtube":
            
            document.write('<p align="center">');
		        
	        if (GetBrowserType () == 1)  {
                document.write('<table  background="../img/sf6.jpg"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + pp1 + ' ' +  ';  height:'  + pp2 + ' '+ ';  border-collapse: collapse">');
                document.write('<tr>');
                document.write('<td  align="center" style="text-align: center;">'); 
            }
            
            document.write('<div class="wlWriterSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:4df5a2a3-dbf9-420a-8fed-9da8f0be893f" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">');
            document.write('<div>');
            document.write('<object id="youtube"  name="youtube"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  ');
            document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  width="480" height="392"> ');
            document.write('<param name="allowScriptAccess" value="sameDomain" /> ');
            document.write('<param name="allowFullScreen" value="true" /> ');
            document.write('<param name="movie" value="http://www.nnyvn.com/img/notnhac.gif" /> ');
            document.write('<param name="quality" value="high" /> ');
            document.write('<embed src="http://www.youtube.com/v/P-hZeLw829c&amp;autoplay=1" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"> ');
            document.write('</embed> ');
            document.write('</object>');
            document.write('</div>');
            document.write('</div>');
            
            
            //document.write('<div class="wlWriterSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:862c4468-0565-49ee-b1a8-976aee4008bc" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">');
            //document.write('<div id="d142f721-1898-4a6f-92d9-c552efd7c583" style="margin: 0px; padding: 0px; display: inline;">');
            //document.write('<div><a href="http://www.youtube.com/watch?v=P-hZeLw829c&amp;hl=fr" target="_new"><img src="http://qwankido.ilsoleallorizzonte.it/wp-content/uploads/2008/06/videoef56ae3bd62d.jpg" galleryimg="no" onload="var downlevelDiv = document.getElementById('d142f721-1898-4a6f-92d9-c552efd7c583'); downlevelDiv.innerHTML = &quot;&lt;div&gt;&lt;object width=\&quot;425\&quot; height=\&quot;355\&quot;&gt;&lt;param name=\&quot;movie\&quot; value=\&quot;http://www.youtube.com/v/P-hZeLw829c&amp;hl=fr\&quot;&gt;&lt;\/param&gt;&lt;param name=\&quot;wmode\&quot; value=\&quot;transparent\&quot;&gt;&lt;\/param&gt;&lt;embed src=\&quot;http://www.youtube.com/v/P-hZeLw829c&amp;hl=fr\&quot; type=\&quot;application/x-shockwave-flash\&quot; wmode=\&quot;transparent\&quot; width=\&quot;425\&quot; height=\&quot;355\&quot;&gt;&lt;\/embed&gt;&lt;\/object&gt;&lt;\/div&gt;&quot;;" alt=""></a></div>');
            //document.write('</div>');
            //document.write('</div>');

            break;
	    

	    case "realone":
            buf = '<OBJECT id="wmp" name="wmp"  height=' + p2 + ' ' + 'width=' + p1 + ' ' + 'classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">';
		    document.write("buf");
		    document.write('</OBJECT>');

		    break;
	    default: //wmp
		    break;
	}
   
    document.write('</td>');
    document.write('</tr>');
    
    if (strmsgdirection != '') {
        document.write('<tr>');
        document.write('<td>');
        document.write('<marquee  onmouseover=\'this.stop()\' onmouseout=\'this.start()\'   direction="'+msgdirection+'" scrollamount="2" scrolldelay="1" >');
        document.write('<TABLE  style="FONT-SIZE: 9pt;">');
        document.write('<TR><TD style="text-align:center; ">');
        document.write('<font style="font-size: 11px;font-Weight:bold;color: '+msgcolor+';">'+strmsgdirection+'</font>');    
        document.write('</TD></TR></TABLE></marquee>');
        document.write('</td>');
        document.write('</tr>');
    }
    
    document.write('<tr>');
    document.write('<td>');
    document.write('<marquee  onmouseover=\'this.stop()\' onmouseout=\'this.start()\'   direction="'+strdirection+'" scrollamount="1" scrolldelay="1" >');
    //document.write('<marquee  onmouseover=\'this.stop()\' onmouseout=\'this.start()\'   direction="right" scrollamount="1" scrolldelay="1" >');
    document.write('<TABLE  style="FONT-SIZE: 9pt;" borderColor=white border=0>');
    document.write('<TR><TD style="text-align:center; ">');
    <!-- document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/images/04/dancepippo.gif" />');    -->
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/images/04/dance02.gif" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/images/04/dance01.gif" />'); 
    document.write('<img height=40px border=0 src="http://www.nnyvn.com/img/banner01.gif" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/trinhthuymy.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/huynhthuvan.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/tranmaihuong.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/nguyenthikimlien.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/thaithanhnguyen.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/minhhanh.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/minhdan.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/tranthuhuong.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/tranthilinhchi.jpg" />');  
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/lenhungoc.jpg" />');  
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/phamtaman.jpg" />');  
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/dinhtieulang.jpg" />');  
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/minhduongsmall.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/tranhoangvunguyen02.jpg" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/thuyhuongduong.jpg" />');  
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/HanLinhSan.jpg" />');      
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/HBichVan.jpg" />');      
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/BichThien.jpg" />');           
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/bachthuy.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/hoacau.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/nguyenngoctuyet.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/ngoc_nhi.jpg" />');      
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/PhamChauLoan.jpg" />');           
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/phamthicucvang.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/ltt.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/minhchau.jpg" />');    
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/nguyenthanhngoc00.jpg" />');      
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/khangnhii.jpg" />');           
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/hakhanhphuong.jpg" />');   
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/nhuhoa00.jpg" />');       
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/huynhngocnga.jpg" />');      
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/anhmathh.jpg" />');    
    document.write('<img height=40px border=0 src="http://www.nnyvn.com/img/logonnyvn.jpg" />');
    document.write('<img height=40px border=0 src="http://www.nnyvn.com/img/logo.jpg" />');   
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/3guitarblack.jpg" />');
    //document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/notnhac1.gif" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/image/ElectricGuitar.gif" />');
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/img/jackson.gif" />');     
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/images/04/dance03.gif" />'); 
    document.write('<img width=40px height=40px border=0 src="http://www.nnyvn.com/images/04/babydance.gif" />');     
    document.write('</TD></TR></TABLE></marquee>');
    
    document.write('</td>');
    document.write('</tr>');
    document.write('</table>');
    document.write('</p>');
  
   
}

function writetv (p1,p2,p3,p4,p5,p6) {
          
          var pp1 = p1 + 20;
          var pp2 = p2 + 60;
          var pp = 150 + 50;
          var strdirection="right";
          var msgdirection="left";
          var msgcolor="Red";
          var maxtv = 10;
          
          //var now = new Date();
          //tvcolor = (now.getTime()+now.getDate()+now.getMonth()+now.getYear()) % (maxtv);
          tvcolor = Math.floor(Math.random()*maxtv);
          tvimg="/images/14/tv.gif";
          switch (tvcolor)	{
	        case 0:
	            tvimg="/images/14/tvblue.gif";break;
	        case 1:
	            tvimg="/images/14/tvgreen.gif";break;
	        case 2:
	            tvimg="/images/14/tvblack.gif";break;
	        case 3:
	            tvimg="/images/14/tvbrown.gif";break;
	        case 4:
	            tvimg="/images/14/tvgrey.gif";break;
	        case 5:
	            tvimg="/images/14/tvred.gif";break;
	        case 6:
	            tvimg="/images/14/tvgold.gif";break;
	        case 7:
	            tvimg="/images/14/tvrose.gif";break;
	        case 8:
	            tvimg="/images/14/tvpurple.gif";break;
	        case 9:
	            tvimg="/images/14/tvlime.gif";break;
	        default:
	            break;
          }	
    
        document.write('<p align="center">');
        document.write('<table  border="0"  bordercolor="#DDDDDD"  cellpadding="0" style="width:'   + '250' + ' ' +  ';  height:'  + pp  + ' ' + ';  border-collapse: collapse">');
        document.write('<tr>');
        document.write('<td  align="center" style="text-align: center;">'); 
        document.write('<div>');
        document.write('<img src="' + tvimg+ '" style="position:absolute; border:0; top:' + p1 + '; left:' + p2 + '" usemap="#ImgMap"/>');
        document.write('<object id="playtv" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
        document.write(' width="' + '250' + '" height="' + '150' + '" style="position:absolute; top:' + pp1 + '; left:' + pp2 + '">');
        document.write('<param name="uiMode" value="none"/>');
        document.write('<param name="autoStart" value="false"/>');
        document.write('<param name="URL" value="' + imgdefault + '"/>');
        
        document.write('</object>');
        var src = imgdefault;
        if (p5 != '') src = p5;
        
        playtvhere(src,p6);
                
        document.write('<map  style="cursor:hand;" name="ImgMap">');
        document.write('<area shape="circle" coords="28,168,15" alt="START"');
        document.write('onclick="playtv.controls.play()"/>');
        document.write('<area shape="circle" coords="348,168,15" alt="STOP"');
        document.write('onclick="playtv.controls.stop()"/>');
        document.write('</map>');
        document.write('</div>');
        
        document.write('</td>');
        document.write('</tr>');
        document.write('</table>');
        
        
        document.write('</p>');
}

