var photosright = new Array(); var pr_idsright = new Array(); var which = 0; photosright[0] = "200908148922415.jpg"; pr_idsright[0] = "0"; photosright[1] = "200908141018186.jpg"; pr_idsright[1] = "0"; photosright[2] = "200909038578784.jpg"; pr_idsright[2] = "0"; var elem = Math.floor(Math.random() * photosright.length); var address = photosright[elem]; draw(address); setTimeout("changeimage1('photoslider1right');", 1000); function changeimage1(obj) { var elem = Math.floor(Math.random() * photosright.length); var address = photosright[elem]; var product_id1 = pr_idsright[elem]; document.getElementById(obj+'h').href ='javascript:;'; if (product_id1 > 0) document.getElementById(obj+'h').href = '/?p=roduct_details&product_id='+product_id1; try{ document.getElementById(obj).filters.revealTrans.Transition=Math.floor(Math.random()*23); document.getElementById(obj).filters.revealTrans.stop(); document.getElementById(obj).filters.revealTrans.apply(); document.getElementById(obj).src = "http://is.timexint.com/images/products_anim_img/" + address; document.getElementById(obj).filters.revealTrans.play(); setTimeout("changeimage1('"+obj+"');", 3000); }catch(err){ document.getElementById(obj).src = "http://is.timexint.com/images/products_anim_img/" + address; setTimeout("changeimage1('"+obj+"');", 3000); } } function draw(address) { document.write(''); }