//<![CDATA[    
google.load('search', '1');

function OnLoad() {
	// Create a search control
	var searchControl = new google.search.SearchControl();      
	// Add in a full set of searchers
	//var localSearch = new google.search.LocalSearch();
	//searchControl.addSearcher(localSearch);
	//searchControl.addSearcher(new google.search.WebSearch());      
	
	//Create a draw option so that we can position the search form root
	var drawOptions = new google.search.DrawOptions();
	drawOptions.setSearchFormRoot(document.getElementById("searchForm"));
	
	var siteSearch = new google.search.WebSearch();
	siteSearch.setUserDefinedLabel("Search Result");
	siteSearch.setUserDefinedClassSuffix("siteSearch");
	//siteSearch.setSiteRestriction("insideadog.com.au");
	siteSearch.setSiteRestriction("insideadog.com.au");
	
	searchOptions = new google.search.SearcherOptions();
	searchOptions.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);

	//options.setSearchFormRoot(document.getElementById("searchresult"));
	
	searchControl.addSearcher(siteSearch, searchOptions);
	
	// Set the Local Search center point
	//localSearch.setCenterPoint("New York, NY");      
	
	// tell the searcher to draw itself and tell it where to attach
	searchControl.draw(document.getElementById("searchResult"), drawOptions);
	
	// execute an inital search
	searchControl.execute("");    
 }    
 google.setOnLoadCallback(OnLoad);

//]]>