function popimg(url, title, width, height)
{
	str="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"><html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">\n<title>Antil-Travel.com</title>\n</head>\n<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n<img src='"+url+"' alt='"+title+"'>\n</body>\n</html>";
	f_win = window.open(url ,"BigImage" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=no,resizable=yes,menubar=no,status=no,directories=no,location=no');
	f_win.document.writeln(str);
	f_win.focus();
	f_win.document.close();
}

function popup(url, title, width, height)
{
	f_win = window.open(url ,"" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no');
	f_win.focus();
}



// Μενώ
var timer=null;

function Turn(id, mode)
{	  
  if(mode) {
	if (timer) window.clearInterval(timer);
	hideSubmenus(id);
  	On(id);
  } else {
  	eval("timer = window.setInterval(\"Off(" + id + ");\",300)");
  }

}

function On(id)
{
	if(document.getElementById('smenu'+id).style.display != "block") {
		document.getElementById('smenu'+id).style.display = "block";
		document.getElementById('smenu'+id).style.visibility = "visible";
	}
}

function Off(id)
{
	document.getElementById('smenu'+id).style.display = "none";
	document.getElementById('smenu'+id).style.visibility = "hidden";
}

function hideSubmenus(id) {
	var i =1;
	while (document.getElementById('smenu'+i)) {
		if (i != id) {
			document.getElementById('smenu'+i).style.display = "none";
			document.getElementById('smenu'+i).style.visibility = "hidden";
		}
		i++;
	}
}
// Μενώ


function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;

  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;

  return true;
}