var scoid = '430';
var pagenow = 1;
var numpage = 19;
var w = 98;
var h = 4;
var content_w = 700;
var content_h = 450;
var topic = 'เที่ยวดอนหอยหลอด';
var nolp_lesson_mode = 'normal';
var display = true;
var numtest = 0;
var offline = false;
usescorm = (offline)?false:true;
var wm_media = 6;
var listpage_w = 113;
var listpage_h = 28;

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:93px;left:0px;top:0px;z-index:1'><img src=\"asset/116_987_1.jpg\" border=0></span><span id=skin style='position:absolute;width:152px;height:450px;left:0px;top:93px;z-index:1'><img src=\"asset/116_988_1.jpg\" border=0></span><span id=skin style='position:absolute;width:700px;height:450px;left:152px;top:93px;z-index:4'><iframe name=\"nolpifrm\" id=\"nolpifrm\" src=\"about:blank\" width=\"700\" height=\"450\" scrolling=\"auto\" frameborder=\"0\"></iframe></span><span id=skin style='position:absolute;width:148px;height:450px;left:852px;top:93px;z-index:1'><img src=\"asset/116_990_1.jpg\" border=0></span><span id=skin style='position:absolute;width:1000px;height:57px;left:0px;top:543px;z-index:1'><img src=\"asset/116_991_1.jpg\" border=0></span><span id=skin style='position:absolute;width:63px;height:93px;left:937px;top:0px;z-index:2'><img src=\"asset/116_992_4.jpg\" border=0 width=\"63\" height=\"93\" style=\"cursor:pointer\" alt=\"ออกจากบทเรียน\" onclick=\"goPage('exit')\" ></span><span id=skin style='position:absolute;width:152px;height:117px;left:0px;top:264px;z-index:2'><img src=\"asset/116_993_2.jpg\" border=0 width=\"152\" height=\"117\" style=\"cursor:pointer\" alt=\"ย้อนกลับ\" onclick=\"goPage('back')\" ></span><span id=skin style='position:absolute;width:148px;height:117px;left:852px;top:264px;z-index:2'><img src=\"asset/116_994_3.jpg\" border=0 width=\"148\" height=\"117\" style=\"cursor:pointer\" alt=\"หน้าถัดไป\" onclick=\"goPage('next')\" ></span><span id=skin style='position:absolute;width:20px;height:20px;left:725px;top:47px;z-index:3'><span id=\"SD1\"></span></span><span id=skin style='position:absolute;width:20px;height:20px;left:780px;top:47px;z-index:3'><script>document.write(numpage);</script></span><span id=skin style='position:absolute;width:181px;height:28px;left:296px;top:572px;z-index:1'><img src=\"asset/116_2253_1.jpg\" border=0></span><span id=skin style='position:absolute;width:113px;height:28px;left:364px;top:576px;z-index:3'><span id=\"LP\"></span></span><span id=skin style='position:absolute;width:122px;height:28px;left:477px;top:572px;z-index:1'><img src=\"asset/116_2255_1.jpg\" border=0></span><span id=skin style='position:absolute;width:29px;height:28px;left:599px;top:572px;z-index:2'><img src=\"asset/116_2256_19.jpg\" border=0 width=\"29\" height=\"28\" style=\"cursor:pointer\" alt=\"Stop\" onclick=\"runSound('stop')\" ></span><span id=skin style='position:absolute;width:31px;height:28px;left:628px;top:572px;z-index:2'><img src=\"asset/116_2257_18.jpg\" border=0 width=\"31\" height=\"28\" style=\"cursor:pointer\" alt=\"Pause\" onclick=\"runSound('pause')\" ></span><span id=skin style='position:absolute;width:45px;height:28px;left:659px;top:572px;z-index:2'><img src=\"asset/116_2258_17.jpg\" border=0 width=\"45\" height=\"28\" style=\"cursor:pointer\" alt=\"Play\" onclick=\"runSound('play')\" ></span>");


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