<xen:if is="{$search.search_query} AND {$page} < 2">
<ul class="tabs Tabs" data-panes="#xfgcs_Panes > li">
<li><a href="{xen:link search, $search}#gcs">Results from Google Custom Search</a></li>
<li><a href="{xen:link search, $search}#xf">Results from our forum only</a></li>
</ul>
<br/>
<ul id="xfgcs_Panes">
<li id="gcs">
<div id="cse" style="padding: 10px; margin: 10px auto; border: 1px solid #a5cae4; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; -khtml-border-radius: 10px;">Loading results from search.tmswiki.org ...</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : ''});
google.setOnLoadCallback(function() {
var customSearchOptions = {};
var customSearchControl = new google.search.CustomSearchControl(
'012738456707262399698:srlyqkszdjg',
customSearchOptions
);
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchResultsOnly();
customSearchControl.draw('cse', options);
customSearchControl.execute('{$search.search_query}');
}, true);
</script>
</li>
<li id="xf">
</xen:if>