ms = function(){
	// make html
	var ml = function(d){
		var r = document.createElement("div");
		r.id = "rl";
		for(var i in d){
			var a = document.createElement("a");
			var t = document.createTextNode(d[i]);
			a.href    = "javascript:;";
			a.onclick =(function(i){ return function(){ _envFunc(i)} })(i);
			a.appendChild(t);
			r.appendChild(a);
		}
		return r;
	}
	// make array
	var ma = function(d,s,e,p,n){
		var ro = {};
		var cnt = 0;
		var rho = document.createElement("div");

		// create Prev Button ---------------------------------------------- */
		var rlp = document.createElement("div");
		rlp.id = "rlp";
		if(p != null){
			p += s;
			if( p >= 0){
				var po  = document.createElement("a");
				po.id   = "po";
				po.href = "javascript:my_ss.ss=" + p + ";ms();";
				po.appendChild(document.createTextNode("　　　　　　　　"));
				rlp.appendChild(po);
				rlp.style.background = "url(/images/about/next.gif) left no-repeat";
			}
		}

		// create Next Button ---------------------------------------------- */
		var rln = document.createElement("div");
		rln.id = "rln";
		if(n != null){
			n += s;
			if( n <= my_ss.c - (my_ss.sl -1)){
				var no  = document.createElement("a");
				no.id   = "no";
				no.href = "javascript:my_ss.ss=" + n + ";ms();";
				no.appendChild(document.createTextNode("　　　　　　　　"));
				rln.appendChild(no);
				rln.style.background = "url(/images/about/prev.gif) right no-repeat";
			}
		}

		// create Menu List ------------------------------------------------ */
		for(var i in d){
			if((cnt >= s) && (cnt <= e)){ ro[i] = d[i] }
			cnt++;
		}

		// set html
		rho.appendChild(rlp);
		rho.appendChild(ml(ro));
		rho.appendChild(rln);
		var cls = document.createElement("div");
		cls.appendChild(document.createTextNode(" "));
		cls.style.clear = "left";
		rho.appendChild(cls);
		return rho;
	}
	if(my_ss.ahide){
		var tflag = false;
		for(var tf in my_ss.d){
			tflag = true;
			break;
		}
		if( !tflag ){
			my_ss.tobj.style.display = "none";
			return false;
		}
	}
	my_ss.tobj.innerHTML = "";
	my_ss.tobj.appendChild(ma(
		my_ss.d,
		my_ss.ss,
		my_ss.ss + my_ss.sl - 1,
		-my_ss.stp,
		my_ss.stp
	));
}
var my_ss = {};

