


//----------------------------------------------------------------
function openWindow(theURL,winName,features)
{ 
  window.open(theURL,winName,features);
}
//----------------------------------------------------------------
function date_lastModified()
{
   var lmd = new Date(document.lastModified);
   var s   = "לא ידוע";
   var d1;

   // check if we have a valid date
   // before proceeding
   if (0 != (d1=Date.parse(lmd)))
   {
      var d  = lmd.getDate();
      var m  = lmd.getMonth() + 1;
      var y  = lmd.getYear();
      var hh = lmd.getHours();
      var mm = lmd.getMinutes();
  
      s = "";
      s += (d < 10) ? "0" + d : d;
      s += "/";
      s += (m < 10) ? "0" + m : m;
      s += "/";

      if (y > 2000)
      {
         y = y - 2000;
      }
      else
      if (y > 100)
      {
         y = y - 100;
      }
      y = y + 2000;
      //s += (y < 10) ? "0" + y : y;
      s += y;
      s += " ";
      s += (hh < 10) ? "0" + hh : hh;
      s += ":";
      s += (mm < 10) ? "0" + mm : mm;

   }

   return s;
}
//----------------------------------------------------------------

//var n = navigator;
//var ua = ' ' + n.userAgent.toLowerCase();
//var is_ie = ua.indexOf('msie') > 0;
//if (is_ie)
//{
//  document.write('<div style="position:absolute; left:2; top:0;">');
//  document.write('<img src="../images/topleft2.gif">');
//  document.write('</div>');
//}

var reldir = "";

if (isRoot())
//if (document.body.id == "root")
{
   reldir = "";  
}
else
{
   reldir = "../";  
}

//document.write("*" + reldir + "*");
//document.write('<br>');
//document.write(isRoot());
//document.write('<br>');

document.write('<p align="right" dir="rtl">');
//document.write('<a href="'+reldir+'index.html">');
//document.write('<font size="2" face="Arial (Hebrew)">מסך פתיחה</font>');
//document.write('</a>');
//document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
document.write('<a href="'+reldir+'index.html">');
document.write('<font size="2" face="Arial (Hebrew)">דף ראשי</font>');
document.write('</a>');
//document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
//document.write('<a href="'+reldir+'main/about.html">');
//document.write('<font size="2" face="Arial (Hebrew)">מי אני</font>');
document.write('</a>');
document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
//document.write('<a href="http://www.susita.com/service/freeguestbook/book.asp?id=4491" target="_blank">');
//document.write('<font size="2" face="Arial (Hebrew)">צפה בספר האורחים</font>');
//document.write('</a>');
//document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
//document.write('<a href="http://www.susita.com/service/freeguestbook/sign.asp?id=4491" target="_blank">');
//document.write('<font size="2" face="Arial (Hebrew)">חתום בספר האורחים</font>');
//document.write('</a>');
//document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
//document.write('<a href="mailto:halemo@actcom.co.il?subject=halemo.net" target="_blank">');
document.write('<a href="'+reldir+'main/mail.html">');
document.write('<font size="2" face="Arial (Hebrew)">שלח לי מכתב</font>');
document.write('</a>');



if (document.location.href.indexOf("http://") >= 0)
{
   //s = document.location.href;
   //s.replace("http://halemo.net");
   //document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
   //document.write('<a href="file://g:/data/halemo.com/index.html">');
   //document.write('<font size="2" face="Arial (Hebrew)">דיסק מקומי</font>');
   //document.write('</a>');
}
else
{
   //s = document.location.href;
   //s.replace("g:\\data\halemo.com\","http://halemo.net/");

   document.write('<font size="2" face="Arial (Hebrew)"> | </font>');
   document.write('<a href="http://halemo.net">');
   //document.write('<a href="');
   //document.write(s);
   //document.write('">');
   document.write('<font size="2" face="Arial (Hebrew)">אתר אינטרנט</font>');
   document.write('</a>');
}



document.write('<font size="2" face="Arial (Hebrew)">');
document.write('<br>');
document.write('</font>');

document.write('<font color="#969696" size="2" face="Arial (Hebrew)">הדף עודכן לאחרונה בתאריך </font>');
document.write('<font color="#969696" size="2" face="Arial (Hebrew)">');
document.write(date_lastModified());
document.write('</font>');
document.write('</p>');




//if (document.referrer.indexOf("ynet.co.il") >= 0)
//if (window == top)
//   top.location.href="http://halemo.net/ynet.html";

