var text = "Çok çalışıyor ama spor yapamıyor musunuz?<br>Streslisiniz ve uykunuzu tam alamıyor musunuz?<br>Vücudunuzda çeşitli ağrılar mı var?<br>Yaşlanmanızın gecikmesini mi istiyorsunuz?<hr>HAIZEL TV KOLTUKLARI ile siz bu rahatlığı hakediyorsunuz!";
var delay = 40;
var currentChar = 1;
var destination = "[not defined]";

function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)
    {
      dest.innerHTML=text.substr(0, currentChar);
      currentChar++
      if (currentChar>text.length)
      {
        currentChar=1;
        setTimeout("type()", 5000);
      }
      else
      {
		if (text.substr(currentChar-2, 4) == '<br>' || text.substr(currentChar-2, 4) == '<hr>')
		{
			setTimeout("type()", 1000);
		}
		else
		{
			setTimeout("type()", delay);
		}
      }
    }
  }
}
function startTyping(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}

function FiyatRenklendir()
{
	if (document.getElementById('aFiyat').style.color == '#fff')
	{
		document.getElementById('aFiyat').style.color = '#fc0';
	}
	else
	{
		document.getElementById('aFiyat').style.color = '#fff';
	}
	window.setTimeout('FiyatRenklendir()', 400);
}

function ManageTabPanelDisplay()
{
	if (arguments.length < 1)
	{
		return;
	}
	for (var i = 0; i < idlist.length; i++)
	{
		var block = false;
		for (var ii = 0; ii < arguments.length; ii++)
		{
			if (idlist[i] == arguments[ii])
			{
				block = true;
				break;
			}
		}
		if (block)
		{
			document.getElementById(idlist[i]).style.display = "block";
		}
		else
		{
			document.getElementById(idlist[i]).style.display = "none";
		}
	}
}
