function eposta_echo(idxEposta) {
	var emil = ""
	if (idxEposta==78)
	{		
		emil='&#111;&#109;'
		emil=('&#114;&#107;&#117;&#115;&#116;&#101;&#114;.&#99;' + emil)
		emil=('&#105;&#110;&#102;&#111;' + '&#64;' + emil)
		document.write(emil);
	}
	else if (idxEposta==77)
	{
		emil='&#111;&#109;'
		emil=('&#114;&#107;&#117;&#115;&#116;&#101;&#114;.&#99;' + emil)
		emil=('&#105;&#110;&#102;&#111;' + '&#64;' + emil)
		emil=('<span style="color: #002ab7;">' + emil + '</span>')
		
		document.write(emil);
	}
			
	return true;
}


///////////////////////////////////////////////////////////////////////////////
//
// NOTE!!
// I took most of the following code from Wikipedias (http://en.wikipedia.org) "wikibits.js".
// At the time I took the code I found no copyrights in "wikibits.js",
// so I assume that it was published under the same conditions as
// their "/skins-1.5/monobook/main.css" file -> 
// License: GPL (http://www.gnu.org/copyleft/gpl.html)
//
///////////////////////////////////////////////////////////////////////////////


// For accesskeys
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var is_safari = ((clientPC.indexOf('applewebkit')!=-1)
                && (clientPC.indexOf('spoofer')==-1));
var is_ff2_win = (clientPC.indexOf('firefox/2')!=-1 || clientPC.indexOf('minefield/3')!=-1) 
                && clientPC.indexOf('windows')!=-1;
var is_ff2_x11 = (clientPC.indexOf('firefox/2')!=-1 || clientPC.indexOf('minefield/3')!=-1)
                 && clientPC.indexOf('x11')!=-1;
if (clientPC.indexOf('opera') != -1) {
	var is_opera = true;
	var is_opera_preseven = (window.opera && !document.childNodes);
	var is_opera_seven = (window.opera && document.childNodes);
}



///////////////////////////////////////////////////
// Tooltips and access keys 
// Adds tooltips and access keys to links part 
// of our pages. Note that the desctiptions for
// the key-kombinations fot the access key is browser
// specific -> I cannot hardcode it into the html.
///////////////////////////////////////////////////
 ta = new Object();
 ta['title-mainpage']  = new Array('m','Home'); 
 ta['enter-essay']     = new Array('n','Enter Photo Essay'); 
 ta['nav-next']        = new Array('n','Next'); 
 ta['nav-prev']        = new Array('b','Previous'); 
 ta['nav-idx']         = new Array('i','Index'); 



///////////////////////////////////////////////////
// setAccessKeyAndTooltip()
// Set access key and tooltip for all elements 
// specified in ta.
///////////////////////////////////////////////////
function setAccessKeyAndTooltip() {
	if (typeof ta == "undefined" || !ta) {
		return;
	}
	
	var pref;
	if (is_safari || navigator.userAgent.toLowerCase().indexOf('mac') + 1
		|| navigator.userAgent.toLowerCase().indexOf('konqueror') + 1 ) {
		pref = 'control-';
	} else if (is_opera) {
		pref = 'shift-esc-';
	} else if (is_ff2_x11) {
		pref = 'ctrl-shift-';
	} else if (is_ff2_win) {
		pref = 'alt-shift-';    // -> FireFox
	} else {
		pref = 'alt-';          // -> IE
	}
	
	for (var id in ta) {
		var n = document.getElementById(id);
		if (n) 
		{
			var a = null;   // -> our <a> element
			var ak = '';    // -> title of our <a> element
			
			if (ta[id][0].length > 0) 
			{   // Are we putting accesskey in it ?
								
				// -> Is this object <a> object? 
				// -> If not assume it's the next child.
				if (n.nodeName.toLowerCase() == "a") {
					a = n;
				} else {
					a = n.childNodes[0];
				}
		 			
		 		// -> now set the access key of our <a> element 	
				if (a) {
					a.accessKey = ta[id][0];
					ak = ' ['+pref+ta[id][0]+']';
				}
			} else 
			{
			    // -> No access key
			    // -> Only set the tooltip
				// -> We don't care what type the object is when assigning tooltip
				a = n;
				ak = '';
			}

			if (a) {
				a.title = ta[id][1]+ak;
			}
		}
	}
}

///////////////////////////////////////////////////
//
// Handle PageLoad Event
//  -> call setAccessKeyAndTooltip
//
///////////////////////////////////////////////////

var donePageOnLoad;     // -> runPageOnload() already called?
function runPageOnload() {

    // don't run anything below this for non-dom browsers
	if (donePageOnLoad || !(document.getElementById && document.getElementsByTagName)) {
		return;
	}
	
	setAccessKeyAndTooltip();	
	donePageOnLoad = true;
}

window.onload = runPageOnload;

