
var exampleServices ;



/*

1. Home and family
2. Entertainment
3. Errand Running
4. Domestic
5. Personal
6. Travel
7. Corporate

*/

function setUpExampleServices(){

 if (! exampleServices ){

		  exampleServices = new Array (7);

		  for (i = 0; i < exampleServices . length; ++ i){
			exampleServices [i] = new Array (20);

			

		  }


		  exampleServices[0][0] ="Home & Family";
		  exampleServices[0][1] ="Handyman services for household repairs"; 
		  exampleServices[0][2] ="Find workday care for a sick child"; 
		  exampleServices[0][3] ="Baby Sitting and Child Minder Services"; 
		  exampleServices[0][4] ="Maids and Butlers to attend your premises"; 
		  exampleServices[0][5] ="Arrange the delivery of meals"; 
		  exampleServices[0][6] ="Food shopping"; 
		  exampleServices[0][7] ="Key holding service"; 
		  exampleServices[0][8] ="Children’s entertainers"; 
		  exampleServices[0][9] ="Garden maintenance"; 
		  exampleServices[0][10] ="Schedule airport taxi and limousine services"; 


		  exampleServices[1][0] ="Entertainment";
		  exampleServices[1][1] ="Plan events/outdoor activities "; 
		  exampleServices[1][2] ="Restaurant reservations"; 
		  exampleServices[1][3] ="Entertain out-of-town guests "; 
		  exampleServices[1][4] ="Party/Event Organisation "; 
		  exampleServices[1][5] ="Hotel Weekend Breaks - UK &amp; Worldwide "; 
		  exampleServices[1][6] ="Purchase tickets to theatre, music or sporting events including ‘sold out’ events "; 
		  exampleServices[1][7] ="Schedule a tee time for golf"; 
		  exampleServices[1][8] ="Night club guest lists "; 
		  exampleServices[1][9] =""; 
		  

		  exampleServices[2][0] ="Errand Running";
		  exampleServices[2][1] ="Dry Cleaning "; 
		  exampleServices[2][2] ="Laundry service"; 
		  exampleServices[2][3] ="Post Office"; 
		  exampleServices[2][4] ="Collect shopping"; 
		  exampleServices[2][5] ="Find, wrap and deliver a special gift "; 
		  exampleServices[2][6] ="Visit hospitalised persons to deliver clothing and personal items "; 
		  exampleServices[2][7] ="Shoe repairs "; 
		  exampleServices[2][8] ="Clothes repairs and alterations"; 
		  exampleServices[2][9] ="Pet walking/exercise "; 
		  exampleServices[2][10] ="Key cutting"; 
		  exampleServices[2][11] ="Collect/deliver a prescription "; 
		  exampleServices[2][12] ="Formal clothing hire/collection "; 
		  exampleServices[2][13] ="Return/collection of rental equipment"; 



	
	

		  exampleServices[3][0] ="Domestic";
		  exampleServices[3][1] ="Laundry Service "; 
		  exampleServices[3][2] ="Maid Service"; 
		  exampleServices[3][3] ="Window Cleaning"; 
		  exampleServices[3][4] ="Carpet Cleaning"; 
		  exampleServices[3][5] ="Linen Change"; 
		  exampleServices[3][6] ="Curtains and Upholstery Cleaned"; 
		  exampleServices[3][7] ="Catering for Lunches, Dinner Parties and Other Events"; 
		  exampleServices[3][8] ="Food Delivery"; 
		  exampleServices[3][9] ="Waitresses and Butlers"; 		  
		  exampleServices[3][10] ="Children’s entertainers";
		  exampleServices[3][11] ="Accept/Schedule Deliveries "; 
		  exampleServices[3][12] ="Baby Sitting and Nannies"; 
		  exampleServices[3][13] ="Home Sitting Service"; 
		  exampleServices[3][14] ="Pet Sitting Service"; 
		  exampleServices[3][15] ="Electricians, Carpenters, Decorators, Handy man"; 
		  exampleServices[3][16] ="Gardening Services,"; 
		  exampleServices[3][17] ="Landscape Garden Services"; 
		  exampleServices[3][18] ="Pest Control"; 
		  exampleServices[3][19] ="Co-ordinate Removal and Relocation"; 
		  
		  
		  
		  
		  exampleServices[4][0] ="Personal";
		  exampleServices[4][1] ="Look after your wellbeing e.g. Arrange massage, manicure/pedicure, trainer"; 
		  exampleServices[4][2] ="Reserve seating at the perfect restaurant"; 
		  exampleServices[4][3] ="Provide special occasion reminders and gift ideas"; 
		  exampleServices[4][4] ="Collect a prescription, post office errands, get keys cut..."; 
		  exampleServices[4][5] ="Order flowers and arrange delivery"; 
		  exampleServices[4][6] ="Night Club Guest Lists"; 
		  exampleServices[4][7] ="Restaurant Reservations"; 
		  exampleServices[4][8] ="Plan Events/Outdoor Activities"; 
		  exampleServices[4][9] ="Floral Requests"; 
		  exampleServices[4][10] ="Golf Tee Times";
		  exampleServices[4][11] ="Hot Air Balloon Flights"; 
		  exampleServices[4][12] ="Arrange Massage"; 
		  exampleServices[4][13] ="Personal Trainer"; 
		  exampleServices[4][14] ="Reflexology"; 
		  exampleServices[4][15] ="Day Spa"; 
		  exampleServices[4][16] ="Manicure/Pedicure"; 
		  exampleServices[4][17] ="Hairdressing"; 
		  

		  exampleServices[5][0] ="Travel";
		  exampleServices[5][1] ="Chauffeur and Limousine services"; 
		  exampleServices[5][2] ="Taxis"; 
		  exampleServices[5][3] ="Luxury coaches (8pax to 60pax per vehicle)"; 
		  exampleServices[5][4] ="International Restaurant Reservations"; 
		  exampleServices[5][5] ="Bicycle hire"; 
		  exampleServices[5][6] ="Car and Bike washing/Valet"; 
		  exampleServices[5][7] ="Car/Motorbike servicing"; 
		  exampleServices[5][8] ="Car hire"; 
		  exampleServices[5][9] ="Flight bookings"; 
		  exampleServices[5][10] ="Mobile phone hire";
		  exampleServices[5][11] ="Hotel accommodation"; 
		  exampleServices[5][12] ="Package holidays"; 
		  exampleServices[5][13] ="Tailor made holidays"; 
		  exampleServices[5][14] ="Venue sourcing"; 
		  exampleServices[5][15] ="Boat/yacht charters"; 
		  exampleServices[5][16] ="Cruises"; 
		  exampleServices[5][17] ="Travel insurance"; 
		  
		  
		  exampleServices[6][0] ="Corporate";
		  exampleServices[6][1] ="Plan meetings"; 
		  exampleServices[6][2] ="Coordinate event details and catering"; 
		  exampleServices[6][3] ="Office Cleaning"; 
		  exampleServices[6][4] ="Arrange business travel accommodations"; 
		  exampleServices[6][5] ="Secure temporary help for a short-staffed department "; 
		  exampleServices[6][6] ="Chauffeur and limousine services"; 
		  exampleServices[6][7] ="PC Rental – Short or Long Term Rentals for Home Or Office"; 
		  exampleServices[6][8] ="Virtual Secretary Service"; 
		  exampleServices[6][9] ="Personalised Stationery"; 
		  exampleServices[6][10] ="Couriers"; 
		  exampleServices[6][11] ="IFA’s, Lawyers and Accountants Who Will Visit You At Your Convenience"; 
		  exampleServices[6][12] ="Mobile Phone Rental – Daily, Weekly, Monthly. National or International"; 
		  
	}	  
  
  return exampleServices;
}


function getExampleServicesHTML(selected){

		
	
	var html = "<div id=\"examplesHeaderBG\" ><div id=\"examplesHeaderText\" > Please note this is not the complete, definitive list of services we provide, but merely an example list of the services which we are able to offer you <br /> <br />If you have any other requirements please do not hesitate to contact us.</div></div><br/><div  id=\"examplesMainBG\"><div id=\"examplesBGMenu\">";
	
	
	html += getExampleMenuListAsHTML(selected);
	
	html += "</div>";
	

	html += "<div id=\"examplesBG\">";
	html += getExampleListAsHTML(selected);
	
	html += "</div></div>";
	
	
	return html;

} 


function getExampleMenuListAsHTML( selected ){

	if ( !exampleServices ){	
		setUpExampleServices();
	}
	
	//var exampleServicesMenu = new Array ( exampleServices.length );
	
	var selectedArrayIndex =  getExampleServicesIndex(selected );

	var html = "<ul>";
	
	for (i = 0; i < exampleServices.length; i++){
		
		var menuLabel = exampleServices[i][0]; 
		
		if (menuLabel){
		
			html += "<li>";
			
					
			if (i != selectedArrayIndex){
					html += "<a href=\"Javascript:changeExampleList('";
					html += menuLabel;
					html += "' );\">";
					html += menuLabel;
					html += "</a>";
			
			}
			else{
				html += menuLabel; 		
			}
		
		
			html += "</li>";
			
		}	

	}
	
	
	html += "</ul>";
	
	
	return html;
	
	
	//return exampleServicesMenu ;
}



function getExampleListAsHTML(selected){

	var selectedArrayIndex =  getExampleServicesIndex(selected );
	
	if ( !exampleServices ){	
		setUpExampleServices();
	}
	
	var selectedExampleListSize = exampleServices[selectedArrayIndex].length;
	
	var exampleList = new Array (selectedExampleListSize);
	
	
	var html = "<ul>";
	
	
	for (i = 1; i < selectedExampleListSize; ++i){
		
		exampleList [i] = exampleServices[selectedArrayIndex][i]; 
		
		
		if (exampleList [i]){
		
			html += "<li>";
			html += exampleList [i];
			html += "</li>";
		
		}

	}
	
	
	
	html += "</ul>";
	
	
	return html;
	

}




function getExampleServicesIndex(selected ){

	var index =0;
	
	if (selected == 'Home & Family'){
		index = 0;	
	}
	else if (selected == 'Entertainment'){
		index = 1;	
	}	

	else if (selected == 'Errand Running'){
		index = 2;	
	}	

	else if (selected == 'Domestic'){
		index = 3;	
	}	

	else if (selected == 'Personal'){
		index = 4;	
	}	
	else if (selected == 'Travel'){
		index = 5;	
	}	

	else if (selected == 'Corporate'){
		index = 6;	
	}	
	
	return index; 

}


var min=10;
var max=16;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}




