function DisplayMenuBar() { var FolderDef=(GetPostVariable('v', '')==''); var HasItem=0; function InitMenu() { if (!HasItem) { document.writeln(''); HasItem=1; } } function AddLevel1(Item, Link) { InitMenu(); document.writeln(''); if (VirtualFolder.substr(0, Link.length)==Link.toLowerCase()) { document.writeln(''); document.writeln(''); } function AddLevel2(Item, Link) { InitMenu(); document.writeln(''); if (VirtualFolder.substr(0, Link.length)==Link.toLowerCase()) { document.writeln(''); document.writeln(''); } AddLevel1('Home', '/Vietnam/Home'); AddLevel1('Thế giới', '/Vietnam/The-gioi'); AddLevel1('Kinh doanh', '/Vietnam/Kinh-doanh'); AddLevel1('Xã hội', '/Vietnam/Xa-hoi'); AddLevel2('Giáo dục', '/Vietnam/Xa-hoi/Giao-duc'); AddLevel2('Gia đình', '/Vietnam/Xa-hoi/Gia-dinh'); AddLevel2('Lối sống', '/Vietnam/Xa-hoi/Loi-song'); AddLevel2('Du lịch', '/Vietnam/Xa-hoi/Du-lich'); AddLevel2('Ẩm thực', '/Vietnam/Xa-hoi/Am-thuc'); AddLevel2('Nội trợ', '/Vietnam/Xa-hoi/Noi-tro'); AddLevel1('Văn hoá', '/Vietnam/Van-hoa'); AddLevel1('Thể thao', '/Vietnam/The-thao'); AddLevel1('Sức khoẻ', '/Vietnam/Suc-khoe'); AddLevel1('Khoa học', '/Vietnam/Khoa-hoc'); AddLevel1('Vi tính', '/Vietnam/Vi-tinh'); AddLevel1('Pháp luật', '/Vietnam/Phap-luat'); AddLevel1('Xe máy', '/Vietnam/Xe-may'); AddLevel1('Cười', '/Vietnam/Cuoi'); if (HasItem) { document.writeln('
'); } else { document.writeln(''); } if (VirtualFolder==Link.toLowerCase() && FolderDef) { document.write(''); } else { document.write('', Item, ''); } document.writeln('
'); Class='SubMenu'; } else { document.writeln(''); Class='SubMenu'; } if (VirtualFolder==Link.toLowerCase() && FolderDef) { document.write('

', Item, '

'); } else { document.write('', Item, ''); } document.writeln('
'); } } DisplayMenuBar(); AddBreakSpace(); function ShowWeather() { function AddCityWeather(City, Degree) { document.writeln(' ', City, '', Degree, '° '); } if (!AddHeader('Weather', 'Thời tiết', 3)) return; AddCityWeather('Hà Nội', '24-34'); AddCityWeather('Huế', '24-39'); AddCityWeather('Đà Nẵng', '24-35'); AddCityWeather('Hồ Chí Minh', '24-35'); AddFooter(); } ShowWeather(); AddBreakSpace(); function ShowStockVietNam() { function AddStockPrice(Stock, Price) { document.writeln(' ', Stock, '', Price, ' '); } if (!AddHeader('vnStock', 'Chứng khoán', 3)) return; AddStockPrice('HAP', '75,000'); AddStockPrice('TMS', '68,000'); AddStockPrice('SAM', '43,600'); AddStockPrice('REE', '43,400'); AddStockPrice('LAF', '35,000'); AddStockPrice('BID 1-100', '93,900'); document.writeln(''); document.writeln(' VN Index'); document.writeln('289.82 '); document.writeln(''); AddFooter(); } ShowStockVietNam(); AddBreakSpace(); function ShowGoldPrice() { function AddGoldPrice(Currency, Rate) { document.writeln(' ', Currency, '', Rate, ' '); } if (!AddHeader('Gold', 'Giá vàng 9999', 3)) return; AddGoldPrice('Mua', '459,000'); AddGoldPrice('Bán', '469,000'); AddFooter(); } ShowGoldPrice(); AddBreakSpace(); function ShowForexRate() { function AddCurrencyRate(Currency, Rate) { document.writeln(' ', Currency, '', Rate, ' '); } if (!AddHeader('Forex', 'Tỷ giá', 3)) return; AddCurrencyRate('CAD', '9,321.00'); AddCurrencyRate('SFr', '8,498.00'); AddCurrencyRate('SGD', '8,170.00'); AddCurrencyRate('AUD', '7,226.00'); AddCurrencyRate('DM', '6,729.00'); AddCurrencyRate('BATH', '327.00'); AddCurrencyRate('GBP', '20,929.00'); AddCurrencyRate('FRF', '2,006.00'); AddCurrencyRate('USD', '14,550.00'); AddCurrencyRate('EURO', '13,161.00'); AddCurrencyRate('JPY', '117.56'); AddCurrencyRate('HKD', '1,880.00'); AddFooter(); } ShowForexRate();