var CIPHER={
	decrypt:function(strIn){
		var strOut="";
		for(var i=1;i<strIn.length;i++){
			strOut+=CIPHER.shiftChar(strIn.charAt(i),((i % 25)*-1));
			}
		hexRegEx=/\.([A-Za-z0-9]{2})/;
		foundHex=hexRegEx.exec(strOut);
		while(foundHex!=null){
			if(foundHex[1]=="2E"){
				strOut=strOut.replace(foundHex[0],"%%dotx%%");
				}
			else{ 
				strOut=strOut.replace(foundHex[0],String.fromCharCode(parseInt(foundHex[1],16)));
				}
			foundHex=hexRegEx.exec(strOut);
			}	
		strOut=strOut.replace(/%%dotx%%/g,".");
		return strOut;
		},
	shiftChar:function(charIn,count){
		var decCode=charIn.charCodeAt(0);
		var resCode=decCode+count;
		if(decCode>=65&&decCode<=90){
			if(resCode>90)resCode=resCode-26;
			if(resCode<65)resCode=resCode+26;
			}
		else if(decCode>=97&&decCode<=122){
			if(resCode>122)resCode=resCode-26;
			if(resCode<97)resCode=resCode+26;
			}
		else resCode=decCode;
		return String.fromCharCode(resCode);
		},
	init:function(){
		cipherObject=$.getByClass("cipher");
		for(cipherCounter=0;cipherCounter<cipherObject.length;cipherCounter++){
			cipherObject[cipherCounter].innerHTML=CIPHER.decrypt(cipherObject[cipherCounter].id);
			}
		}
	}

$.addOnload(CIPHER.init);
