function bf(tEXt)
{
 my_Dir=tEXt;
 SLIDE_pause();
 SLIDE_actual=tEXt-1;
 SLIDE_play();
}
var my_Dir;
var img = new Array();
var url = new Array();
var altTitle = new Array();
var panel = new Array();
var gap_image = '<img src="slides/transparent-1X1.gif" border="0" width="5" height="8"/>';
var bg_image = '<img src="slides/transparent-1X1.gif" border="0" width="13" height="9"/>';

img[1] = "slides/02Aug2009_Friendship_218X185.jpg";
url[1] = "/news/local/spirit-of-friendship-sparkles-in-city";
altTitle[1] = "Spirit of friendship sparkles in city"
img[2] = "slides/22Jun2009_chitralaya_218X185.png";
url[2] = "/news/local/four-buried-alive-in-multiplex-wall-collapse";
altTitle[2] = "Four buried alive in multiplex wall collapse"
img[3] = "slides/14Jun2009_Fisherman_218X185.png";
url[3] = "/news/local/fishermen-resume-operations-with-high-hopes-of-big-catch";
altTitle[3] = "Fishing vessels getting ready to venture into the sea off Visakhapatnam coast on Monday"
img[4] = "slides/03Apr09_sriramanavami_218x185.jpg";
url[4] = "/news/andhra/devotional-fervour-marks-sriramanavami-2";
altTitle[4] = "Devotional fervour marks Sriramanavami"
img[5] = "slides/26Jan09_teppa_tirunallu.jpg";
url[5] = "/news/andhra/teppa-tirunallu-at-simhachalam";
altTitle[5] = "Teppa Tirunallu at Simhachalam"
img[6] = "slides/slumdog.jpg";
url[6] = "/news/national/homecoming-premiere-for-slumdog";
altTitle[6] = "Homecoming premiere for Slumdog"



panel[1]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>";
panel[2]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>";
panel[3]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>";
panel[4]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>";
panel[5]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>";
panel[6]  = gap_image + "<a onclick='bf(\"1\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"2\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"3\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"4\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"5\")' onMouseover=\"this.style.cursor='hand'\" class='toc' >" + bg_image + "</a>" + gap_image + "<a onclick='bf(\"6\")' onMouseover=\"this.style.cursor='hand'\" class='toc selected' >" + bg_image + "</a>";


var my_images = new Array();
var SLIDE_load = new Array();
var SLIDE_status, SLIDE_timeout;
var SLIDE_actual = 1;
var SLIDE_speed = 5000;
var SLIDE_fade = 2;
for (my_Dir = 1; my_Dir <= img.length-1; my_Dir++)
{	my_images[my_Dir] = img[my_Dir];
  SLIDE_load[my_Dir] = new Image();
  SLIDE_load[my_Dir].src = my_images[my_Dir];
}
var SLIDE_count = my_images.length-1;
function SLIDE_start()
{
  document.images.SLIDE_picBox.src = SLIDE_load[SLIDE_actual].src;
  document.images.SLIDE_picBox.alt = altTitle[SLIDE_actual];
  document.images.SLIDE_picBox.title = altTitle[SLIDE_actual];
  document.getElementById("SLIDE_Url").href = url[SLIDE_actual];
  document.getElementById("SLIDE_counter").innerHTML= panel[SLIDE_actual];
  SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_play()
{
  SLIDE_actual++;
  SLIDE_slide();
  SLIDE_status = 'SLIDE_play';
  SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_pause()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_status = 'SLIDE_pause';
}
function SLIDE_back()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_actual--;
  SLIDE_slide();
  if (SLIDE_status != 'SLIDE_pause') SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_forward()
{
  clearTimeout(SLIDE_timeout);
  SLIDE_actual++;
  SLIDE_slide()
  if (SLIDE_status != 'SLIDE_pause') SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}
function SLIDE_slide()
{
  if (SLIDE_status != 'SLIDE_pause')
  {

  }
  if (SLIDE_actual > (SLIDE_count)) SLIDE_actual= 1;
  if (SLIDE_actual < 1) SLIDE_actual = SLIDE_count;
  if (document.all)
  {
    document.images.SLIDE_picBox.style.filter="blendTrans(duration=2)";
    document.images.SLIDE_picBox.style.filter="blendTrans(duration=SLIDE_fade)";
    document.images.SLIDE_picBox.filters.blendTrans.Apply();
  }
    document.images.SLIDE_picBox.src = SLIDE_load[SLIDE_actual].src;
    document.images.SLIDE_picBox.title = altTitle[SLIDE_actual];
    document.images.SLIDE_picBox.alt = altTitle[SLIDE_actual];
    document.getElementById("SLIDE_Url").href = url[SLIDE_actual];
  if (document.getElementById) document.getElementById("SLIDE_counter").innerHTML= panel[SLIDE_actual];
  if (document.all) document.images.SLIDE_picBox.filters.blendTrans.Play();
}
function SLIDE_speeds(SLIDE_valgt)
{
  SLIDE_speed = SLIDE_valgt.options[SLIDE_valgt.selectedIndex].value;
}
