 var inx=1;
 var entTitle=new Array();
 var entLink=new Array();
 var entExp=new Array();
 var entID=new Array(); 
 var entExp2=new Array();
 var temp;
 var indTmp;
 var clkFlag=0;

function tdmouseon(ind){
      clearTimeout(temp);
      var dynamicNews="<p><a href='"+entLink[ind]+"'>"+entTitle[ind]+"</a><br />"+entExp[ind]+"</p>";
      document.getElementById("msgTxt").innerHTML=dynamicNews;
 if (ind!=inx){
      document.getElementById(inx).style.border='1px solid #fff';
      document.getElementById(ind).style.border='1px solid #000';
      }
      inx=ind;
}

function tdmouseoff(){
show();
}

function getArt(ind){
      clearTimeout(temp);
       location.href=entLink[ind];
   }      


function show(){
      temp=setTimeout("show1()",2000);
   }


function show1(){
         temp=setTimeout("show1()",3000);
         inx=inx+1;
         clkFlag=0;
         if(inx>6) {inx=1;indTmp=6;}
         if(inx>1 && inx<7) {indTmp=inx-1;}
      var dynamicNews="<p><a href='"+entLink[inx]+"'>"+entTitle[inx]+"</a><br />"+entExp[inx]+"</p>";
      document.getElementById("msgTxt").innerHTML=dynamicNews;
      document.getElementById(indTmp).style.border='1px solid #fff';
      document.getElementById(inx).style.border='1px solid #000';
   }      


function next()
        { 
          if(inx<=5){
          clearTimeout(temp);
          show1();
        }
   }


function prev()
       {
         if(inx>=2){
         clearTimeout(temp);
            {inx=inx-2;}
      document.getElementById(inx+2).style.border='1px solid #fff';
            show1();
       }
   }   
 function play(file) { 
    var embed = document.createElement("embed"); 
    alert(embed);
    embed.setAttribute('src', "M1F1-Alaw-AFsp.wav"); 
    embed.setAttribute('hidden', true); 
    embed.setAttribute('autostart', true); 
    document.body.appendChild(embed); 
}  



