function HD_changeItem(opcode)
{eval('elm = news_data');if(typeof(window['elm'])=="undefined")
return;HD_clearTimeout();HD_curIndex+=opcode;if(HD_curIndex>=elm.length)
HD_curIndex=0;else if(HD_curIndex<0)
HD_curIndex=elm.length-1;imageElement.src=""+elm[HD_curIndex]['image']+"";linkElement.href="news_detail.php?id="+elm[HD_curIndex]['id'];titleElement.innerHTML=elm[HD_curIndex]['title'];shortContentElement.innerHTML=elm[HD_curIndex]['short_content'];dateElement.innerHTML=elm[HD_curIndex]['category']+' - '+elm[HD_curIndex]['date'];if(elm[HD_curIndex]['comment']>0)
{commentElement.style.display='block';commentElement.innerHTML=elm[HD_curIndex]['comment'];}
else
commentElement.style.display='none';if(elm[HD_curIndex]['news_type']>0)
{newsTypeElement.style.display='block';newsTypeElement.src='./images/news_type_'+elm[HD_curIndex]['news_type']+'.png';}
else
newsTypeElement.style.display='none';document.getElementById("headline_item_"+HD_curIndex).className="item active";document.getElementById("HD_arrow").style.top=(57+(HD_curIndex*30))+"px";if(HD_prevItem!=-1)
{document.getElementById("headline_item_"+HD_prevItem).className="item";}
HD_prevItem=HD_curIndex;if(HD_isChangeable)
{}}
function HD_clearTimeout()
{if(HD_timeoutIndex!="")
{clearTimeout(HD_timeoutIndex);HD_timeoutIndex="";}}
function HD_jumpTo(idx)
{if(idx==HD_prevItem)
return;HD_isChangeable=0;HD_clearTimeout();HD_changeItem(idx-HD_prevItem);}
function HD_forwClick()
{HD_isChangeable=1;timeoutFunction="HD_changeItem(1)";if(HD_curIndex==-1)
{HD_changeItem(1);return;}
HD_clearTimeout();}
function HD_backClick()
{HD_isChangeable=1;HD_timeoutFunction="HD_changeItem(-1)";HD_changeItem(-1);}
function v_getOS(a)
{return v_iE?document.all[a].style:v_nS4?document.layers["v_container"].document.layers[a]:document.getElementById(a).style}
