
// --- böngésző azonosítása ---------------------------------------------------
function navigator_ID()
{
   switch (navigator.appName)
   {
      case "Netscape":
         return "NS";
         break;
      case "Microsoft Internet Explorer":
         return "IE";
         break;
      default:
         return "E";
   }
}

// --- böngésző kiírása -------------------------------------------------------
function navigator_kiir()
{
   switch (navigator.appName)
   {
      case "Netscape":
         document.write("<span class='vastag'>Netscape Navigator</span>");
         break;
      case "Microsoft Internet Explorer":
         document.write("<span class='vastag'>Internet Explorer</span>");
         break;
      default:
         document.write(" számomra ismeretlen");
   }
}


// --- a felbontás kiírása ----------------------------------------------------
function felbontas_kiir()
{
   document.write("<span class='vastag'>" + screen.width + "x" + screen.height + "</span>");
}

// --- státuszsorba írás ------------------------------------------------------
function statusz()
{
   defaultStatus = "       Széll Szabolcs honlapja!  --------  Remélem hasznos és érdekes dolgokat találsz itt!";
}

// --- idő kiírása ------------------------------------------------------------
var idoStr, datumStr;

function ido()
{
   most = new Date();
   
   ora  = most.getHours();
   perc = most.getMinutes();
   mp   = most.getSeconds();
  
   idoStr  = ora;
   idoStr += ((perc < 10) ? ":0" : ":") + perc;
   idoStr += ((mp < 10 ) ? ":0" : ":") + mp; 
  
   document.digiora.ido.value = idoStr;
   document.digiora2 = idoStr;
   setTimeout("ido()",1000);
}

// --- popup ablakok ----------------------------------------------------------
function popup(file, ID, w, h)
{
   ablak = open(file, ID, "width=" + w + ", height=" + h + ", status=no, menubar=no");
} 

function popup2(img_url, w, h, n)
{
	var winL, winT;
	winL = (screen.width-w)/2;
	winH = (screen.height-h)/2 - 20;
	popWin = window.open("", "ImageWin", "width=" + w + ", height=" + h + ", resizable=0, left=" + winL + ", top=" + winH);
	popWin.document.write("<html> <head> <title>" + img_url + "</title></head><body leftmargin='0' topmargin='15' bgcolor=#000000 OnClick=self.close()>");
	popWin.document.write("<center><img src=" + img_url + " alt=" + img_url + "></center>");
	popWin.document.write("</body> </html>");
	popWin.document.close();

}

// --- barátok kirakása -------------------------------------------------------
function _win(nev, text)
{
   document.images["baratok"].src = "baratok/" + nev + ".jpg";
   document.images["baratok"].alt = text;
}

// --- a fotók kirakása -------------------------------------------------------
function ph(nev, text)
{
   document.images["photo"].src = "fotok/" + nev + ".jpg";
   document.images["photo"].alt = text;
}

// --- a zene lejátszása ------------------------------------------------------
function zene(zenefile)
{
   if (top.frames[0].document.frm.chk.checked)
   { 
   document.writeln("<bgsound src=zene/" + zenefile + ">")
   }
}

