// JavaScript Document
/*$(document).ready(function(){
						   
						   
						   $('#searchinput').keypress(googlefunc);
				
				 
				 
				 });


 eeeeeeeeeeeeeeee
function googlefunc(){*/

//$("#searchinput").keypress(function() {

	google.load('search', '1');
		  function OnLoad() {
	
			// create a search control
			var searchControl = new google.search.SearchControl();
	
			// add in a full set of searchers
			
			var options = new google.search.SearcherOptions();
		
		// site restricted web search with custom label
			var siteSearch = new google.search.WebSearch();
			siteSearch.setUserDefinedLabel("Our site");
			siteSearch.setUserDefinedClassSuffix("siteSearch");
			siteSearch.setSiteRestriction("younisgroup.biz");
			searchControl.addSearcher(siteSearch, options);
			
			searchControl.addSearcher(new google.search.WebSearch());
	        searchControl.addSearcher(new google.search.ImageSearch());
			//searchControl.addSearcher(new google.search.VideoSearch());
			
			// establish a keep callback
			searchControl.setOnKeepCallback(this, MyKeepHandler);
	
			// tell the searcher to draw itself and tell it where to attach
			searchControl.draw(document.getElementById("search_control"));
	
			// execute an inital search
			//searchControl.execute("VW GTI");
		  }
	
		  function MyKeepHandler(result) {
	
			// clone the result html node
			var node = result.html.cloneNode(true);
	
			// attach it
			var savedResults = document.getElementById("saved_results");
			savedResults.appendChild(node);
		  }
		  google.setOnLoadCallback(OnLoad, true);
 //});
 //$('#searchbtn').submit(mysearch);
 //$('#searchinput').keypress(mysearch);

