
var arrActivityListingCategory = new Array();
var arrActivityListingSubCategory = new Array();

function ActivityListingCategoryItem(nvalue,description,stylebgcolor){
	this.nvalue=nvalue;
	this.description=description;
}
function ActivityListingSubCategoryItem(ListingCategory,nvalue,description){
	this.ListingCategory = ListingCategory;
	this.nvalue = nvalue;
	this.description = description;
}
function PrepareDataActivity(){
	arrActivityListingCategory[0]=new ActivityListingCategoryItem(1,'Air Adventures');
	arrActivityListingCategory[1]=new ActivityListingCategoryItem(2,'Land Adventures');
	arrActivityListingCategory[2]=new ActivityListingCategoryItem(3,'Water Adventures');
	arrActivityListingCategory[3]=new ActivityListingCategoryItem(4,'Adventure Tours');
	arrActivityListingCategory[4]=new ActivityListingCategoryItem(5,'Adventure Bits');
	arrActivityListingCategory[5]=new ActivityListingCategoryItem(6,'Adventure Stays');
	arrActivityListingSubCategory[1]= new ActivityListingSubCategoryItem(5,76,'4x4 Vehicles and Accessories');
	arrActivityListingSubCategory[2]= new ActivityListingSubCategoryItem(5,74,'Activewear');
	arrActivityListingSubCategory[3]= new ActivityListingSubCategoryItem(5,78,'Bikes and Cyling Accessories');
	arrActivityListingSubCategory[4]= new ActivityListingSubCategoryItem(5,75,'Camping and Hiking Accessories');
	arrActivityListingSubCategory[5]= new ActivityListingSubCategoryItem(5,73,'Motorbikes, Quad Bikes and Accessories');
	arrActivityListingSubCategory[6]= new ActivityListingSubCategoryItem(5,72,'Paintball Accesories');
	arrActivityListingSubCategory[7]= new ActivityListingSubCategoryItem(5,77,'Watercraft and Accessories');
	arrActivityListingSubCategory[8]= new ActivityListingSubCategoryItem(6,81,'Backpackers Lodges');
	arrActivityListingSubCategory[9]= new ActivityListingSubCategoryItem(6,79,'Campsites and Caravan Parks');
	arrActivityListingSubCategory[10]= new ActivityListingSubCategoryItem(6,80,'Guesthouses and Bed and Breakfasts');
	arrActivityListingSubCategory[11]= new ActivityListingSubCategoryItem(6,87,'Holiday Homes and Cottages');
	arrActivityListingSubCategory[12]= new ActivityListingSubCategoryItem(6,71,'Resorts Hotels and Lodges');
	arrActivityListingSubCategory[13]= new ActivityListingSubCategoryItem(4,62,'Adventure Tour Operators');
	arrActivityListingSubCategory[14]= new ActivityListingSubCategoryItem(4,84,'Bike Tours');
	arrActivityListingSubCategory[15]= new ActivityListingSubCategoryItem(4,83,'Cruises and Sailing Tours');
	arrActivityListingSubCategory[16]= new ActivityListingSubCategoryItem(4,85,'Hikes and Slackpacking Tours');
	arrActivityListingSubCategory[17]= new ActivityListingSubCategoryItem(4,58,'Overland Tours');
	arrActivityListingSubCategory[18]= new ActivityListingSubCategoryItem(4,86,'Travel Agents');
	arrActivityListingSubCategory[19]= new ActivityListingSubCategoryItem(4,82,'Vehicle and Camper Hire');
	arrActivityListingSubCategory[20]= new ActivityListingSubCategoryItem(1,54,'Aerobatics');
	arrActivityListingSubCategory[21]= new ActivityListingSubCategoryItem(1,50,'Air Events');
	arrActivityListingSubCategory[22]= new ActivityListingSubCategoryItem(1,1,'Ballooning');
	arrActivityListingSubCategory[23]= new ActivityListingSubCategoryItem(1,2,'Fixed Wing Aircraft');
	arrActivityListingSubCategory[24]= new ActivityListingSubCategoryItem(1,3,'Gliding');
	arrActivityListingSubCategory[25]= new ActivityListingSubCategoryItem(1,4,'Gyrocopter');
	arrActivityListingSubCategory[26]= new ActivityListingSubCategoryItem(1,5,'Hang Gliding');
	arrActivityListingSubCategory[27]= new ActivityListingSubCategoryItem(1,6,'Helicopters');
	arrActivityListingSubCategory[28]= new ActivityListingSubCategoryItem(1,7,'Microlighting');
	arrActivityListingSubCategory[29]= new ActivityListingSubCategoryItem(1,8,'Paragliding');
	arrActivityListingSubCategory[30]= new ActivityListingSubCategoryItem(1,9,'Skydiving');
	arrActivityListingSubCategory[31]= new ActivityListingSubCategoryItem(1,59,'Training and Introductory Flights');
	arrActivityListingSubCategory[32]= new ActivityListingSubCategoryItem(1,55,'Weird & Wonderful');
	arrActivityListingSubCategory[33]= new ActivityListingSubCategoryItem(2,10,'4x4 Trails & Tours');
	arrActivityListingSubCategory[34]= new ActivityListingSubCategoryItem(2,11,'Abseiling and Caving');
	arrActivityListingSubCategory[35]= new ActivityListingSubCategoryItem(2,12,'Amusement Parks');
	arrActivityListingSubCategory[36]= new ActivityListingSubCategoryItem(2,14,'Archery');
	arrActivityListingSubCategory[37]= new ActivityListingSubCategoryItem(2,15,'Art & Culture');
	arrActivityListingSubCategory[38]= new ActivityListingSubCategoryItem(2,16,'Bungy Jumping & Big Swings');
	arrActivityListingSubCategory[39]= new ActivityListingSubCategoryItem(2,17,'Cable Tours & Zip Lines');
	arrActivityListingSubCategory[40]= new ActivityListingSubCategoryItem(2,64,'Canopy Tours');
	arrActivityListingSubCategory[41]= new ActivityListingSubCategoryItem(2,46,'Clay Pigeon Shooting');
	arrActivityListingSubCategory[42]= new ActivityListingSubCategoryItem(2,25,'Events');
	arrActivityListingSubCategory[43]= new ActivityListingSubCategoryItem(2,18,'Golf');
	arrActivityListingSubCategory[44]= new ActivityListingSubCategoryItem(2,19,'Guided Hiking & Birding');
	arrActivityListingSubCategory[45]= new ActivityListingSubCategoryItem(2,20,'Hiking Trails Beach Bush and Berg');
	arrActivityListingSubCategory[46]= new ActivityListingSubCategoryItem(2,21,'Horse Trails & Safaris');
	arrActivityListingSubCategory[47]= new ActivityListingSubCategoryItem(2,28,'Karting & Race Car Driving ');
	arrActivityListingSubCategory[48]= new ActivityListingSubCategoryItem(2,22,'Motor Bikes');
	arrActivityListingSubCategory[49]= new ActivityListingSubCategoryItem(2,23,'Mountain Biking & Cycling ');
	arrActivityListingSubCategory[50]= new ActivityListingSubCategoryItem(2,24,'Mountain Climbing & Kloofing');
	arrActivityListingSubCategory[51]= new ActivityListingSubCategoryItem(2,26,'Paintball');
	arrActivityListingSubCategory[52]= new ActivityListingSubCategoryItem(2,27,'Quad Biking');
	arrActivityListingSubCategory[53]= new ActivityListingSubCategoryItem(2,29,'Rap Jumping');
	arrActivityListingSubCategory[54]= new ActivityListingSubCategoryItem(2,30,'Romantic Getaways');
	arrActivityListingSubCategory[55]= new ActivityListingSubCategoryItem(2,31,'Safaris and Game Drives');
	arrActivityListingSubCategory[56]= new ActivityListingSubCategoryItem(2,32,'Sandboarding');
	arrActivityListingSubCategory[57]= new ActivityListingSubCategoryItem(2,13,'Snake & Animal Parks - Aquariums');
	arrActivityListingSubCategory[58]= new ActivityListingSubCategoryItem(2,33,'Snow Skiing/Boarding');
	arrActivityListingSubCategory[59]= new ActivityListingSubCategoryItem(2,51,'Spa');
	arrActivityListingSubCategory[60]= new ActivityListingSubCategoryItem(2,65,'Team Building');
	arrActivityListingSubCategory[61]= new ActivityListingSubCategoryItem(2,61,'Train Trips');
	arrActivityListingSubCategory[62]= new ActivityListingSubCategoryItem(2,56,'Weird & Wacky');
	arrActivityListingSubCategory[63]= new ActivityListingSubCategoryItem(2,88,'Zorbing');
	arrActivityListingSubCategory[64]= new ActivityListingSubCategoryItem(3,36,'Dragon Boat Racing');
	arrActivityListingSubCategory[65]= new ActivityListingSubCategoryItem(3,35,'Fishing');
	arrActivityListingSubCategory[66]= new ActivityListingSubCategoryItem(3,37,'Fly Fishing');
	arrActivityListingSubCategory[67]= new ActivityListingSubCategoryItem(3,60,'Harbour Cruises');
	arrActivityListingSubCategory[68]= new ActivityListingSubCategoryItem(3,49,'Jet Skiing');
	arrActivityListingSubCategory[69]= new ActivityListingSubCategoryItem(3,38,'Kayaking & Canoeing');
	arrActivityListingSubCategory[70]= new ActivityListingSubCategoryItem(3,39,'Kitesurfing');
	arrActivityListingSubCategory[71]= new ActivityListingSubCategoryItem(3,63,'River Boat Cruises');
	arrActivityListingSubCategory[72]= new ActivityListingSubCategoryItem(3,40,'River Rafting & Tubing');
	arrActivityListingSubCategory[73]= new ActivityListingSubCategoryItem(3,41,'Sailing & Boat Cruises');
	arrActivityListingSubCategory[74]= new ActivityListingSubCategoryItem(3,42,'Scuba Diving');
	arrActivityListingSubCategory[75]= new ActivityListingSubCategoryItem(3,34,'Shark Cage Diving');
	arrActivityListingSubCategory[76]= new ActivityListingSubCategoryItem(3,69,'Shark Diving');
	arrActivityListingSubCategory[77]= new ActivityListingSubCategoryItem(3,43,'Surfing');
	arrActivityListingSubCategory[78]= new ActivityListingSubCategoryItem(3,44,'Waterskiing');
	arrActivityListingSubCategory[79]= new ActivityListingSubCategoryItem(3,52,'Waterworld');
	arrActivityListingSubCategory[80]= new ActivityListingSubCategoryItem(3,57,'Weird & Wayout');
	arrActivityListingSubCategory[81]= new ActivityListingSubCategoryItem(3,45,'Whale & Dolphin Watching');
	arrActivityListingSubCategory[82]= new ActivityListingSubCategoryItem(3,53,'Windsurfing');
}

function reFillListActivity(){
	var iSelectedItem;
	var nOption;
	iSelectedItem = document.formActivitySearch.ListingCategory[document.formActivitySearch.ListingCategory.selectedIndex].value;
	document.formActivitySearch.ListingSubCategory.length = 0;
	document.formActivitySearch.ListingSubCategory.options[0] = new Option('all activities',0);
	var ii=1;
	for (i=1; i < arrActivityListingSubCategory.length;i++){
		if (arrActivityListingSubCategory[i].ListingCategory==iSelectedItem) {
			nOption3=document.formActivitySearch.ListingSubCategory.length;
			document.formActivitySearch.ListingSubCategory.options[nOption3]=new Option(arrActivityListingSubCategory[i].description,arrActivityListingSubCategory[i].nvalue);
			ii++;
		}
	}
}



