var scoid = '3934';
var pagenow = 1;
var numpage = 1;
var w = 98;
var h = 4;
var content_w = 1000;
var content_h = 600;
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 = 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:600px;left:0px;top:0px;z-index:4'><iframe name=\"nolpifrm\" id=\"nolpifrm\" src=\"about:blank\" width=\"1000\" height=\"600\" scrolling=\"no\" frameborder=\"0\"></iframe></span>");


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