//random illustrations functions

var x=-1
quote = new Array();

//x=x+1; y=1;
//quote[x] = new Array();
//quote[x][y++]="Quote Text";
//quote[x][y++] = "name";
//quote[x][y++] = "notes";

x=x+1; y=1;
quote[x] = new Array();
quote[x][y++]='Brilliant! - The emailing service is really working for me. Definately jobs coming in from it, Art Directors love it!';
quote[x][y++] = '<a class="formLabel" style="text-decoration: underline;" href="http://www.sharonbrandman.com" target="new_win">Sharon Brandman</a> - Photo Agent';
quote[x][y++] = "";

x=x+1; y=1;
quote[x] = new Array();
quote[x][y++]='A great service! - It paid for itself in the first mail out.';
quote[x][y++] = '<a class="formLabel" style="text-decoration: underline;" href="http://www.david-thompson.net" target="new_win">David Thompson</a>, Photographer';
quote[x][y++] = '';

x=x+1; y=1;
quote[x] = new Array();
quote[x][y++]='We use Bikini for all our mailings, online and offline and are consistantly happy  with the inquiries we get as a result.';
quote[x][y++] = '<a class="formLabel" style="text-decoration: underline;" href="http://www.illustrationweb.com" target="new_win">Harry Lyon-Smith</a> - Illustration ltd.';
quote[x][y++] ='';

x=x+1; y=1;
quote[x] = new Array();
quote[x][y++]='This is a very important resource for Photographers. I had a call for a job the day after my first E-mail campaign. Easy to use, logical interface, and helps keep my data organised';
quote[x][y++] = '<a class="formLabel" style="text-decoration: underline;" href="http://www.jonathanstewartphotography.com" target="new_win">Jonathan Stewart</a> - Photographer';
quote[x][y++] = '';

//alert(quote)



var numberOfItems=3;  //0,1,2, 
ItemSelected = new Array;

function selectItem() {
	randNo=Math.round(Math.random()*(numberOfItems));
	if (selectItem[randNo]) 
	{selectItem();}
	
	selectItem[randNo]="yes"
	//alert(randNo)
	return randNo;
}

function writeQuote()
{

	var shot = selectItem(); 
	//alert(shot);
  var str='';

	str+= '<table cellpadding="0" cellspacing="0" border="0" width="200">';
	str+= '<tr valign="middle"><td class="formLabel"><font size="2" color="ff0000"><b>' + quote[shot][1] + '</b></font></td></tr>';
	str+= '<tr valign="middle"><td class="formLabel"><b>' + quote[shot][2] + '</b></td></tr>';
	str+= '<tr valign="middle"><td class="formLabel">&nbsp;</td></tr>';
	str+= '</table>';

		alert(str);
		return str;
}

