var scoid = '62';
var pagenow = 1;
var numpage = 1;
var w = 98;
var h = 4;
var content_w = 900;
var content_h = 480;
var topic = 'แบบทดสอบ';
var nolp_lesson_mode = 'normal';
var display = true;
var numtest = 1;
var offline = false;
usescorm = (offline)?false:true;
var wm_media = 6;
var listpage_w = 0;
var listpage_h = 0;

var use_media_server = false;
var media_server = '';
if((typeof(media_server) != "undefined") && (media_server != '')){
	if(media_server.substring( (media_server.length - 1) ) != '/') media_server += '/';
	media_server += scoid+'/';
}

if(!offline && use_media_server && media_server ==''){
	var media_pp = location.pathname.split('/');
	media_pp.pop();
	var pathname = media_pp.join('/');

	media_server = 'mms://'+location.host+pathname;
	if(media_server.substring( (media_server.length - 1) ) != '/') media_server += '/';
}


var thai = true;


if (window.location.search.length > 0){
      var strQuery = window.location.search.substring(1);
	  var arrQuery = strQuery.split(';');
	  for (var i=0;i<arrQuery.length;i++){
	     var arr_value = arrQuery[i].split('=');
		 var arrval = arr_value[0].toLowerCase();
		 if((arr_value[1] != null) && (arr_value[1] != '')){
			 switch(arrval){
				 case "page":
					 pagenow = arr_value[1];
					 break;
			 }
		 }
	  } 
   }



if(!offline){
	var resultsco = startSCO();
	usescorm = display = (resultsco == "true")?true:false;
}

if(display){

	var score_suit = [];

	document.write("<span id=skin style='position:absolute;width:1000px;height:61px;left:0px;top:0px;z-index:1'><img src=\"asset/230_1909_1.jpg\" border=0></span><span id=skin style='position:absolute;width:60px;height:60px;left:940px;top:0px;z-index:2'><img src=\"asset/230_1910_4.jpg\" border=0 width=\"60\" height=\"60\" style=\"cursor:pointer\" alt=\"ออกจากบทเรียน\" onclick=\"goPage('exit')\" ></span><span id=skin style='position:absolute;width:51px;height:480px;left:0px;top:61px;z-index:1'><img src=\"asset/230_1911_1.jpg\" border=0></span><span id=skin style='position:absolute;width:900px;height:480px;left:51px;top:61px;z-index:4'><iframe name=\"nolpifrm\" id=\"nolpifrm\" src=\"about:blank\" width=\"900\" height=\"480\" scrolling=\"auto\" frameborder=\"0\"></iframe></span><span id=skin style='position:absolute;width:49px;height:480px;left:951px;top:61px;z-index:1'><img src=\"asset/230_1913_1.jpg\" border=0></span><span id=skin style='position:absolute;width:1000px;height:59px;left:0px;top:541px;z-index:1'><img src=\"asset/230_1914_1.jpg\" border=0></span>");

//	var txtq = '&nbsp;&nbsp;&nbsp; <span id="numq_1" onclick="nolpifrm.showhide(1);clicknumq(1)" style="cursor: pointer">๑</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_2" onclick="nolpifrm.showhide(2)" style="cursor: pointer">๒</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_3" onclick="nolpifrm.showhide(3)" style="cursor: pointer">๓</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_4" onclick="nolpifrm.showhide(4)" style="cursor: pointer">๔</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_5" onclick="nolpifrm.showhide(5)" style="cursor: pointer">๕</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_6" onclick="nolpifrm.showhide(6)" style="cursor: pointer">๖</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_7" onclick="nolpifrm.showhide(7)" style="cursor: pointer">๗</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_8" onclick="nolpifrm.showhide(8)" style="cursor: pointer">๘</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_9" onclick="nolpifrm.showhide(9)" style="cursor: pointer">๙</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_10" onclick="nolpifrm.showhide(10)" style="cursor: pointer">๑๐</span>';

	var txtq = '&nbsp;&nbsp;&nbsp; <span id="numq_1" onclick="nolpifrm.showhide(1);clicknumq(1)" style="cursor: pointer">1</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_2" onclick="nolpifrm.showhide(2)" style="cursor: pointer">2</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_3" onclick="nolpifrm.showhide(3)" style="cursor: pointer">3</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_4" onclick="nolpifrm.showhide(4)" style="cursor: pointer">4</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_5" onclick="nolpifrm.showhide(5)" style="cursor: pointer">5</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_6" onclick="nolpifrm.showhide(6)" style="cursor: pointer">6</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_7" onclick="nolpifrm.showhide(7)" style="cursor: pointer">7</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_8" onclick="nolpifrm.showhide(8)" style="cursor: pointer">8</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_9" onclick="nolpifrm.showhide(9)" style="cursor: pointer">9</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="numq_10" onclick="nolpifrm.showhide(10)" style="cursor: pointer">10</span>';

	document.write("<span id=skin style='position:absolute;width:100px;height:20px;left:130px;top:560px;z-index:3'><A HREF=\"javascript: nolpifrm.showhide('66')\"><IMG SRC=\"asset/prev.gif\" BORDER=\"0\" ALT=\"ย้อนกลับ\"></A>&nbsp;&nbsp;&nbsp;<A HREF=\"javascript: nolpifrm.showhide('99')\"><IMG SRC=\"asset/go.gif\" BORDER=\"0\" ALT=\"ถัดไป\"></A></span><span id=skin style='position:absolute;width:500px;height:50px;left:240px;top:562px;z-index:3;color:#3366FF;font-size: 20'>ข้อที่"+txtq+"</span>");


	setSystemMsg();chgPage(scoid,pagenow);startCounter();
}
