// ==UserScript==
        // @name         Twitter & Google Search Box
        // @namespace    http://stavros.messinis.com/
        // @description  Adds a search box to the Twitter sidebar.
        // @include      http://twitter.com/*
        // @include      https://twitter.com/*
        // @author       Stavros Messinis
        // ==/UserScript==
        
        // Copyright (c) 2009, Stavros Messinis
        // Released under the BSD license.
        // http://www.opensource.org/licenses/bsd-license.php
        
        var peopleNode = document.getElementById('people');
        if (typeof(peopleNode) != "undefined" && peopleNode != null)
        {
        	var html = [];
        	
        	html[html.length] = '<div class="section-header" style="margin-top:0px; font family="verdana">';
        	
        	html[html.length] = '&nbsp<b>Twitter Search<a href="http://search.twitter.com/advanced" class="section-links"></b>(advanced)</a>';
        	html[html.length] = '</div>';
        
        	html[html.length] = '<div><form action="http://search.twitter.com/search" id="searchForm"';
        	html[html.length] = ' method="GET" name="searchForm">';
        	html[html.length] = '&nbsp<input autosave="com.twitter.search" id="searchBox" name="q"';
        	html[html.length] = ' results="10" type="search" size=15 style="border: 1px solid #87bc44;"';
        	html[html.length] = ' placeholder="Enter your query" />';
        	html[html.length] = '</form></div>';
        	html[html.length] = '&nbsp<b>Google Search</b><a href="http://www.google.com/advanced_search?hl=en">(advanced)</a>';
        	
			html[html.length] = '<iframe src ="http://www.stavros.messinis.com/twitsearch/ggliframe.htm" height="15" width="100%" marginheight="0" marginwidth="0" frameborder="1"></iframe>';


        
        	var div = document.createElement('div');
        	div.className = 'section last';
        	div.innerHTML = html.join('');
        	followingNode = peopleNode.parentNode;
        	followingNode.parentNode.insertBefore(div, followingNode);
        }
        