/**
*	A LouGIS library by Lounaispaikka.
*	@copyright Lounaispaikka, www.lounaispaikka.fi <CC BY-SA 3.0>
*	@version 2011-12-19T20:49:15+02:00
*/
Ext.namespace("Ext.ux.LouGIS.Window");
Ext.ux.LouGIS.Window.Search=Ext.extend(Ext.Window,{constructor:function(a){Ext.apply(this,a);Ext.ux.LouGIS.Window.Search.superclass.constructor.call(this,{title:t(""),layout:"fit",layoutConfig:{align:"stretch",pack:"start",animate:true},width:maxElementWidth(400),height:maxElementHeight(120),plain:true,border:false,resizable:true,maximizable:true,collapsible:true,buttonAlign:"left",closable:true,bodyStyle:"padding: 5px;"});var b=new Ext.form.TextField({anchor:"100%"});a=new Ext.Button({text:t(""),
handler:function(){var c=b.getValue();c.length>2&&new Ext.ux.LouGIS.Window.SearchResults({keyword:c})}});this.add(new Ext.form.FormPanel({header:false,hideLabels:true,items:[b],buttons:[a],border:false}));this.show()}});

