// JavaScript Document
function parfumhoroszkopvillog(div_id)
{
	egyszer(div_id);
}

function egyszer(id)
{
/*	document.getElementById(id).style.color = "#ffb156";
	document.getElementById(id).innerHTML = "Parfüm"; */
ojjektum = (document.getElementById) ? document.getElementById(id) : eval("document.all['id']");
	ojjektum.style.color = "#ffb156";
	ojjektum.innerHTML = "Parfüm";
	
	setTimeout("ketszer('"+id+"')", 1000);
}

function ketszer(id)
{
  ojjektum = (document.getElementById) ? document.getElementById(id) : eval("document.all['id']");
/*	document.getElementById(id).style.color = "#ff4800";
	document.getElementById(id).innerHTML = "Parfümhoroszkóp"; */
	ojjektum.style.color = "#ff4800";
	ojjektum.innerHTML = "Parfümnaptár";
	setTimeout("egyszer('"+id+"')", 1000);
}

var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + hours//+ ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
//timeValue += (hours >= 12) ? " P.M." : " A.M."

document.getElementById("clock").innerHTML = 'A pontos idõ: <b>' + timeValue + '</b>';
//document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}

function VT_GetObj(obj)
  {

  return ((document.getElementById) ? document.getElementById(obj) : eval("document.all[" + obj + "]"));
  }

function Buborek_position(image, bubble_id)
{
  i = VT_GetObj(image);
  b = VT_GetObj(bubble_id);

  var v_left = i.offsetLeft + 30;
  b.style.left = v_left + "px";

  var v_top = i.offsetTop - b.offsetHeight + 80;
  b.style.top= v_top + "px";
}

function Buborek_clear_last(newbubi)
{
  var l = VT_GetObj(last);

  if (last!=newbubi)
  {
    if (last)
    {
      l.style.visibility = "hidden";
    }

    last = newbubi;
  }
}

var last = '';

function addBookmark(title,url) 
{
  if (window.sidebar)
  { 
    window.sidebar.addPanel(title, url,""); 
  }
  else if( document.all ) 
  {
    window.external.AddFavorite( url, title);
  } 
  else if( window.opera && window.print )
  {
   return true;
  }
}

function ShowDiv(id)
{
  VT_GetObj('arlista').style.display = 'none';
  VT_GetObj('evlista').style.display = 'none';
  VT_GetObj(id).style.display = 'block';
}

function Villogas(obj,onclassname,offclassname,sebesseg)
{
  if (villog[obj])
  {
    VT_GetObj(obj).className = offclassname;
    villog[obj] = false;
  }
  else
  {
    VT_GetObj(obj).className = onclassname;
    villog[obj] = true;
  }  
  setTimeout("Villogas('" + obj + "', '" + onclassname + "', '" + offclassname + "', '" + sebesseg + "')",sebesseg);
}

var villog = new Array();

function ShowHideBlock(id)
{
  ojjektum = VT_GetObj(id);
  if (divallapotok[id] == 'show')
  {
    ojjektum.style.display = 'none';
    divallapotok[id] = '';
  }
  else
  {
    ojjektum.style.display = 'block';
    divallapotok[id] = 'show';    
  }
}   

var divallapotok = new Array();
