var scoid = '307';
var pagenow = 1;
var numpage = 3;
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:80px;left:0px;top:0px;z-index:1'><img src=\"asset/53_356_1.jpg\" border=0></span><span id=skin style='position:absolute;width:148px;height:450px;left:0px;top:80px;z-index:1'><img src=\"asset/53_357_1.jpg\" border=0></span><span id=skin style='position:absolute;width:700px;height:450px;left:148px;top:80px;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:152px;height:450px;left:848px;top:80px;z-index:1'><img src=\"asset/53_359_1.jpg\" border=0></span><span id=skin style='position:absolute;width:1000px;height:70px;left:0px;top:530px;z-index:1'><img src=\"asset/53_360_1.jpg\" border=0></span><span id=skin style='position:absolute;width:61px;height:80px;left:939px;top:0px;z-index:2'><img src=\"asset/53_361_4.jpg\" border=0 width=\"61\" height=\"80\" style=\"cursor:pointer\" alt=\"ออกจากบทเรียน\" onclick=\"goPage('exit')\" ></span><span id=skin style='position:absolute;width:148px;height:105px;left:0px;top:269px;z-index:2'><img src=\"asset/53_362_1.jpg\" border=0 width=\"148\" height=\"105\" style=\"cursor:pointer\" alt=\"ย้อนกลับ\" onclick=\"goPage('back')\" ></span><span id=skin style='position:absolute;width:152px;height:105px;left:848px;top:269px;z-index:2'><img src=\"asset/53_363_3.jpg\" border=0 width=\"152\" height=\"105\" style=\"cursor:pointer\" alt=\"หน้าถัดไป\" onclick=\"goPage('next')\" ></span><span id=skin style='position:absolute;width:20px;height:20px;left:715px;top:40px;z-index:3'><span id=\"SD1\"></span></span><span id=skin style='position:absolute;width:20px;height:20px;left:760px;top:40px;z-index:3'><script>document.write(numpage);</script></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:181px;height:28px;left:296px;top:572px;z-index:1'><img src=\"asset/53_2543_1.jpg\" border=0></span><span id=skin style='position:absolute;width:122px;height:28px;left:477px;top:572px;z-index:1'><img src=\"asset/53_2544_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/53_2545_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/53_2546_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/53_2547_17.jpg\" border=0 width=\"45\" height=\"28\" style=\"cursor:pointer\" alt=\"Play\" onclick=\"runSound('play')\" ></span>");


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