var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain"
oCMenu.useNS4links=1 
oCMenu.checkselect=0


oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1 
oCMenu.wait=1000

oCMenu.usebar=1 
oCMenu.barcolor="#996633" 
oCMenu.barwidth="75%"
oCMenu.barheight="menu" 
oCMenu.barx="menu"
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=10
oCMenu.fromtop=101
oCMenu.pxbetween=0

avail="120+((toppage.x2-110)/5.5)" 
oCMenu.menuplacement=new Array(120,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5")

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=100 
oCMenu.level[0].height=20 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="#FFFFFF"
oCMenu.level[0].hovercolor="#FFFF00" 
oCMenu.level[0].style="padding:5px; font-family:MS Sans Serif; font-size:12px;font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="MS Sans Serif"
oCMenu.level[0].NS4fontSize="1"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=200
oCMenu.level[1].height=20
oCMenu.level[1].bgcoloroff="#f1f1f1"
oCMenu.level[1].bgcoloron="#CCCCCC"
oCMenu.level[1].textcolor="#000000"
oCMenu.level[1].hovercolor="#009900"
oCMenu.level[1].style="padding:5px; font-family:MS Sans Serif; font-size:12px"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#0066cc"
oCMenu.level[1].NS4font="MS Sans Serif"
oCMenu.level[1].NS4fontSize="1"
oCMenu.level[1].NS4fontColor="black"
oCMenu.level[2]=new Array()
oCMenu.level[2].width=190
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:5px; font-family:MS Sans Serif; font-size:12px"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1
oCMenu.level[2].bordercolor="#0066cc"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#f1f1f1"
oCMenu.level[2].bgcoloron="#CCCCCC"
oCMenu.level[2].textcolor="#000000"
oCMenu.level[2].hovercolor="#ee9900"

oCMenu.makeMenu('top0','','บุคลากร ...')
	oCMenu.makeMenu('sub00','top0','ผู้บริหาร ...')
		oCMenu.makeMenu('sub001','sub00','ผู้อำนวยการสถานศึกษา.','http://www.tc.horwang.ac.th/mod/forum/discuss.php?d=3067')
		oCMenu.makeMenu('sub002','sub00','รองผู้อำนวยการสถานศึกษา.','http://www.horwang.ac.th/03/h_director.html')
	oCMenu.makeMenu('sub01','top0','ครู-อาจารย์ ...')
		oCMenu.makeMenu('sub010','sub01','ภาษาไทย.','http://www.horwang.ac.th/03/teacher.html#thai')
		oCMenu.makeMenu('sub011','sub01','คณิตศาสตร์.','http://www.horwang.ac.th/03/teacher.html#math')
		oCMenu.makeMenu('sub012','sub01','วิทยาศาสตร์.','http://www.horwang.ac.th/03/teacher.html#science')
		oCMenu.makeMenu('sub013','sub01','สังคมศึกษา ศาสนา และวัฒนธรรม.','http://www.horwang.ac.th/03/teacher.html#social')
		oCMenu.makeMenu('sub014','sub01','สุขศึกษา และพลศึกษา.','http://www.horwang.ac.th/03/teacher.html#health')
		oCMenu.makeMenu('sub015','sub01','ศิลปะ.','http://www.horwang.ac.th/03/teacher.html#art')
		oCMenu.makeMenu('sub016','sub01','การงานอาชีพ และเทคโนโลยี.','http://www.horwang.ac.th/03/teacher.html#technology')
		oCMenu.makeMenu('sub017','sub01','ภาษาต่างประเทศ.','http://www.horwang.ac.th/03/teacher.html#english')

oCMenu.makeMenu('top1','','สำนักงาน ...')
	oCMenu.makeMenu('sub10','top1','สำนักงานผู้อำนวยการสถานศึกษา','http://www.horwang.ac.th/03/d_office.html')
	oCMenu.makeMenu('sub11','top1','สำนักงานวิชาการ','http://www.horwang.ac.th')
	oCMenu.makeMenu('sub12','top1','สำนักงานธุรการ','http://www.horwang.ac.th')
	oCMenu.makeMenu('sub13','top1','สำนักงานปกครอง','http://www.horwang.ac.th/03/rule_office/rule.html')
	oCMenu.makeMenu('sub14','top1','สำนักงานบริการ','http://www.horwang.ac.th')

oCMenu.makeMenu('top2','','แหล่งเรียนรู้ ...')
	oCMenu.makeMenu('sub20','top2','แหล่งเรียนรู้ภายในโรงเรียน','http://www.horwang.ac.th/03/pic.html')
	oCMenu.makeMenu('sub21','top2','แหล่งเรียนรู้ภายนอกโรงเรียน','http://www.horwang.ac.th/03/pic_out.html')
	oCMenu.makeMenu('sub22','top2','moodle & E-learning','http://www.tc.horwang.ac.th')
        oCMenu.makeMenu('sub23','top2','thing.com & E-learning','http://www.think.com/pls/tc1/think.go?s=8093358')


oCMenu.makeMenu('top3','','service... ')
	oCMenu.makeMenu('sub30','top3','mail ','http://mail.horwang.ac.th/')
	oCMenu.makeMenu('sub31','top3','ผลการเรียน ','http://schoolict.horwang.ac.th/schweb/')
	oCMenu.makeMenu('sub32','top3','Mobile Web Service ','http://wap.horwang.net/')
	oCMenu.makeMenu('sub33','top3','Horwang Television ( HW-TV Online) ','http://www.horwang.ac.th/03/tvonline/tv_Online.html')
	oCMenu.makeMenu('sub34','top3','HW TV2 (เมื่อดูจากเครือข่ายที่โรงเรียน)','http://www.horwang.ac.th/03/tvonline/tv_Online-in.html')
	oCMenu.makeMenu('sub35','top3','แผนที่และเส้นทางไปโรงเรียน','http://www.horwang.ac.th/03/map.html')
	oCMenu.makeMenu('sub36','top3','แผนภูมิการบริหารงาน','http://www.horwang.ac.th/03/information/data2549/chart1.pdf')
	oCMenu.makeMenu('sub37','top3','พื้นที่บริการของโรงเรียนหอวัง','http://www.horwang.ac.th/03/psv/psv.html')


oCMenu.makeMenu('top4','','Link ...')
	oCMenu.makeMenu('sub40','top4','การศึกษา ...')
		oCMenu.makeMenu('sub400','sub40','สสวท','http://www.ipst.ac.th/')
		oCMenu.makeMenu('sub401','sub40','วิชาการ.คอม','http://www.vcharkarn.com/')
		oCMenu.makeMenu('sub402','sub40','e_book สทร.','http://techno.obec.go.th/content/index.htm')
		oCMenu.makeMenu('sub403','sub40','e-learning สทร.','http://obeclms.obec.go.th/')
		oCMenu.makeMenu('sub404','sub40','e-learning skoool รุ่นภาษาไทย.','http://www.skooolthai.net/')
		oCMenu.makeMenu('sub405','sub40','e-learning skoool.','http://lgfl.skoool.co.uk/index.aspx')
		oCMenu.makeMenu('sub406','sub40','CBeebies BBC','http://www.bbc.co.uk/cbeebies/')
		oCMenu.makeMenu('sub407','sub40','NASA','http://www.nasa.gov/')
		oCMenu.makeMenu('sub408','sub40','สำรวจดาวอังคาร','http://marsrovers.jpl.nasa.gov/gallery/')

	oCMenu.makeMenu('sub41','top4','อุดมศึกษา ...')
		oCMenu.makeMenu('sub410','sub41','ม.เกษตร','http://www.ku.ac.th/')
		oCMenu.makeMenu('sub411','sub41','ม.ธรรมศาสตร์','http://www.tu.ac.th/')
		oCMenu.makeMenu('sub412','sub41','ม.รามคำแหง','http://www.ru.ac.th/')
		oCMenu.makeMenu('sub413','sub41','ม.จุฬา','http://www.chula.ac.th/')
		oCMenu.makeMenu('sub414','sub41','ม.มหิดล','http://www.mahidol.ac.th/muthai/')
		oCMenu.makeMenu('sub415','sub41','ม.ศรีปทุม','http://www.spu.ac.th/')
		oCMenu.makeMenu('sub416','sub41','ม.ธุรกิจบัณฑิตย์','http://www.dpu.ac.th/')

	oCMenu.makeMenu('sub42','top4','เวบกระทรวง ...')
		oCMenu.makeMenu('sub420','sub42','LINK หน่วยงานต่างๆ ของรัฐ ','http://www.horwang.ac.th/03/gov/link-Thaigov.html')
		oCMenu.makeMenu('sub421','sub42','E-Citizen ศูนย์กลางบริการภาครัฐ. ','http://www.ecitizen.go.th/')
		oCMenu.makeMenu('sub422','sub42','กระทรวงมหาดไทย','http://www.moi.go.th/')
		oCMenu.makeMenu('sub423','sub42','กระทรวงสาธารณสุข','http://www.moph.go.th/')
		oCMenu.makeMenu('sub424','sub42','กระทรวงวัฒนธรรม','http://www.m-culture.go.th/')
		oCMenu.makeMenu('sub425','sub42','กระทรวงวิทยาศาสตร์และเทคโนโลยี','http://www.most.go.th/')
		oCMenu.makeMenu('sub426','sub42','เทคโนโลยีสารสนเทศและการสื่อสาร','http://www.mict.go.th/')
		oCMenu.makeMenu('sub427','sub42','ทรัพยากรธรรมชาติและสิ่งแวดล้อม','http://www.monre.go.th')

	oCMenu.makeMenu('sub43','top4','หนังสือพิมพ์ ...')
		oCMenu.makeMenu('sub430','sub43','หนังสือพิมพ์เดลินิวส์','http://www.dailynews.co.th')
		oCMenu.makeMenu('sub431','sub43','หนังสือพิมพ์ไทยรัฐ','http://www.thairath.co.th')
		oCMenu.makeMenu('sub432','sub43','หนังสือพิมพ์มติชน','http://www.matichon.co.th/matichon')
		oCMenu.makeMenu('sub433','sub43','หนังสือพิมพ์ข่าวสด','http://www.matichon.co.th/khaosod')
		oCMenu.makeMenu('sub434','sub43','หนังสือพิมพ์ประชาชาติ','http://www.matichon.co.th/prachachart')
		oCMenu.makeMenu('sub435','sub43','หนังสือพิมพ์ผู้จัดการ','http://www.manager.co.th')
		oCMenu.makeMenu('sub436','sub43','หนังสือพิมพ์ไทยโพสต์','http://www.thaipost.net')
		oCMenu.makeMenu('sub437','sub43','หนังสือพิมพ์แนวหน้า','http://www.naewna.com')
		oCMenu.makeMenu('sub438','sub43','ฐานเศรษฐกิจ','http://www.thannews.th.com')
	oCMenu.makeMenu('sub44','top4','สถานีโทรทัศน์ ...')
		oCMenu.makeMenu('sub440','sub44','ไทยทีวีสีช่อง 3','http://www.tv3.co.th')
		oCMenu.makeMenu('sub441','sub44','กองทัพบกช่อง 5','http://www.tv5.co.th')
		oCMenu.makeMenu('sub442','sub44','ช่อง 7 สี','http://www.ch7.com/')
		oCMenu.makeMenu('sub443','sub44','ช่อง 9 Modernine TV','http://modernine.mcot.net/')
		oCMenu.makeMenu('sub444','sub44','ช่อง 11 กรมประชาสัมพันธ์','http://www.prd.go.th/')
		oCMenu.makeMenu('sub445','sub44','ทีไอทีวี','http://www.titv.in.th/')
		oCMenu.makeMenu('sub446','sub44','Tai TV','http://www.ttv.co.th/')
		oCMenu.makeMenu('sub447','sub44','ทีทีวี 1 Nation Channel','http://www.nationchannel.com/')





oCMenu.makeStyle(); oCMenu.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}
