function Hashtable() {
	this._hash = new Object();
	this.add = function(key,value) {
		if(typeof(key)!="undefined") {
			if(this.contains(key)==false) {
				this._hash[key]=typeof(value)=="undefined"?null:value;
				return true;
			} else {
				return false;
			}
		} else {
			return false;
		}
	}
	this.remove = function(key){delete this._hash[key];}
	this.count = function(){var i=0;for(var k in this._hash){i++;} return i;}
	this.items = function(key){return this._hash[key];}
	this.contains = function(key){ return typeof(this._hash[key])!="undefined";}
	this.clear = function(){for(var k in this._hash){delete this._hash[k];}}
}

function show_near_game(curid, preGame, nextGame) {
	var curNo = -1;
	var idLength = ids.length-1;
//	var articleUrl = "http://flash.yule.sohu.com/comic/show_";
	var articleUrl = "/dm/comic/";
	for (var i=0; i<idLength;i++) {
		if (ids[i]==curid) curNo = i;
	}
	var pre = curNo-1;
	if (pre<0) pre = idLength-1;
	if (pre<0) pre = 0;
	var nextOne = curNo+1;
	if (nextOne>idLength-1) nextOne= 0;
	var preUrl = articleUrl + ("0" + ids[pre]).substring(ids[pre].length-1, ids[pre].length+1) + "/";
	var nextUrl = articleUrl + ("0" + ids[nextOne]).substring(ids[nextOne].length-1, ids[nextOne].length+1) + "/";
	try {
		preGame.innerHTML = titles[pre];
		preGame.href=preUrl + ids[pre] + ".html";
		nextGame.innerHTML = titles[nextOne];
		nextGame.href=nextUrl + ids[nextOne] + ".html";
	} catch (E) {
	}
}

function copyurl() {
	var url = window.clipboardData.setData("text", window.location.href);
	alert('µØÖ·ÒÑ±£´æµ½¼ôÌù°å');
}
