/***************************************/
/*         Random Image Function       */
/*           © 2012 Ryan Nore          */
/***************************************/
function randompic(){
	var imgs=Array(
"http://www.egodialogues.com/wp-content/uploads/shortest-story.jpg",
"http://www.egodialogues.com/wp-content/uploads/stephen-gibb.jpg",
"http://www.egodialogues.com/wp-content/uploads/brian-despain1.jpg",
"http://www.egodialogues.com/wp-content/uploads/mike-capp1.jpg"

	);
	var locs=Array(
"http://www.egodialogues.com/2012/the-shortest-story-ever-told/",
"http://www.egodialogues.com/2012/dialogue-stephen-gibb/",
"http://www.egodialogues.com/2012/dialogue-brian-despain/",
"http://www.egodialogues.com/2012/dialogue-mike-capp/"
	);
	var wids=Array(
"500",
"500",
"500",
"500"
	);
	var hits=Array(
"600",
"600",
"600",
"600"
	);
	var alts=Array(
"What's the Shortest Story Ever Told?",
"A Dialogue with Stephen Gibb",
"A Dialogue with Brian Despain",
"A Dialogue with Mike Capp"
	);
	var til=Number(imgs.length);
	var toshow=Math.floor(Math.random()*til);
	var randlink='<a href="'+locs[toshow]+'"><img src="'+imgs[toshow]+'" width="'+wids[toshow]+'" height="'+hits[toshow]+'" alt="'+alts[toshow]+'" title="'+alts[toshow]+'" /></a>';
	document.write(randlink);
}

/***************************************/
/*  Private Info Construction Function */
/*           © 2011 Ryan Nore          */
/***************************************/
function BuildPrivate(encea,emname){
        var EncKeys=Array("","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",0,1,2,3,4,5,6,7,8,9,".","-","_","@",":");
        var EncPieces=encea.split(",");
        var i,Literal;
        Literal="";
        for(i=0;i<EncPieces.length;i++){
                Literal+=EncKeys[EncPieces[i]];
        }
        var mtlink='<a href="'+Literal+'">'+emname+'</a>';
        document.write(mtlink);
}
