// For clarifications on the below script, please contact shine_cs@ncs.com.sg
// - - - Start - Configuration - Settings the Agency can modify - - - //
// All values passed to GSA must be URL-encoded. eg. spaces must be replaced by char '+'
var Search_Text_Box_Size = 25;
var Server_URL = "http://sgms.internet.gov.sg";
var Collections = "";
var SiteSearchItems = "";
var MetaDataFilters = "";
//Specify the Website's Feedback URL here e.g http://www.mywebsite.gov.sg/feedback.htm
//must begin with http://
var paramFeedbackPageURL="http://sgms-web.internet.gov.sg/UIs/Feedback.aspx";
//Specify the Website's Contact Info URL here e.g http://www.mywebsite.gov.sg/contact.htm
// must begin with http://
var paramContactInfoPageURL="http://sgms-web.internet.gov.sg/UIs/ContactInfo.aspx";
// Specify additional Collection options using the following //
Collections = 
{ 
  'Within All Government Websites': 'default', 
  'Within Business': 'within_biz',
  'Within Citizens And Residents': 'within_cit_res',
  'Within Non-Residents': 'within_non_res'
}; 

// Specify within this site (ie. sitesearch) options using the following //
// Only specify the website hosting this script
SiteSearchItems =
[
// ["Results Within This Website", ""]
]

// - - - End - Configuration - - - //

$(document).ready(function(){
	$('#SearchPlugInfrm').attr('action', Server_URL);
	
	//IE7 got problem for this
	// $.each(Collections, function(key, value) { 		
		// $('#searchSite').append($('<option></option>').attr('value', value).text(key));
	// });	
});
