var imgArr; $(document).ready(function(){ preload(["/vehiclephotos/1117032/huge/0e71ff43-3179-44e5-9ad8-f060cdc1261f.jpg", "/vehiclephotos/1117032/huge/8ca1b6b1-f207-4572-9018-0dd5b9acf49f.jpg", "/vehiclephotos/1117032/huge/c2322344-0645-4cab-88aa-abb9786ee55e.jpg", "/vehiclephotos/1117032/huge/2a235b70-e818-4501-8ccf-5f4761f10eb2.jpg", "/vehiclephotos/1117032/huge/b0b6c31f-f447-497c-8b22-9fb66455435f.jpg", "/vehiclephotos/1117032/huge/31a25fea-6e73-444e-bbee-52dd4d672912.jpg", "/vehiclephotos/1117032/huge/2203b567-3ca1-42d0-a85f-7d7dea4a2dd3.jpg", "/vehiclephotos/1117032/huge/2c06fcd8-7739-4c3d-b13e-83d1469b39fe.jpg", "/vehiclephotos/1117032/huge/70cfd58c-a5b4-40de-acfd-905c593bec22.jpg", "/vehiclephotos/1117032/huge/c0d07e84-e49b-414c-9bcf-62ef1bfa5d66.jpg", "/vehiclephotos/1117032/huge/c550666d-b032-4996-a317-7e53923b860a.jpg", "/vehiclephotos/1117032/huge/d35b1458-9b8c-4768-bbab-26edd29cf1d9.jpg", "/vehiclephotos/1117032/huge/b26e6684-6ed2-4b6c-822d-d2650b37a851.jpg", "/vehiclephotos/1117032/huge/e8ff4f3d-9508-4eb2-9ae6-813364ee2d14.jpg", "/vehiclephotos/1117032/huge/82eba14d-8b0e-42b4-a06f-2a417a50406b.jpg", "/vehiclephotos/1117032/huge/197f32ac-a365-450e-9df7-312396c4a7ca.jpg", "/vehiclephotos/1117032/huge/53ae88e5-1032-4d9c-8943-cbdca5f6fb14.jpg", "/vehiclephotos/1117032/huge/11f99955-d7f1-4665-956c-fcd3aa9f4eee.jpg", "/vehiclephotos/1117032/huge/e151c977-8b5b-4c32-93f9-b79f0114294a.jpg", "/vehiclephotos/1117032/huge/73c3dcce-2d8b-4fb2-a022-3273691a0f78.jpg", "/vehiclephotos/1117032/huge/3f3a62cf-c7fe-4042-941e-c8ea984ea1b8.jpg", "/vehiclephotos/1117032/huge/03bf8e07-6c5c-4138-b20d-823399f7322c.jpg", "/vehiclephotos/1117032/huge/09325457-5b3d-4277-ac9d-25bfcec3609a.jpg", "/vehiclephotos/1117032/huge/7b415f3a-937b-4444-8ee0-be85fcb15215.jpg", "/vehiclephotos/1117032/huge/2f6c7324-8b09-44d0-9943-4e28422e3a4a.jpg", "/vehiclephotos/1117032/huge/008dceba-2d72-4fcc-9321-fae50da9456b.jpg"]); $("#photo-main").attr("src","/vehiclephotos/1117032/huge/0e71ff43-3179-44e5-9ad8-f060cdc1261f.jpg"); }); function preload(arrayOfImages) { $(arrayOfImages).each(function(){ $('')[0].src = this; }); imgArr = arrayOfImages; }