function rand_number(n)
{
var x;
x=Math.round(Math.random()*100);
x%=n;
return x;
}
function property()
{
var img = new Array();

img[0]='<img src="http://www.nationaltrustqld.org/images/properties/wolston-nav.jpg" width="159" height="72" border="0"><br /><a href="http://www.nationaltrustqld.org/property-wolston.htm"><img src="http://www.nationaltrustqld.org/images/sidenav/trustproptab.gif" alt="Click to view this trust property" width="159" height="21" border="0"></a><div id="randompic"><a href="http://www.nationaltrustqld.org/property-wolston.htm">Wolston House</a><br />Wolston House is an early stone and brick farmhouse built in 1852 but substantially...</div>';
img[1]='<img src="http://www.nationaltrustqld.org/images/properties/royalbull-nav.jpg" width="159" height="72" border="0"><br /><a href="http://www.nationaltrustqld.org/property-royalbull.htm"><img src="http://www.nationaltrustqld.org/images/sidenav/trustproptab.gif" alt="Click to view this trust property" width="159" height="21" border="0"></a><br /><div id="randompic"><a href="http://www.nationaltrustqld.org/property-royalbull.htm">The Royal Bull’s Head Inn</a><br />The Bulls Head Inn was built in 1847. The present building is the extension built in...</div>';

// attention, le nombre entre parenthese doit etre egal aux derniers entre crochet +1 exemple : ici 2+1=3

var n=rand_number(2); 
document.write(img[n]);
}