var clicked=""
var gtype=".jpg"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("button.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
document.write("<td><img src=\""+loc+"button_top.jpg\" alt=\"\" width=\"159\" height=\"20\"></td>");
tr(false);
writeButton(loc+"","../el/agion_oros.htm","button_b1",159,25,"ΑΡΧΙΚΗ","_self",0);
writeButton(loc+"","../el/map.htm","button_b3",159,25,"ΧΑΡΤΗΣ","_self",0);
writeButton(loc+"","../el/guide.htm","button_b2",159,25,"ΟΔΗΓΟΣ","_self",0);
writeButton(loc+"","../el/mount-athos.htm","button_b4",159,25,"ΑΘΩΣ","_self",0);
writeButton(loc+"","../el/monasteries.htm","button_b11",159,25,"ΜΟΝΑΣΤΗΡΙΑ","_self",0);
writeButton(loc+"","../el/agiooros.htm","button_info_gr",159,25,"ΠΛΗΡΟΦΟΡΙΕΣ","_self",0);
writeButton(loc+"","../el/photographs.htm","button_b14",159,25,"ΦΩΤΟΓΡΑΦΙΕΣ","_self",0);
writeButton(loc+"","../el/hotels.htm","button_b12",159,25,"ΞΕΝΟΔΟΧΕΙΑ","_self",0);
writeButton(loc+"","../el/bookstores.htm","button_b7",159,25,"ΒΙΒΛΙΟΠΩΛΕΙΑ","_self",0);
writeButton(loc+"","../el/order_form.htm","button_b8",159,25,"ΠΑΡΑΓΓΕΛΙΑ","_self",0);
writeButton(loc+"","../el/books.htm","button_books",159,25,"ΒΙΒΛΙΑ","_self",0);
writeButton(loc+"","../el/ieroi_logoi.htm","button_b13",159,25,"ΙΕΡΟΙ ΛΟΓΟΙ","_self",0);
writeButton(loc+"","../el/links.htm","button_links",159,25,"ΣΥΝΔΕΣΕΙΣ","_self",0);
writeButton(loc+"","../el/contact.htm","button_b9",159,25,"E-MAIL","_self",0);
writeButton(loc+"","../index.html","button_b10",159,25,"ΕΙΣΑΓΩΓΙΚΗ","_self",0);
tr(true);
document.write("<td><img src=\"../images/"+loc+"button_bottom.jpg\" alt=\"\" width=\"159\" height=\"20\"></td>");
document.write("</tr></table>")
document.write("<table border='0' cellspacing='0' cellpadding='0'><tr>");
document.write("<td>");
document.write("<a href='../eisag.htm' class='athos' ><img src='../athos-logo.jpg' width='90' height='61' border='0' alt='Δείτε με φωτογραφίες το Αγιο Ορος'></a>");
document.write("</td>");
document.write("</tr></table>")
loc="";

function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
