<?php
/**
* @package   Warp Theme Framework
* @file      default.php
* @version   5.5.7
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright  2007 - 2010 YOOtheme GmbH
* @license   YOOtheme Proprietary Use License (http://www.yootheme.com/license)
*/

// add javascript
$warp =& Warp::getInstance();
$warp->system->document->addScript($warp->path->url('js:search.js'));
	
?>

<div id="searchbox">
	<form action="index.php" method="post" role="search">
		<button class="magnifier" type="submit" value="Search"></button>
		<input type="text" value="" name="searchword" placeholder="search..." />
		<button class="reset" type="reset" value="Reset"></button>
		<input type="hidden" name="task"   value="search" />
		<input type="hidden" name="option" value="com_search" />
	</form>
</div>

<script type="text/javascript">
window.addEvent('domready', function(){
	new Warp.Search(document.getElement('#searchbox input'), {'url': 'index.php?option=com_search&tmpl=raw&type=json&ordering=&searchphrase=all', 'param': 'searchword'});
});
</script>