<!--
var blnNotRandom = true;
var list= new Array();
var strCookieValue;
var j;
function getCookie( strCookieName )
{
	var begin;
	var end;
	if ( document.cookie.length > 0 )
	{
		begin = document.cookie.indexOf( strCookieName + "=" );
		if( begin != -1 )
		{
			begin += strCookieName.length + 1;
			end = unescape( document.cookie.indexOf( ";", begin ) );
									
			if( end == -1 )
				end = document.cookie.length;
			return unescape( document.cookie.substring( begin, end ) );
		}
		else
			return null;
	}
	else
		return null;
}
function setCookie( strCookieName, strValue, dteExpires )
{
	var expiresDate = new Date();
	expiresDate.setTime( expiresDate.getTime() + (expiresDate * 24 * 3600 * 1000) );
	document.cookie = strCookieName + "=" + escape(strValue); //+ (( expiresDate == null ) ? "" : "; expires=" + expiresDate.toGMTString());
}
list[list.length]='randomimages/1.jpg';
list[list.length]='randomimages/2.jpg';
list[list.length]='randomimages/3.jpg';
list[list.length]='randomimages/4.jpg';
list[list.length]='randomimages/5.jpg';
list[list.length]='randomimages/6.jpg';
while (blnNotRandom)
{
	strCookieValue = getCookie( "imgCookie" );
	j=parseInt( Math.random()*list.length );
	j=(isNaN(j))?0:j;
	if( j == strCookieValue )
	{
		blnNotRandom = true;
	}
	else
	{
		setCookie( "imgCookie", j, 365 );
		blnNotRandom = false;
	}
}
document.write("<img src='"+list[j]+"'>");
//-->
