﻿// JScript File



 var vCars = new Array(); 

 vCars[0] = {des:"<h2>New Volvo S40</h2>Spirited and responsive with an inspired and modern interior. Truly a cutting–edge car.",carimage:"S40_model_lineup1.jpg"}; 

 vCars[1] = {des:"<h2>Volvo S60</h2>Pin–sharp handling and outstanding comfort – a perfectly balanced combination.",carimage:"S60_model_lineup1.jpg"}; 

 vCars[2] = {des:"<h2>Volvo S80</h2>Refined down to its last detail, the S80 is as much a pleasure to drive as it is to own.",carimage:"S80_model_lineup1.jpg"}; 

 vCars[3] = {des:"<h2>New Volvo V50</h2>Ingeniously designed and brilliantly engineered, a truly modern sportswagon. ",carimage:"V50_model_lineup1.jpg"}; 

 vCars[4] = {des:"<h2>All-New Volvo V70</h2>Refined down to its last detail, the All new V70 is as much a pleasure to drive as it is to own.",carimage:"V70_model_lineup1.jpg"}; 

 vCars[5] = {des:"<h2>All-New Volvo XC70</h2>Refined down to its last detail, the XC70 is as much a pleasure to drive as it is to own.",carimage:"XC70_model_lineup1.jpg"}; 

 vCars[6] = {des:"<h2>Volvo XC90</h2>Seven seats, market–leading safety features – a SUV for the 21st Century.",carimage:"XC90_model_lineup1.jpg"}; 

 vCars[7] = {des:"<h2>Volvo C30</h2>Experience a designer’s dream – from the groundbreaking exterior to the high-tech gadgets of the interior.",carimage:"C30_model_lineup1.jpg"}; 

 vCars[8] = {des:"<h2>Volvo C70</h2>Open up to the possibilities of this truly stunning coupé. Or should that be 'convertible'?",carimage:"C70_model_lineup1.jpg"};  

 vCars[9] = {des:"<h2>Volvo XC60</h2>The crossover design grabs the attention of onlookers and gets the imagination going.",carimage:"XC60_model_lineup1.jpg"};  

 function ShowCar(carid) 

 { 

     var carPic = document.getElementById("carpic"); 

     carPic.src = "images/" + vCars[carid].carimage; 

     var carDes = document.getElementById("cardes"); 

     carDes.innerHTML = vCars[carid].des; 

 } 