﻿Ext.namespace('Vt.Search');



Ext.onReady(function(){
	Ext.QuickTips.init();
	//	alert('OK');
	/*	var datePicker = new Ext.DatePicker({
	 renderTo: 'datePicker'
	 }).show();*/
	var province = new Vt.Search.BtnPanel({
		renderTo: 'province'
	});
	
	var ricerca = new Vt.Search.SearchForm({
		renderTo: 'ricerca'
	});
	
	var resultMap = new Vt.Search.MapPanel({
		renderTo: 'resultMap',
		store: Vt.Search.store,
		hidden: true,
		width: 500,
		height: 300,
		zoomLevel: 7,
		bodyStyle: {
			'margin-left': 'auto',
			'margin-right': 'auto',
			'text-align': 'center'
		},
		gmapType: 'map',
		mapConfOpts: ['enableScrollWheelZoom', 'enableDoubleClickZoom', 'enableDragging'],
		mapControls: ['GSmallMapControl', 'GMapTypeControl', 'NonExistantControl'],
		setCenter: {
			lat: 43.288075256347656,
			lng: 11.12460708618164
		}
	});
	
	var resulList = new Vt.Search.ResultList({
		renderTo: 'resultList'
	});
Ext.QuickTips.register({
    target: Vt.Search.SearchObjects,
//    title: 'My Tooltip',
    text: 'Selezionare almeno una tipologia',
    width: 100,
    dismissDelay: 0
});});
