// Scrambler

function encrypt(t,k){
	var y=0, i, t2="";
	for (i=0; i<t.length; i++){
		y=(y+1)%(k.length);
		z=(t.charCodeAt(i))^(k.charCodeAt(y))^i;
		t2+="/"+z;
	} 
	return t2;
}
function decrypt(t,k){
	var y=0, i, z, tsplit=(t.substr(1)).split("/"), t2="";
	for (i=0; i<tsplit.length;i++){
		y=(y+1)%(k.length);
		z=parseInt(tsplit[i])^(k.charCodeAt(y))^i;
		t2+=String.fromCharCode(z);  
	}
	return t2;
}
