// Script Source: banvetau.com
// Copyright 2007
// Do not remove this notice.
var thoigian 
thoigian= function() 
{ 
var mydate=new Date()
	
var year = mydate.getYear()
	if (year < 1000)
		year += 1900
var month = mydate.getMonth() + 1
	if (month < 10)
		month = "0" + month
var day = mydate.getDate()
	if (day < 10)
		day = "0" + day
		
var total = day+"/"+month+"/"+year	

return total; 
}

	
function AboutBanvetau()
{
	alert("mailto:" + "banvetau" + "@" + "gmail.com");
}
function showImage(url)
{
	showDialog('ImageView.htm?' + url.substr(url.indexOf('?') + 1), 524, 524);
}

function showDialog(url, width, height)
{
	return showWindow(url, false, false, false, false, false, false, true, true, width, height, 0, 0);
}

function showWindow(url, isStatus, isResizeable, isScrollbars, isToolbar, isLocation, isFullscreen, isTitlebar, isCentered, width, height, top, left)
{
	if (isCentered)
	{
		top = (screen.height - height) / 2;
		left = (screen.width - width) / 2;
	}

	open(url, '_blank', 'status=' + (isStatus ? 'yes' : 'no') + ','
	+ 'resizable=' + (isResizeable ? 'yes' : 'no') + ','
	+ 'scrollbars=' + (isScrollbars ? 'yes' : 'no') + ','
	+ 'toolbar=' + (isToolbar ? 'yes' : 'no') + ','
	+ 'location=' + (isLocation ? 'yes' : 'no') + ','
	+ 'fullscreen=' + (isFullscreen ? 'yes' : 'no') + ','
	+ 'titlebar=' + (isTitlebar ? 'yes' : 'no') + ','
	+ 'height=' + height + ',' + 'width=' + width + ','
	+ 'top=' + top + ',' + 'left=' + left);
}

function writeTime()
{
	var mydate=new Date()
	
	var year = mydate.getYear()
	if (year < 1000)
		year += 1900
	var month = mydate.getMonth() + 1
	if (month < 10)
		month = "0" + month
	var day = mydate.getDate()
	if (day < 10)
		day = "0" + day

	var dayw = mydate.getDay()
	
	var hour = mydate.getHours()
	if (hour < 10)
		hour = "0" + hour
	
	var minute=mydate.getMinutes()
	if (minute < 10)
		minute = "0" + minute
	var dayarray=new Array("Ch&#7911; Nh&#7853;t","Th&#7913; Hai","Th&#7913; Ba","Th&#7913; T&#432;","Th&#7913; N&#259;m","Th&#7913; S&#225;u","Th&#7913; B&#7843;y")
	document.write(dayarray[dayw]+", "+day+"/"+month+"/"+year+",&nbsp;"+hour+":"+minute+" (GMT+7)")
}
function writeDate()
{
	var mydate=new Date()
	
	var year = mydate.getYear()
	if (year < 1000)
		year += 1900
	var month = mydate.getMonth() + 1
	if (month < 10)
		month = "0" + month
	var day = mydate.getDate()
	if (day < 10)
		day = "0" + day

	var dayw = mydate.getDay()
	
	var hour = mydate.getHours()
	if (hour < 10)
		hour = "0" + hour
	
	var minute=mydate.getMinutes()
	if (minute < 10)
		minute = "0" + minute
		
	var second=mydate.getSeconds()
	if (second < 10)
		second = "0" + second
		
	var dayarray=new Array("Ch&#7911; Nh&#7853;t","Th&#7913; Hai","Th&#7913; Ba","Th&#7913; T&#432;","Th&#7913; N&#259;m","Th&#7913; S&#225;u","Th&#7913; B&#7843;y")
	document.write(day+"/"+month+"/"+year+"&nbsp;"+hour+":"+minute+":"+second)
}
function getTimeString()
{
	document.write("<span class=Para>");
	writeTime();
	document.write("</span>")
}

function displayInfo(info)
{
	if (info == 'weather')
		showDialog('http://www3.tuoitre.com.vn/transweb/rams.htm', 492, 659);
	if (info == 'forex')
		showDialog('http://www3.tuoitre.com.vn/transweb/tygia.htm', 460, 432);
	if (info == 'gold')
		showDialog('http://www3.tuoitre.com.vn/transweb/giavang.htm', 450, 220);
	if (info == 'tvguide')
		showWindow('http://www3.tuoitre.com.vn/transweb/truyenhinh.htm', false, false, true, false, false, false, true, true, 450, 354, 0, 0);
	if (info == 'lottery')
		showWindow('http://www3.tuoitre.com.vn/Transweb/XoSo.html', false, false, true, false, false, false, true, true, 450, 600, 0, 0);
	if (info == 'stock')
		showWindow('http://www.banvetau.com/thongtinchungkhoan.asp',700,750);
}
function displayArt(info)
{
	if (info == '01')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/hcmc/Tourviewer_CD.html', 600, 450);
	if (info == '02')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/my_son/Tourviewer_CD.html', 600, 450);
	if (info == '03')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/villas/Tourviewer_CD.html', 600, 450);
	if (info == '04')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/khai_dinh_tomb/Tourviewer_CD.html', 600, 450);
	if (info == '05')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/van_mieu/Tourviewer_CD.html', 600, 450);
	if (info == '06')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/bang_dang/Tourviewer_CD.html', 600, 450);
	if (info == '07')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/cuchi_tunnel/Tourviewer_CD.html', 600, 450);
	if (info == '08')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/cho_hoa_xuan/Tourviewer_CD.html', 600, 450);
	if (info == '09')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/hoi_hoa_xuan/Tourviewer_CD.html', 600, 450);
	if (info == '10')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/duong_hoa_nguyen_hue/Tourviewer_CD.html', 600, 450);
	if (info == '11')
		showDialog('http://www.tranthanhsang.com/images/virtual_tour/den_hung/Tourviewer_CD.html', 600, 450);
}
