function img1()
{
//The following array stores the Banners images from the server
var bimages = ["http://autolumination.com/images/auto_bulbs/np_black_box.jpg",
"http://autolumination.com/images/auto_bulbs/np_lens_tint.jpg",
"http://autolumination.com/images/auto_bulbs/np_hid.jpg",
"http://autolumination.com/images/auto_bulbs/np_flashlights.jpg",
"http://autolumination.com/images/auto_bulbs/np_lenses.jpg",
"http://autolumination.com/images/auto_bulbs/np_carbon_fiber.jpg",
"http://autolumination.com/images/auto_bulbs/np_headlight_flasher.gif",
"http://autolumination.com/images/auto_bulbs/np_10w_flood.gif",
]; 

//The following array stores the Link of the banners
var lnk=["http://www.autolumination.com/dvr.htm",
"http://www.autolumination.com/vinyl_film.htm",
"http://www.autolumination.com/hid_kits.htm",
"http://autolumination.com/flashlights.htm",
"http://www.autolumination.com/vinyl_film.htm",
"http://www.autolumination.com/vinyl_film.htm",
"http://www.autolumination.com/flash.html",
"http://www.autolumination.com/home.htm",
]; 

//The following array stores the banner image ALT tag and the text just under the banner
var alt=["NEW PRODUCT ANNOUNCEMENT-DVR LED Black Box Recorder",
"Vinyl Protective Self-Adhesive Film.Tints Headlights,Tail Lights & Lenses",
"50 Watt AC DIGITAL HID Headlight Kits - Brighter than OEM HID",
"Rechargable Planet Friendly Led Flashlights & LED Worklights",
"Vinyl Protective Self-Adhesive Film.Tints Headlights,Tail Lights & Lenses",
"Vinyl 3D Carbon Fiber Self-Adhesive Decorative Vinyl Film. Interior/Exterior Trim",
"Emergency Police Headlight & Tail Light Flasher Module",
"Flood Light 10 Watt Super-High Powered RGB 16 Color With Remote Control",
]; 

// selecting the random banner from the 1st array. If you have "N" number of images inside the array bimages, 
// then the following code will be looks like as follows
// var rand=Math.floor(Math.random()*N); 
// So change the number 4 accordingly.
var rand=Math.floor(Math.random()*8); 

newImage = bimages[rand]; 

//Creating the image source and alt tag and text just under it and making it hyperlink
var img="<a href='"+lnk[rand]+"' target='_blank'><img src='"+newImage+"' alt='"+alt[rand]+"' border='0'><br>"+alt[rand]+"</a>";

//returning the banner code.
return img;
} 
