                //this script builds the Product Search dropdown in TEMP STRUCTURE #2 to only include  
                //utems in the product category associations
                //prepend the secure URL to the form action so that cookie can be created
				$(function(){
					
					var formAction = $('form[name=catproductsform13186]').attr('action');
										
					if(formAction.indexOf('https:') == -1)
						$('form[name=catproductsform13186]').attr('action','https://worldvisiongifts.worldsecuresystems.com' + formAction);
					//all the options in the dropdown
					var categoryOptions = $('#ProductCatalogue option');
				
					var categories = new Array();
					
					for(i = 0; i < categoryOptions.length; i++){
						//iterate through the categories
						var category = {};
						category.name = $(categoryOptions[i]).html();
						category.value = $(categoryOptions[i]).val();
						
						var isInclude = false;
						//this is any sub category of the 'Gifts Category' main parent
						if(category.name.indexOf('---') != -1)
							isInclude = true;
						else if(category.name == 'Recommended Gifts')
							break;
						//add these options to the categories array
						if(isInclude)
							categories.push(category);
					}
					
					var html2add = '<option value="-1">-- Please Select -- </option>';
					
					for(k=0;k<categories.length;k++){
						//go through all the categories in the categories array (the shotlist we want)
						//and build up the relevant HTML
						html2add += '<option value="' + categories[k].value + '">' + categories[k].name.replace('---','') + '</option>';
					}
					
					
					//add this HTML to the select object on the page
					$('select#CAT_ProductCatalogue').html(html2add);
			   })
