var code="code"; var url="url"; var sub="sub";

var css1 = {"ON":"menuindex1link", "OVER":"menuindex1hover"};
var top1_color = {"border":"#6666ff", "shadow":"black", "bgON":"#9bcd9e", "bgOVER":"white"};
var top1 = {"border":1, "shadow":2, "color":top1_color, "css":css1};
var sub1_color = {"border":"#6666ff", "shadow":"black", "bgON":"#dfdfdf", "bgOVER":"white"};
var sub1 = {"border":1, "shadow":2, "color":sub1_color, "css":css1};

var css2 = {"ON":"menuindex2link", "OVER":"menuindex2hover"};
var top2_color = {"border":"#66ffff", "shadow":"black", "bgON":"#0000cc", "bgOVER":"#b5ceb5"};
var top2 = {"border":1, "shadow":2, "color":top2_color, "css":css2};
var sub2_color = {"border":"#66ffff", "shadow":"black", "bgON":"#0000a0", "bgOVER":"#b5ceb5"};
var sub2 = {"border":1, "shadow":2, "color":sub2_color, "css":css2};

var index_page =
[
	{"pos":[7,59], "size":[0,0], "itemoff":[0,0], "leveloff":[0,0], "style":top1},

	{code:"<center><font size=2>Search</font></center>", "format":{"size":[20,68], "itemoff":[0,69]},
		sub:[
			{"pos":[76,80], "size":[20,145], "itemoff":[19,0]},
			{code:"<font size=2>ค้นหาจากชื่อกระทู้</font>", url:"search.php?where=title", target:"_blank"},
			{code:"<font size=2>ค้นหาจากเนื้อความ</font>", url:"search.php?where=msg", target:"_blank"},
			{code:"<font size=2>ค้นหาจากชื่อคนโพส</font>", url:"search.php?where=name", target:"_blank"},
			{code:"<font size=2>ค้นหาหนังสือในห้องสมุดรามฯ</font>", url:"http://library.lib.ru.ac.th", target:"_blank", "format":{"style":sub1}},
			{code:"<font size=2>Google</font>", url:"http://www.google.com", target:"_blank", "format":{"style":sub1}}
		]
	},
	{code:"<center><font size=2>Links</font></center>", "format":{"size":[20,50], "itemoff":[0,51]},
		sub:[
			{"pos":[127,80], "size":[20,120], "itemoff":[19,0]},
			{code:"<font size=2>Ramkhamhaeng</font>", url:"http://www.ru.ac.th", target:"_blank"},
			{code:"<font size=2>Vid-Com-Ram</font>", url:"http://www.u-friend.com", target:"_blank", "format":{"style":sub1}},
			{code:"<font size=2>Dakwitcomram</font>", url:"http://www.dakwitcomram.thcity.com", target:"_blank", "format":{"style":sub1}},
		   {code:"<font size=2>SorPorKor</font>", url:"http://www24.brinkster.com/sorporkor", target:"_blank", "format":{"style":sub1}},
		   {code:"<font size=2>Pantip.com/Tech</font><img src=imag/blank.gif width=2 height=1 border=0><img src=image/more.gif width=7 height=8 border=0>", url:"http://www.pantip.com/tech", target:"_blank",
				sub:[
					{"pos":[249,146], "size":[20,135], "itemoff":[19,0]},
					{code:"<font size=2>Com Sci & Eng</font>", url:"http://www.pantip.com/tech/comsci", target:"_blank"},
					{code:"<font size=2>Developer</font>", url:"http://www.pantip.com/tech/developer", target:"_blank"},
					{code:"<font size=2>Network&Internet</font>", url:"http://www.pantip.com/tech/internet", target:"_blank"},
					{code:"<font size=2>Software</font>", url:"http://www.pantip.com/tech/software", target:"_blank"},
					{code:"<font size=2>Hardware</font>", url:"http://www.pantip.com/tech/hardware", target:"_blank"},
					{code:"<font size=2>Tech News&Columns</font>", url:"http://www.pantip.com/tech/newscols", target:"_blank"}
				]
			},
			{code:"<font size=2>เว็บไซต์เด็กรามฯ</font><img src=image/blank.gif width=31 height=1 border=0><img src=image/more.gif width=7 height=8 border=0>",
				sub:[
					{"pos":[249,203], "size":[20,90], "itemoff":[19,0]},
					{code:"<font size=2>khonmuslim</font>", url:"http://www.khonmuslim.com", target:"_blank"},
					{code:"<font size=2>popmusic2u</font>", url:"http://www.popmusic2u.com", target:"_blank"},
					{code:"<font size=2>dogspy</font>", url:"http://dogspy.hypermart.net", target:"_blank"}
				]			
			}
		]
	},
	{code:"<center><font size=2>Download</font></center>", url:"download.php", target:"_blank", "format":{"size":[20,65], "itemoff":[0,51]},
		sub:[
			{"itemoff":[0,0]}
		]
	},
	{code:"<center><font size=2>CT2xx</font></center>", "format":{"size":[20,44], "itemoff":[0,71], "style":top2},
		sub:[
			{"pos":[249,80], "size":[20,44], "itemoff":[19,0]},
			{code:"<font size=2>CT105</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT105", target:"_blank"},
			{code:"<font size=2>CT203</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT203", target:"_blank"},
			{code:"<font size=2>CT211</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT211", target:"_blank"},
			{code:"<font size=2>CT212</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT212", target:"_blank"},
			{code:"<font size=2>CT214</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT214", target:"_blank"},
			{code:"<font size=2>CT215</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT215", target:"_blank"},
			{code:"<font size=2>CT216</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT216", target:"_blank"}
		]
	},
	{code:"<center><font size=2>CT3xx</font></center>", "format":{"size":[20,44], "itemoff":[0,45], "style":top2},
		sub:[
			{"pos":[294,80], "size":[20,44], "itemoff":[19,0]},
			{code:"<font size=2>CT313</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT313", target:"_blank"},
			{code:"<font size=2>CT314</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT314", target:"_blank"},
			{code:"<font size=2>CT315</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT315", target:"_blank"},
			{code:"<font size=2>CT316</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT316", target:"_blank"},
			{code:"<font size=2>CT317</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT317", target:"_blank"},
			{code:"<font size=1>(CT345)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT345", target:"_blank", "format":{"style":sub2, "size":[19,44]}}
		]
	},
	{code:"<center><font size=2>CT4xx</font></center>", "format":{"size":[20,44], "itemoff":[0,45], "style":top2},
		sub:[
			{"pos":[339,80], "size":[20,44], "itemoff":[19,0]},
			{code:"<font size=2>CT414</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT414", target:"_blank"},
			{code:"<font size=2>CT415</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT415", target:"_blank"},
			{code:"<font size=2>CT417</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT417", target:"_blank"},
			{code:"<font size=2>CT479</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT479", target:"_blank"},
			{code:"<font size=2>CT484</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT484", target:"_blank"},
			{code:"<font size=2>CT490</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT490", target:"_blank"},
			{code:"<font size=1>(CT447)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT447", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[19,0]}},
			{code:"<font size=1>(CT455)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT455", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT477)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT477", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT478)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT478", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT486)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT486", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT487)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT487", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT488)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT488", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT489)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT489", target:"_blank", "format":{"style":sub2, "size":[18,44], "itemoff":[17,0]}},
			{code:"<font size=1>(CT494)</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=CT494", target:"_blank", "format":{"style":sub2, "size":[19,44], "itemoff":[17,0]}}
		]
	},
	{code:"<center><font size=2>วิชาอื่นๆ</font></center>", "format":{"size":[20,47], "itemoff":[0,45], "style":top2},
		sub:[
			{"pos":[384,80], "size":[20,47], "itemoff":[19,0]},
			{code:"<font size=2>วิชาโท</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=วิชาโท", target:"_blank"},
			{code:"<font size=2>วิชาLab</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=วิชาLab", target:"_blank"},
			{code:"<font size=2>วิชาอื่นๆ</font>", url:"indexsub.php?where=all&order=qid&limit=0&sub=วิชาอื่นๆ", target:"_blank"}
		]
	},
	{code:"<center><font size=2>เลือกดูเฉพาะกระทู้</font><img src = 'image/blank.gif' width=2 height=1 border=0><img src = 'image/pulldown.gif' width=7 height=8 border=0></center>", "format":{"size":[20,101], "itemoff":[0,53], "style":top2},
		sub:[
			{"pos":[437,80], "size":[20,135], "itemoff":[19,0]},
			{code:"<font size=2><center><b>:+:</b> แสดงกระทู้ทั้งหมด <b>:+:</b></center></font>", url:"index.php?where=all&order=qid&limit=0"},
			{code:"<font size=2>ข่าวประกาศ / แนะนำสิ่งดีๆ</font>", url:"index.php?where=announce&order=qid&limit=0", "format":{"style":sub2}},
			{code:"<font size=2>วิชาที่ผลสอบออกแล้ว</font>", url:"index.php?where=result&order=qid&limit=0", "format":{"style":sub2}},
			{code:"<font size=2>วิชาที่เปลี่ยนห้อง/เวลาเรียน</font>", url:"index.php?where=change&order=qid&limit=0", "format":{"style":sub2}},
			{code:"<font size=2>ComSci / ComTech</font>", url:"index.php?where=computer&order=qid&limit=0"},
			{code:"<font size=2>แลกเปลี่ยนความคิดเห็น</font>", url:"index.php?where=discuss&order=qid&limit=0"},
			{code:"<font size=2>แนะนำเว็บไซต์ที่น่าสนใจ</font>", url:"index.php?where=website&order=qid&limit=0"},
			{code:"<font size=2><center><b>:+:</b> กระทู้ Highlights <b>:+:</b></center></font>", url:"index.php?highlights=true", "format":{"style":sub2}}
		]
	}
];
