<!---------------------------------------------------------------------Current Issue Home Page Chunk---------------------------------------------------------------->
var p = 10;
var cnt = 0;
var s=0;
var t=0;
var h;
var arrlength = new Array();
arrlength[0] = 'images/Nissan-Micra.jpg';
arrlength[1] = 'images/Jaguar-XF.jpg';
arrlength[2] = 'images/Jaguar-xk.jpg';
arrlength[3] = 'images/Jaguar-xfr.jpg';
arrlength[4] = 'images/TVS-RTR.jpg';

arrlength[5] = 'images/Tyre-guide.jpg';
arrlength[6] = 'images/D-segment-shootout.jpg';
arrlength[7] = 'images/Nissan-Qazana.jpg';
arrlength[8] = 'images/Audi-Q5.jpg';
arrlength[9] = 'images/Cleaning-the-car.jpg';



var arrtext = new Array();
arrtext[0] = "The inevitable has happened. Japanese giant will join the hatchback market in 2010. <em>Auto Bild</em> India brings you the details";
arrtext[1] = "Jaguar XF is the most powerful marquee's most powerful oil-burner. But do impressive figures deliver an outstanding drive?";
arrtext[2] = "Jaguar has plonked a new 5-litre supercharged V8 under the hood of the already fabulous XK.";
arrtext[3] = "With 503bhp the XFR is Coventry's fastest ever saloon. <em>Auto Bild</em> India drives it first.";
arrtext[4] = "The TVS RTR 180 is a serious performer as it accelerates with vigour and the drivability through the gears leaves little to be desired.";

arrtext[5] = "Everything you wanted to know about tyres. A complete guide on tyre maintenance, alloy wheels, different types of tyres etc. <em>Auto Bild</em> India brings you the lowdown.";
arrtext[6] = "The new Skoda Laura in petrol guise takes on its cousin Volkswagen Jetta and the Japanese tyrants Toyota Altis and Honda Civic.";
arrtext[7] = "Nissan shrinks to a smaller 4x4 format. Result? The Qazana. An <em>Auto Bild</em> India exclusive.";
arrtext[8] = "Audi is now set to launch the Q5 which will come with a 2-litre TFSI petrol engine and a 3-litre V4 TDI diesel.";
arrtext[9] = "<em>Auto Bild</em> India tells you all about how the car can be made sparkling clean without burning a hole in your wallet.";


var headtext = new Array();
headtext[0] = "Nissan Micra at your service";
headtext[1] = "Top cat on a diesel diet";
headtext[2] = "Racy Jaguar";
headtext[3] = "Wild child";
headtext[4] = "White devil";

headtext[5] = "Comprehensive tyre guide";
headtext[6] = "D-company just got bigger";
headtext[7] = "Qazana: the micro-suv";
headtext[8] = "Audi Q5 round the corner";
headtext[9] = "Turn your car spanking new for free";



var numbertext = new Array();
numbertext[0] =  "1 of 10";
numbertext[1] =  "2 of 10";
numbertext[2] = "3 of 10";
numbertext[3] = "4 of 10";
numbertext[4] = "5 of 10";
numbertext[5] =  "6 of 10";
numbertext[6] =  "7 of 10";

numbertext[7] = "8 of 10";
numbertext[8] = "9 of 10";
numbertext[9] = "10 of 10";






var q = p*3;

function vshow(c)
{
if(c=='n')
  
 {
	 s=s%p;
 cnt=cnt+1;
 s=cnt;
 t=cnt*3;
s=s%p;
for(cnt=s; cnt<=s && cnt<p; cnt++)
 {
  document.getElementById("head1").innerHTML=headtext[cnt%p];
 document.getElementById("text1").innerHTML=arrtext[cnt%p];
  document.getElementById("numbertext").innerHTML=numbertext[cnt%p];
 document.i1.src=arrlength[cnt%p];
 t=t+3;
 t=t%q;
break;
}
 } 
  
 else 
{
s=s%p;
s=cnt-1;
if(s<0)
{
	if(s == -2)
		s=p-2;
	else
		s=p-1;
}
s=s%p;
 
   t=t-1;
   if(t<0)
   {t=q-1}
   t=t%q;
   
  for(cnt=s; cnt>=s && cnt<p; cnt--)
  {
     document.i1.src=arrlength[(cnt+p)%p];
   document.getElementById("head1").innerHTML=headtext[(cnt+p)%p];
 document.getElementById("text1").innerHTML=arrtext[(cnt+p)%p];
  document.getElementById("numbertext").innerHTML=numbertext[(cnt+p)%p];
  t=t-2;
  break;
 }
}
}

