<!-- 
var Dethcuts = {

	id : "shortcuts" ,
	rawCuts : "" ,
	extantCuts : "" ,
	name : "" ,
	source : "" ,
	cutsArray : []

}
Dethcuts.add = function(name,source) {
 if (document.layers || document.all || document.getElementById) {
	this.rawCuts = unescape(document.cookie);
	if (this.rawCuts.indexOf("dethcuts")>-1) {
		var start = this.rawCuts.indexOf("dethcuts")+9;
		var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
		this.extantCuts = this.rawCuts.substring(start,end);
		if (this.extantCuts.indexOf(name)>-1) return;
		else {
			document.cookie = "dethcuts=" + this.extantCuts + "#" + name + "@" + source + "; expires=Tue, 28 Dec 2010 00:00:00; path=/;"
		}
	} else {
		document.cookie = "dethcuts=" + name + "@" + source + "; expires=Tue, 28 Dec 2070 00:00:00; path=/;"
	}
	this.compile();
 }
}
//Recoger valores
Dethcuts.valores = function() {
this.rawCuts = unescape(document.cookie);
	if (this.rawCuts.indexOf("dethcuts")>-1) {
		var start = this.rawCuts.indexOf("dethcuts")+9;
		var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
		this.extantCuts = this.rawCuts.substring(start,end)
		this.cutsArray = this.extantCuts.split("#")
		var temp = "";
		for (i=0;i<this.cutsArray.length;i++) {
			var name = this.cutsArray[i].substring(0,this.cutsArray[i].indexOf("@"))
			temp +=  "##" + name;
		} 
		return temp;
}
}
Dethcuts.compile = function() {
  if (document.layers || document.all || document.getElementById) {
	this.rawCuts = unescape(document.cookie);
	if (this.rawCuts.indexOf("dethcuts")>-1) {
		var start = this.rawCuts.indexOf("dethcuts")+9;
		var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
		this.extantCuts = this.rawCuts.substring(start,end)
		this.cutsArray = this.extantCuts.split("#")
		var temp = ""
		for (i=0;i<this.cutsArray.length;i++) {
			var name = this.cutsArray[i].substring(0,this.cutsArray[i].indexOf("@"))
			var src = this.cutsArray[i].substring(this.cutsArray[i].indexOf("@")+1,this.cutsArray[i].length)
			temp += "<img src='images/inici_13.gif' width='9' height='5' hspace='3' align='absmiddle'><a href='" + src + "' class='preferencias'>" + name + "</a><br>";
		}
		this.write(temp);
	} else return
}
}

Dethcuts.write = function(str) {
	if (document.layers) {
		document.layers[this.id].document.open();
		document.layers[this.id].document.write(str);
		document.layers[this.id].document.close();
	} else {
		document.getElementById(this.id).innerHTML = str
	}
}
Dethcuts.clear = function() {
	document.cookie = "dethcuts=; expires=Thu, 01 Jan 1970 00:00:01; path=/;";
	location.reload();
}

function init() {
	Dethcuts.compile();
}
//-->
