 var j=parseInt(Math.random()*5);



  j=(isNaN(j))?0:j;







function writeHomeImage(){



  document.write('<div style="background:url(images/homephoto'+(j+1)+'.jpg); height:323px; width: 703px;">');



}







var k=parseInt(Math.random()*6);



  k=(isNaN(k))?0:k;







function writeSubImage(){



  document.write('<img src="images/ajs_right'+(k+1)+'.jpg" border="0" class="rotatingimages">');



}
