
function getData_Bar()
{
	name 					= "Cassidy's Bar";	
	
	address				= new Array;
	address[0]		= "27 Westmoreland Street"; 
	address[1]		= "Dublin 2"; 
	
	phone					= "Tel. (01) 6708604";
	
	email					= new Array;
	email[0]			= "info@CassidysBar.ie";
	
	contactIntro	= "Cassidy's Bar";
	
	biography			= new Array;
	biography[0]	= "";
	biography[1]  = "";

	news					= "";
	
	website				= "www.CassidysBar.ie"; // must not contain any spaces
	
	// -------------------------------------------------------------------------------------------------------------
	var a = new CLIENT(name, address, phone, email, contactIntro, biography, news, website); // DO NOT MODIFY
	
	return a;
}

function getData_Images()
{
	var a		= new Array();
  var i 	= 0;
 	a[i++]	= new IMAGE('','','','','','','',''); // DO NOT DELETE THIS BLANK ROW

  // 									imageId, 		portfolioId, 	file, 											title,	onClick 

	a[i++]	= new IMAGE(parseInt(i),	'1',				'white_wine.jpg',						'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_corporate_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'red_wine.jpg',							'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'singer.jpg',								'Click for Events Listing',			'events.html'); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'taps.jpg',									'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_private_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'violin.jpg',								'Click for Events Listing',			'events.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'barrels2.jpg',							'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'beer.jpg',									'',			''); 	
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_corporate_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'chef.jpg',									'Click to see a Sample Menu',			'sampleMenu.html'); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'girls.jpg',								'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'couple_sharing_wine.jpg',	'',			''); 	
	a[i++]	= new IMAGE(parseInt(i),	'1',				'dinner_table.jpg',					'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_private_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'guinness.jpg',							'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'man_with_pint.jpg',				'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'barrels.jpg',							'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_corporate_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'burger.jpg',								'Click to see a Sample Menu',			'sampleMenu.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'glass_of_beer.jpg',				'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'lucky_guy.jpg',						'',			'');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'great_deals_private_functions.gif',	'Having a Function? Click now.',			'functionRooms.html');
	a[i++]	= new IMAGE(parseInt(i),	'1',				'couple.jpg',								'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'ice.jpg',									'',			''); 
	a[i++]	= new IMAGE(parseInt(i),	'1',				'coffee_cup.jpg',						'',			'');
	
	return a;
}

function getData_Portfolios(imageArray)
{
	var a	= new Array();
  var i = 1;
  
  // 									portfolioId,	title, 								description
	a[i++] = new PORTFOLIO('1', 			'Cassidy\'s Bar', 		'');	

	
	// -----------------------------------------------------------------------------------
	// DO NOT MODIFY BELOW THIS LINE
	// -----------------------------------------------------------------------------------
	
	// compute the number of images in each portfolio and set the portfolio's main image
	for (p=1; p<a.length; p++)
	{
		for (loop=1; loop<imageArray.length; loop++)
		{
			if (imageArray[loop].portfolioId == a[p].portfolioId)
			{
				// set the first image in the portfolio to be the portfolio's main image
				if (a[p].numImages == 0) a[p].mainImageId = imageArray[loop].imageId;
				
				// increase the portfolio's image counter
				a[p].numImages = a[p].numImages + 1;
			}
		}
	}
	
	return a;
}






