// Ανάλυση οθόνης
var w;
	w = screen.width;
	
// Επιλογή οθόνης
	function screen_resolution() {
	
		if ((w<=800)) { 
				document.writeln("<LINK REL='stylesheet' type='text/css' HREF='800x600_ie.css'>");
			 	document.writeln("<link href='800_tree1.css' rel='stylesheet' type='text/css'>");			 	
			 	document.writeln("<script language='JavaScript' src='800_tree1_format.js'></script>");
		} else { 
				document.writeln("<LINK REL='stylesheet' type='text/css' HREF='1024x768_ie.css'>");	
			 	document.writeln("<link href='1024_tree1.css' rel='stylesheet' type='text/css'>");			 	
			 	document.writeln("<script language='JavaScript' src='1024_tree1_format.js'></script>");
		}
	}

// Preloading Images
function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) {
		document.preloadArray = new Array();
	}
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) 
		if (imgFiles[j].charAt(0)!="#"){
      		preloadArray[i] = new Image;
     		preloadArray[i++].src = imgFiles[j];
  		} 
	}
}
	
/*
// Δημιουργία μενου επιλογων
	function navigation(pagetitle,destinationurl,classtitle,toggle) {
		document.write("<tr><td colspan=2 bgcolor=\"#ffffff\"><img src=\"images/dotclear.gif\" width=1 height=2 border=0><br></td></tr>\r");
		document.write("<tr>\r");
		document.write("<td class=\"");
		if (classtitle == "menu2") {
			switch (toggle) {
				case 0:
					document.write("menu2");
					break;
				case 1:
					document.write("menu2_on");
					break;
			} 
		} else {
				document.write(classtitle);
		}
		document.write("\"><a href=\"" + destinationurl + "\" target=\"main\"><img src=\"");
		switch (classtitle) {
				case "menu1":
					if (toggle == 1) {
						document.write("images/arrow_opened.gif");
					} else {
						document.write("images/arrow_closed.gif");
					}
					break;
				case "menu2":
					document.write("images/dotclear.gif");
					break;
			}
		document.write("\" width=18 height=20 border=0></a></td>\r");
		document.write("<td width=\"100%\" class=\"");
		if (classtitle == "menu2") {
			switch (toggle) {
				case 0:
					document.write("menu2");
					break;
				case 1:
					document.write("menu2_on");
					break;
			} 
		} else {
				document.write(classtitle);
		}
		document.write("\"><a href=\"" + destinationurl + "\" target=\"main\" class=\"" + classtitle + "_a" + "\">" + pagetitle + "</a></td>\r")
		document.write("</tr>");
	}
	
// Διαστάσεις Table κύριας σελίδας
		function tabledim() {
			switch (w) {
				case 1024:
					document.write("<td><img src=\"images/dotclear.gif\" width=60 height=1 border=0></td>");
					document.write("<td><img src=\"images/dotclear.gif\" width=637 height=1 border=0></td>");
					document.write("<td width=\"100%\"><img src=\"images/dotclear.gif\" width=50 height=1 border=0></td>");
					break;
				case 800:
					document.write("");
					break;
			} 
		}
*/


function document_onkeydown_menu() {
     //this function will run from the menu frame (so far)
	    //press ctrl+Μ to redirect to the faros tyflvn web site
	    if (window.event.ctrlKey==true && window.event.keyCode==77){
	       window.open("/faros/index.asp","_top","toolbar=no,location=no,menubar=no,resizable=yes")
	    }
}


