var d = new Date()
var h = d.getHours()

//You can record your own audio greeting and customize the greeting time and message
if (h < 12) document.write('<bgsound SRC="http://www.myhousestay.com/th/media/goodmorning.wav" AUTOSTART=true LOOP=1>'+'สวัสดีตอนเช้าครับ!')
else if (h < 17) document.write('<bgsound SRC="http://www.myhousestay.com/th/media/goodafternoon.wav" AUTOSTART=true LOOP=1>'+'สวัสดีตอนบ่ายครับ!')
else if (h < 24) document.write('<bgsound SRC="http://www.myhousestay.com/th/media/goodevening.wav" AUTOSTART=true LOOP=1>'+'สวัสดีตอนเย็น!')