function HD_2_changeItem(opcode)
{
	if (navigator.appName != "Netscape")
	{
		imageElement_2.style.filter = 'blendTrans(duration = 0)';
		imageElement_2.filters.blendTrans.Apply();
		imageElement_2.filters.blendTrans.Play();
		
		titleElement_2.style.filter = 'blendTrans(duration = 0)';
		titleElement_2.filters.blendTrans.Apply();
		titleElement_2.filters.blendTrans.Play();
	}
	
	HD_2_clearTimeout();

	HD_2_curIndex += opcode;
	
	if(HD_2_curIndex >= HD_2_imageList.length)
		HD_2_curIndex = 0;
	else if (HD_2_curIndex < 0)
		HD_2_curIndex = HD_2_imageList.length - 1;
	
	imageElement_2.src = "http://www.tekilhaber.com/image/haber/" + HD_2_imageList[HD_2_curIndex] + "";
	linkElement_2.href = HD_2_seoList[HD_2_curIndex];
	
	titleElement_2.innerHTML = HD_2_titleList[HD_2_curIndex];
	
	document.getElementById("news_arrow_2").style.backgroundPosition = (HD_2_curIndex * 32 ) + "px 0px";
	
	
	HD_2_prevItem = HD_2_curIndex;
	
	if(HD_2_isChangeable)
		HD_2_timeoutIndex = setTimeout(HD_2_timeoutFunction, 8000);
}

function HD_2_clearTimeout()
{
	if(HD_2_timeoutIndex != "")
	{
		clearTimeout(HD_2_timeoutIndex);
		HD_2_timeoutIndex = "";
	}
}

function HD_2_jumpTo(idx)
{
	if(idx == HD_2_prevItem)
		return;
	HD_2_isChangeable = 0;
	HD_2_clearTimeout();
	HD_2_changeItem(idx - HD_2_prevItem);
}

function HD_2_forwClick()
{
	HD_2_isChangeable = 1;
	
	timeoutFunction = "HD_2_changeItem(1)";
	
	if(HD_2_curIndex == -1)
	{
		HD_2_changeItem(1);
		return;
	}
	
	HD_2_clearTimeout();
	
	HD_2_timeoutIndex = setTimeout(timeoutFunction, 8000);
}

function HD_2_backClick()
{
	HD_2_isChangeable = 1;
	HD_2_timeoutFunction = "HD_2_changeItem(-1)";
	HD_2_changeItem(-1);
}

var HD_2_isChangeable = 1;
var HD_2_curIndex = -1;
var HD_2_prevItem = -1;
var HD_2_timeoutFunction = "HD_2_changeItem(1)";
var HD_2_timeoutIndex = "";
var HD_2_imageList = Array();
var HD_2_idList = Array();
var HD_2_titleList = Array();
var HD_2_seoList = Array();
var imageElement_2 = document.getElementById("news_image_2");
var linkElement_2 = document.getElementById("news_link_2");
var titleElement_2 = document.getElementById("news_title_2");