function changeImage(target,image) {
 document.getElementById(target).src = image;
}


function top_winter() {
	
	rnd = Math.floor((3) * Math.random() + 1);
	
	top_winter1( );

}

function top_photo() {
	
	photo_no = Math.floor((6) * Math.random() + 1);
	color_no = Math.floor((3) * Math.random() + 1);
	
	for(i = 1; i < 6 ; i++)
	{
		
		if (i == photo_no)
		{
			html = '<div class="photo"><img src="img/top/ph_color' + color_no + '.jpg" id="photo' + i + '" onmouseover="photo_change()"/></div>';
			document.write(html);
		}
		else
		{
			img_no = Math.floor((15) * Math.random() + 1);
			html = '<div class="photo"><img src="img/top/top_ph' + img_no + '.jpg" id="photo' + i + '" onmouseover="photo_change()"/></div>';
			document.write(html);
		}
		}
		}
	
function photo_change() {
	
	img_no = Math.floor((3) * Math.random() + 1);
	photo_no = Math.floor((6) * Math.random() + 1);
	changeImage('photo' + photo_no,'img/top/ph_color' + img_no + '.jpg')
	
	img_no = Math.floor((8) * Math.random() + 1);
	photo_no = Math.floor((6) * Math.random() + 1);
	changeImage('photo' + photo_no,'img/top/top_ph' + img_no + '.jpg')
	
	img_no = Math.floor((8) * Math.random() + 1);
	img_no = img_no + 8; 
	photo_no = Math.floor((6) * Math.random() + 1);
	changeImage('photo' + photo_no,'img/top/top_ph' + img_no + '.jpg')
	
	
	}	
	
