var rNews1 = (Math.floor(Math.random()*10)+1);var rNews2 = (Math.floor(Math.random()*10)+11);var rNews3 = (Math.floor(Math.random()*10)+21);document.write('<style type="text/css">.newsimg1{background-image:  url("images/home/n'+rNews1+'.jpg");}.newsimg2{background-image:  url("images/home/n'+rNews2+'.jpg");}.newsimg3{background-image:  url("images/home/n'+rNews3+'.jpg");}</style>');