 var j=parseInt(Math.random()*8);



  j=(isNaN(j))?0:j;







function writeHomeImage(){

  document.write('<img src="images/photo_sub_middle'+(j+1)+'.jpg" border="0"  />');

}

function writeHomeImageTOP(){

  document.write('<img src="images/photo_sub_top'+(j+1)+'.jpg" border="0" />');

}

function writeHomeImageBG(){

  document.write('<td width="163" align="left" valign="top" style="background: url(../images/photo_sub_middle_blend'+(j+1)+'.jpg) repeat-y left;">');

}







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">');



}