var scoid = '889';
var pagenow = 1;
var numpage = 1;
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 = 1;
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:86px;left:0px;top:0px;z-index:1'><img src=\"asset/77_596_1.jpg\" border=0></span><span id=skin style='position:absolute;width:149px;height:450px;left:0px;top:86px;z-index:1'><img src=\"asset/77_597_1.jpg\" border=0></span><span id=skin style='position:absolute;width:700px;height:450px;left:149px;top:86px;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:151px;height:450px;left:849px;top:86px;z-index:1'><img src=\"asset/77_599_1.jpg\" border=0></span><span id=skin style='position:absolute;width:1000px;height:64px;left:0px;top:536px;z-index:1'><img src=\"asset/77_600_1.jpg\" border=0></span><span id=skin style='position:absolute;width:58px;height:86px;left:942px;top:0px;z-index:2'><img src=\"asset/77_601_4.jpg\" border=0 width=\"58\" height=\"86\" style=\"cursor:pointer\" alt=\"ออกจากบทเรียน\" onclick=\"goPage('exit')\" ></span><span id=skin style='position:absolute;width:149px;height:113px;left:0px;top:264px;z-index:2'><img src=\"asset/77_602_2.jpg\" border=0 width=\"149\" height=\"113\" style=\"cursor:pointer\" alt=\"ย้อนกลับ\" onclick=\"goPage('back')\" ></span><span id=skin style='position:absolute;width:151px;height:113px;left:849px;top:264px;z-index:2'><img src=\"asset/77_603_3.jpg\" border=0 width=\"151\" height=\"113\" style=\"cursor:pointer\" alt=\"หน้าถัดไป\" onclick=\"goPage('next')\" ></span><span id=skin style='position:absolute;width:20px;height:20px;left:770px;top:40px;z-index:3'><span id=\"SD1\"></span></span><span id=skin style='position:absolute;width:20px;height:20px;left:820px;top:40px;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/77_2662_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/77_2664_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/77_2665_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/77_2666_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/77_2667_17.jpg\" border=0 width=\"45\" height=\"28\" style=\"cursor:pointer\" alt=\"Play\" onclick=\"runSound('play')\" ></span>");


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