var scrollerdelay='6000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='210px'
var scrollerheight='180px'
var scrollerbgcolor='l'
//set below to '' if you don't wish to use a background image
var scrollerbackground='spacer.gif'
//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]='<span class="customer"><br><b>วันนี้ คุณเลือกใครเป็นผู้ให้บริการเว็บ<br>โฮสติ้งกับคุณ?</b><br><br>ฟังเสียงตอบรับจากลูกค้าของเรา...</span>'
messages[1]='<span class="customer">"ผมเคยใช้ Hosting มาไม่ต่ำกว่า 10 ที่ครับ <br>&nbsp;พอเจอ HostPacific ก็ไม่เคยย้ายอีกเลย <br>&nbsp;เพราะทีมงานเทคนิคได้พิสูจน์ให้เห็นถึง<br>&nbsp;ความชำนาญขั้นสูง ทำให้เราวางใจได้ว่า <br>&nbsp;เว็บของเราสามารถรองรับคนเข้าหมื่นกว่า<br>&nbsp;คนต่อวัน ได้อย่างรวดเร็ว คุ้มค่ากับราคา<br>&nbsp;ที่เสียไปครับ"<br><br><br>&nbsp;<b>คุณโน๊ต (ฐิติกร)<br>&nbsp;<a href="http://www.appjob.com" target="_blank"><font color="#e6e6e6">AppJob.com</a></b></span>'
messages[2]='<span class="customer">"สำหรับผมชอบทีม support ของที่นี่มาก <br>&nbsp;สามารถแก้ไขปัญหาได้รวดเร็วทันใจ และ<br>&nbsp;แนะนำแนวทางการปรับปรุงระบบแบบต่างๆ <br>&nbsp;ได้เสมอ"<br><br><br>&nbsp;<b>คุณสุวิทย์<br>&nbsp;<a href="http://www.impaqads.com/" target="_blank"><font color="#e6e6e6">Impaq Interactive</a></b></span>'
messages[3]='<span class="customer">"เว็บโฮสติ้งของที่นี่ มีหลายแพกเกจให้<br>&nbsp;เลือกตามความต้องการใช้งาน และมีระบบ<br>&nbsp;อำนวยความสะดวกมากมาย ทำให้ลูกค้า<br>&nbsp;สะดวกกับการจัดการเว็บไซต์ และอีเมล์<br>&nbsp;ของตัวเองอย่างมาก"<br><br><br>&nbsp;<b><a href="http://www.kwanruen.com/" target="_blank"><font color="#e6e6e6">นิตยสารขวัญเรือน</a></b></span>'
messages[4]='<span class="customer">"ผมใช้บริการ HostPacific.com มานาน<br>&nbsp;กว่า 8 ปี มั่นใจว่าที่นี่ทำงานกับผมเหมือน<br>&nbsp;เป็นหุ้นส่วน ที่ไม่ใช่เพียงแค่ลูกค้า และผม<br>&nbsp;ยังเชื่อว่า HostPacific.com จะสามารถ<br>&nbsp;รักษามาตรฐาน การบริการระดับสูงนี้ เอา<br>&nbsp;ไว้ได้อีกนาน"<br><br><br>&nbsp;<b>คุณเอกพล<br>&nbsp;<a href="http://www.smilesms.com/" target="_blank"><font color="#e6e6e6">SmileSMS.com</a></b></span>'
messages[5]='<span class="customer">"ใช้ HostPacific.com มาระยะหนึ่ง ประทับใจ<br>&nbsp;ในการให้บริการแก้ปัญหาได้เร็ว<br>&nbsp;ให้ความกระจ่างของที่มาของปัญหาและ<br>&nbsp;วิธีแก้ไข ประทับใจในการให้บริการจริงๆ"<br><br><br>&nbsp;<b>คุณอมรรัตน์ <br>&nbsp;<a href="http://www.clubandaman.com" target="_blank"><font color="#e6e6e6">Club Andaman Beach Resort</a></b></span>'
messages[6]='<span class="customer">"ทางทีมงาน HostPacific.com สามารถ<br>&nbsp;แก้ไขปัญหาให้อย่างรวดเร็วแบบ 24x7<br>&nbsp;จริงๆ ตอนนี้อยู่มาหลายปี<br>&nbsp;ไม่คิดจะย้ายไปที่อื่นแล้ว"<br><br><br>&nbsp;<b>คุณเทวัญ<br>&nbsp;<a href="http://www.tig.co.th/" target="_blank"><font color="#e6e6e6">บมจ.ไทยอินดัสเตรียลแก๊ส</a></b></span>'
messages[7]='<span class="customer">"สิ่งสำคัญที่เลือกใช้บริการ HostPacific.com<br>&nbsp;คือความเป็นมืออาชีพในการให้บริการ<br>&nbsp;แก้ไขปัญหาให้ลูกค้าเสมือนเป็นลูกค้าเอง<br>&nbsp;เพราะข้อมูลและความรวดเร็วเป็นสิ่งสำคัญ<br>&nbsp;ในธุรกิจปัจจุบัน เราจึงมั่นใจ<br>&nbsp;เลือกใช้ HostPacific.com"<br><br><br>&nbsp;<b>คุณชัยวัฒน์<br>&nbsp;<a href="http://www.singsanguan.co.th/" target="_blank"><font color="#e6e6e6">Sing Sanguan & Sons Co., Ltd.</a></b></span>'
messages[8]='<span class="customer">"ใช้บริการของ HostPacific.com มาหลายปี<br>&nbsp;เจ้าหน้าที่มีความใส่ใจในการแก้ไขปัญหา<br>&nbsp;และสอบถามติดตามผลเมื่อมีการแจ้งปัญหา<br>&nbsp;รวมทั้งระบบค่อนข้างนิ่งค่ะ"<br><br><br>&nbsp;<b>คุณสุจินดา<br>&nbsp;<a href="http://www.slcsteel.com/" target="_blank"><font color="#e6e6e6">Siam Lotus Co., Ltd.</a></b></span>'
messages[9]='<span class="customer">"บริษัท Rochester Group จำกัด ใช้บริการ<br>&nbsp;เว็บโฮสติ้งกับทาง HostPacific.com มา<br>&nbsp;เกือบ 10 ปีแล้ว เมื่อมีปัญหาก็แก้ไขเร็ว<br>&nbsp;รู้สึกพอใจ ไม่เคยเปลี่ยนไปใช้ที่อื่นอีกเลย"<br><br><br>&nbsp;<b>คุณสุเทพ<br>&nbsp;<a href="http://www.123yim.com/" target="_blank"><font color="#e6e6e6">Rochester Group Ltd.</a></b></span>'
messages[10]='<span class="customer">"การให้บริการของ HostPacific.com รวดเร็ว<br>&nbsp;รวมถึงการให้คำแนะนำในการใช้บริการและ<br>&nbsp;ให้บริการเป็นกันเอง สุภาพกับลูกค้า"<br><br><br>&nbsp;<b>คุณอนุพงศ์<br>&nbsp;<a href="http://www.pjparawood.com/" target="_blank"><font color="#e6e6e6">PJ Parawood Group</a></b></span>'
messages[11]='<span class="customer">"HostPacific.com ให้การบริการบริษัทเรา<br>&nbsp;เหมือนเป็นส่วนหนึ่งของทีมงานเอง<br>&nbsp;และพร้อมที่จะช่วยให้คำแนะนำ<br>&nbsp;ตลอดเวลา ไม่ต้องหนักใจ<br>&nbsp;เรื่องเว็บโฮสติ้งอีกต่อไป"<br><br><br>&nbsp;<b>คุณนรุตร์<br>&nbsp;<a href="http://www.rawiwarin.com/" target="_blank"><font color="#e6e6e6">บจก. ริบบอนเซ็นเตอร์</a></b></span>'
messages[12]='<span class="customer">"ได้รับบริการที่ดีจาก HostPacific.com<br>&nbsp;มาตลอด อาจจะมีปัญหาบ้างเป็นครั้งคราว<br>&nbsp;แต่ก็ไม่บ่อยมาก และสามารถแก้ไขปัญหา<br>&nbsp;ได้อย่างรวดเร็วเป็นที่น่าพอใจค่ะ"<br><br><br>&nbsp;<b>คุณจิตวดี<br>&nbsp;<a href="http://www.flowerfeedback.com/" target="_blank"><font color="#e6e6e6">Boonsong Siam Land Co., Ltd.</a></b></span>'
messages[13]='<span class="customer">"ผมใช้บริการ HostPacific.com มาหลายปีแล้ว<br>&nbsp;ไม่เคยคิดย้ายไปใช้บริการที่อื่น เพราะรู้สึก<br>&nbsp;ประทับใจการให้บริการอย่างรวดเร็วทันใจ<br>&nbsp;จากทีมงานของบริษัทอย่างมาก เว็บไซต์<br>&nbsp;ของผมเปิดให้บริการทางวิชาการ สังคม<br>&nbsp;ฯลฯ ตอนนี้เว็บของผมมีผู้เข้าเยี่ยมชม<br>&nbsp;กว่า 13 ล้านครั้ง ขอขอบคุณ HostPacific.com"<br><br>&nbsp;<b>ว่าที่พันตรี วิษณุ บุญมารัตน์</b><br>&nbsp;<a href="http://www.wizanu.com/" target="_blank"><font color="#e6e6e6">คณะการจัดการและการท่องเที่ยว</a><br>&nbsp;<b>ม.บูรพา</b></span>'
messages[14]='<span class="customer">"สำหรับเว็บ E-commerce นั้น ผู้ให้บริการ<br>&nbsp;เว็บโฮสติ้งที่จะเลือกใช้ มีความสำคัญอย่างยิ่ง<br>&nbsp;การ Down แต่ละครั้ง ไม่ได้หมายถึง<br>&nbsp;การสูญเสียยอดขายและรายได้<br>&nbsp;แต่ยังหมายถึงการเสียความน่าเชื่อถืออีกด้วย<br>&nbsp;HostPacific.com เป็นผู้ให้บริการที่ดีมาก<br>&nbsp;ทำให้ผมสามารถเอาเวลาและสมองไปทุ่มเท<br>&nbsp;ให้กับแผนทางธุรกิจ ไม่ต้องมาห่วงกับ<br>&nbsp;ปัญหาของ Server อีกต่อไป"<br><br>&nbsp;<b>คุณพจน์<br>&nbsp;<a href="http://www.avbestbuy.com/" target="_blank"><font color="#e6e6e6">หสม.เอวีเบสท์บายดอทคอม</a></b></span>'
messages[15]='<span class="customer">"ทางบริษัทฯ ใช้บริการกับ HostPacific<br>&nbsp;มานานแล้วตั้งแต่ 1 โดเมน และเพิ่มขึ้น<br>&nbsp;ตอนนี้ใช้อยู่กว่า 4 โดเมน บางครั้งที่มีปัญหา<br>&nbsp;แต่ก็ได้รับการช่วยเหลือจากทีมงาน<br>&nbsp;ที่มีประสบการณ์อย่างทันท่วงที บ่อยครั้ง<br>&nbsp;ก็ได้รับคำแนะนำดีดีในการใช้งาน<br>&nbsp;ไม่เปลี่ยนใจไปใช้ที่อื่นแน่นอน"<br><br><br>&nbsp;<b>คุณจันทวรรณ<br>&nbsp;<a href="http://www.fundkey.com/" target="_blank"><font color="#e6e6e6">บจก. ไซเลอร์ กรุ๊ป</a></b></span>'

function randOrd(){
	return (Math.round(Math.random())-0.5); 
}
messages.sort( randOrd );

////////// Do not edit pass this line //////////
var ie=document.all
var dom=document.getElementById
if (messages.length>2)
	i=2
else
	i=0
function move(whichdiv){
	tdiv=eval(whichdiv)
	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
		tdiv.style.top=0+"px"
		setTimeout("move(tdiv)",scrollerdelay)
		setTimeout("move2(second2_obj)",scrollerdelay)
	return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
	tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
	setTimeout("move(tdiv)",50)
}
else{
	tdiv.style.top=parseInt(scrollerheight)+"px"
	tdiv.innerHTML=messages[i]
	if (i==messages.length-1)
		i=0
	else
		i++
	}
}
function move2(whichdiv){
	tdiv2=eval(whichdiv)
	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
		tdiv2.style.top=0+"px"
		setTimeout("move2(tdiv2)",scrollerdelay)
		setTimeout("move(first2_obj)",scrollerdelay)
	return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
	tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
	setTimeout("move2(second2_obj)",50)
}
else{
	tdiv2.style.top=parseInt(scrollerheight)+"px"
	tdiv2.innerHTML=messages[i]
	if (i==messages.length-1)
		i=0
	else
		i++
	}
}
function startscroll(){
	first2_obj=ie? first2 : document.getElementById("first2")
	second2_obj=ie? second2 : document.getElementById("second2")
	move(first2_obj)
	second2_obj.style.top=scrollerheight
	second2_obj.style.visibility='visible'
}
if (ie||dom){
	document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
	document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:10px;top:10px">')
	document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:10px;">')
	document.write(messages[0])
	document.writeln('</div>')
	document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
	document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
	document.writeln('</div>')
	document.writeln('</div>')
	document.writeln('</div>')
}
if (window.addEventListener)
	window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
	window.attachEvent("onload", startscroll)
else if (ie||dom)
	window.onload=startscroll
