ITH = {
    map: null,
    mapPanel: null,
    popup: null,
    popupPos: null,
    querylayer: null,

    initPage: function() {
        new Ext.Viewport({
            layout: "border",
            hideBorders: true,
            items: [{
                region: "north",
                height: 65,
                autoLoad: "page/ithheader.html" 
			}, {
                region: "west",
				el:"west",
				width: 250,
				margins:'10 0 0 10',
				split: true,
	            border: false,
	            collapsible: true,
	            collapseMode: "mini",
				baseCls: "x-header-panel"
                //id: 'navPanel'
			}, {
                region: "center",
                layout: "border",
                items: [
				    new Ext.Panel({
                            region: "north",
							border: true,
							height: 30,
							baseCls: "x-header-panel",
							id: 'navPanel'
                        }),	
                        this.mapPanel
                ]
            }, {
                region: "south",
                height: 100,
                autoLoad: "page/ithfooter.html"
            }]
        });
    },
	
/*	initPage: function() {
		new Ext.Viewport({
            layout: "border",
            items: [
               new Ext.Panel({
                    region: "north",
                    items: [
                        new Ext.Panel({
                            region: "center",  
                            autoLoad: "page/ithheader.html"
                        })
                    ],
					height: 65,
                    border: false
                }), 
				new Ext.Panel({
                    region: "west",
					el:"west",
					width: 200,
					margins:'10 0 0 10',
					split: true,
				    border: false,
				    collapsible: true,
					baseCls: "x-header-panel"
                }), 
                new Ext.Panel({
                    region: "center",
                    items: [
						new Ext.Panel({
                            region: "north",
							border: true,
							height: 30,
							baseCls: "x-header-panel",
							id: 'navPanel'
                        }),	
                        this.mapPanel
                    ],
                    border: false
                }), 
				new Ext.Panel({
                    region: "south",
                    items: [
                        new Ext.Panel({
                            region: "center",  
                            autoLoad: "page/ithfooter.html"
                        })
                    ],
					height: 100,
                    border: false
                }), 
            ]
        });
	},	
*/	


	initNavPanel: function() {
		var navPanel = Ext.getCmp('navPanel');  
		
		/* add text */
		
	    /* Create data store */
	    // ....
		var store = new Ext.data.SimpleStore({
		    fields: ['isoCode','countryName'],
	        /*data: [
	                ['US', 'United States'],
	                ['DE', 'Germany'],
	                ['FR', 'France']
	        ]*/
			data: [
					['AFG','Afghanistan'],
					['ALB','Albania'],
					['DZA','Algeria'],
					['ASM','American Samoa'],
					['AND','Andorra'],
					['AGO','Angola'],
					['AIA','Anguilla'],
					['ATG','Antigua and Barbuda'],
					['ARG','Argentina'],
					['ARM','Armenia'],
					['ABW','Aruba'],
					['AUS','Australia'],
					['AUT','Austria'],
					['AZE','Azerbaijan'],
					['BHS','Bahamas'],
					['BHR','Bahrain'],
					['BGD','Bangladesh'],
					['BRD','Barbados'],
					['BLR','Belarus'],
					['BEL','Belgium'],
					['BLZ','Belize'],
					['BEN','Benin'],
					['BMU','Bermuda'],
					['BTN','Bhutan'],
					['BOL','Bolivia (Plurinational State of)'],
					['BIH','Bosnia and Herzegovina'],
					['BWA','Botswana'],
					['BRA','Brazil'],
					['VGB','British Virgin Islands'],
					['BRN','Brunei Darussalam'],
					['BGR','Bulgaria'],
					['BFA','Burkina Faso'],
					['BDI','Burundi'],
					['KHM','Cambodia'],
					['CMR','Cameroon'],
					['CAN','Canada'],
					['CPV','Cape Verde'],
					['CYM','Cayman Islands'],
					['CAF','Central African Republic'],
					['TCD','Chad'],
					['CHL','Chile'],
					['CHN','China'],
					['CXR','Christmas Island'],
					['COL','Colombia'],
					['COM','Comoros'],
					['COG','Congo'],
					['COD','Congo, Democratic Republic of the'],
					['COK','Cook Islands'],
					['CRI','Costa Rica'],
					['CIV','Cote d Ivoire'],
					['HRV','Croatia'],
					['CUB','Cuba'],
					['CYP','Cyprus'],
					['CZE','Czech Republic'],
					['DNK','Denmark'],
					['DJI','Djibouti'],
					['DMA','Dominica'],
					['DOM','Dominican Republic'],
					['ECU','Ecuador'],
					['EGY','Egypt'],
					['SLV','El Salvador'],
					['GNQ','Equatorial Guinea'],
					['ERI','Eritrea'],
					['EST','Estonia'],
					['ETH','Ethiopia'],
					['FLK','Falkland Islands (Malvinas)'],
					['FRO','Faroe Islands'],
					['FJI','Fiji'],
					['FIN','Finland'],
					['FRA','France'],
					['GUF','French Guiana'],
					['PYF','French Polynesia'],
					['GAB','Gabon'],
					['GMB','Gambia'],
					['GEO','Georgia'],
					['DEU','Germany'],
					['GHA','Ghana'],
					['GIB','Gibraltar'],
					['GRC','Greece'],
					['GRL','Greenland'],
					['GRD','Grenada'],
					['GLP','Guadeloupe'],
					['GUM','Guam'],
					['GTM','Guatemala'],
					['GIN','Guinea'],
					['GNB','Guinea-Bissau'],
					['GUY','Guyana'],
					['HTI','Haiti'],
					['HND','Honduras'],
					['HUN','Hungary'],
					['ISL','Iceland'],
					['IND','India'],
					['IDN','Indonesia'],
					['IRN','Iran (Islamic Republic of)'],
					['IRQ','Iraq'],
					['IRL','Ireland'],
					['ISR','Israel'],
					['ITA','Italy'],
					['JAM','Jamaica'],
					['JPN','Japan'],
					['JOR','Jordan'],
					['KAZ','Kazakhstan'],
					['KEN','Kenya'],
					['KIR','Kiribati'],
					['PRK','Korea, Democratic People s Republic of'],
					['KOR','Korea, Republic of'],
					['KWT','Kuwait'],
					['KGZ','Kyrgyzstan'],
					['LAO','Lao People Democratic Republic'],
					['LVA','Latvia'],
					['LBN','Lebanon'],
					['LSO','Lesotho'],
					['LBR','Liberia'],
					['LBY','Libyan Arab Jamahiriya'],
					['LIE','Liechtenstein'],
					['LTU','Lithuania'],
					['LUX','Luxembourg'],
					['MKD','Macedonia, The former Yugoslav Republic of'],
					['MDG','Madagascar'],
					['MWI','Malawi'],
					['MYS','Malaysia'],
					['MDV','Maldives'],
					['MLI','Mali'],
					['MLT','Malta'],
					['MHL','Marshall Islands'],
					['MTQ','Martinique'],
					['MRT','Mauritania'],
					['MUS','Mauritius'],
					['MYT','Mayotte'],
					['MEX','Mexico'],
					['FSM','Micronesia (Federated States of)'],
					['MCO','Monaco'],
					['MNG','Mongolia'],
					['MGO','Montenegro'],
					['MSR','Montserrat'],
					['MAR','Morocco'],
					['MOZ','Mozambique'],
					['MMR','Myanmar'],
					['NAM','Namibia'],
					['NRU','Nauru'],
					['NPL','Nepal'],
					['NLD','Netherlands'],
					['ANT','Netherlands Antilles'],
					['NCL','New Caledonia'],
					['NZL','New Zealand'],
					['NIC','Nicaragua'],
					['NER','Niger'],
					['NGA','Nigeria'],
					['NIU','Niue'],
					['NFK','Norfolk Island'],
					['MNP','Northern Mariana Islands'],
					['NOR','Norway'],
					['OMN','Oman'],
					['PAK','Pakistan'],
					['PLW','Palau'],
					['PAN','Panama'],
					['PNG','Papua New Guinea'],
					['PRY','Paraguay'],
					['PER','Peru'],
					['PHL','Philippines'],
					['PCN','Pitcairn Island'],
					['POL','Poland'],
					['PRT','Portugal'],
					['PRI','Puerto Rico'],
					['QAT','Qatar'],
					['MDA','Republic of Moldova'],
					['REU','Reunion'],
					['ROU','Romania'],
					['RUS','Russian Federation'],
					['RWA','Rwanda'],
					['SHN','Saint Helena'],
					['KNA','Saint Kitts and Nevis'],
					['LCA','Saint Lucia'],
					['SPM','Saint Pierre and Miquelon'],
					['VCT','Saint Vincent and the Grenadines'],
					['WSM','Samoa'],
					['SMR','San Marino'],
					['STP','Sao Tome and Principe'],
					['SAU','Saudi Arabia'],
					['SEN','Senegal'],
					['SRB','Serbia'],
					['SYC','Seychelles'],
					['SLE','Sierra Leone'],
					['SGP','Singapore'],
					['SVK','Slovakia'],
					['SVN','Slovenia'],
					['SLB','Solomon Islands'],
					['SOM','Somalia'],
					['ZAF','South Africa'],
					['ESP','Spain'],
					['LKA','Sri Lanka'],
					['SDN','Sudan'],
					['SUR','Suriname'],
					['SWZ','Swaziland'],
					['SWE','Sweden'],
					['CHE','Switzerland'],
					['SYR','Syrian Arab Republic'],
					['TJK','Tajikistan'],
					['TZA','Tanzania, United Republic of'],
					['THA','Thailand'],
					['TLS','Timor-Leste'],
					['TGO','Togo'],
					['TKL','Tokelau'],
					['TON','Tonga'],
					['TTO','Trinidad and Tobago'],
					['TUN','Tunisia'],
					['TUR','Turkey'],
					['TKM','Turkmenistan'],
					['TUV','Tuvalu'],
					['UGA','Uganda'],
					['UKR','Ukraine'],
					['ARE','United Arab Emirates'],
					['GBR','United Kingdom (with Channel Islands and Isle of Man)'],
					['USA','United States of America'],
					['URY','Uruguay'],
					['UZB','Uzbekistan'],
					['VUT','Vanuatu'],
					['VEN','Venezuela, Bolivarian Republic of'],
					['VNM','Viet Nam'],
					['VIR','Virgin Islands (USA)'],
					['YEM','Yemen'],
					['ZMB','Zambia'],
					['ZWE','Zimbabwe']
			]
		});
		
	    /* Build combo */
		var combo = new Ext.form.ComboBox({
		    store: store,
		    displayField:'countryName',
			hiddenName:'isoCode',
		    mode: 'local',
		    triggerAction: 'all',
		    emptyText:'Select a country...',
			listeners: {
                select : function(combo, record, index) {
					this.onSelectRecenterMap(combo);
                    },
                scope: this
            },
			forceSelection: true,
			listWidth : 250,
		    selectOnFocus:true
			});
			
	   /*combo.on('select', function() {
			alert(combo.getValue());
			var countryExtent = new OpenLayers.Bounds(-12318562.920451, -5680688.644059, 16799301.46021,-742165.671446);
			
			mapPanel.zoomToExtent(countryExtent);
			});
	   */
	   //var size = this.map.getSize();
	   navPanel.add(combo);

	   /* Refresh layout */
       navPanel.doLayout();
	},
	
	onSelectRecenterMap: function(combo) {
        // center map to country extent
		//alert(combo.getValue());
		if (combo.getValue()== 'Afghanistan') {
			var countryExtent = new OpenLayers.Bounds(60.5041656494,29.4061050415,74.9157409667,38.4721145629);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Albania') {
	        var countryExtent = new OpenLayers.Bounds(19.2824974060,39.6447219848,21.0541648864,42.6619415283);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Algeria') {
	        var countryExtent = new OpenLayers.Bounds(-8.6672229766,18.9763870239,11.9864749908,37.0913848876);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'American Samoa') {
	        var countryExtent = new OpenLayers.Bounds(-170.8261108398,-14.3755550384,-169.4383239746,-14.1663894653);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Andorra') {
	        var countryExtent = new OpenLayers.Bounds(1.4213888645,42.4361038208,1.7817196846,42.6563873291);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Angola') {
	        var countryExtent = new OpenLayers.Bounds(11.6633319854,-18.0163917541,24.0844421386,-4.3889913558);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Anguilla') {
	        var countryExtent = new OpenLayers.Bounds(-63.1677780151,18.1644439697,-62.9694519042,18.2766647338);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Antigua and Barbuda') {
	        var countryExtent = new OpenLayers.Bounds(-61.8911132812,16.9897193908,-61.6663894653,17.7249984741);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Argentina') {
	        var countryExtent = new OpenLayers.Bounds(-73.5836181640,-55.0516738891,-53.6497268676,-21.7805213928);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Armenia') {
	        var countryExtent = new OpenLayers.Bounds(43.4538879394,38.8411483764,46.6224899291,41.2970504760);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Aruba') {
	        var countryExtent = new OpenLayers.Bounds(-70.0633392333,12.4111099243,-69.8733367919,12.6311092376);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Australia') {
	        var countryExtent = new OpenLayers.Bounds(112.9072113037,-54.7538909912,159.1018981933,-10.0513896942);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Austria') {
	        var countryExtent = new OpenLayers.Bounds(9.5335693359,46.4074935913,17.1663856506,49.0188827514);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Azerbaijan') {
	        var countryExtent = new OpenLayers.Bounds(44.7788619995,38.3891525268,50.3749923706,41.8970565795);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bahamas') {
	        var countryExtent = new OpenLayers.Bounds(-78.9788970947,20.9152755737,-72.7375030517,26.9291648864);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bahrain') {
	        var countryExtent = new OpenLayers.Bounds(50.4530487060,25.5719413757,50.8224945068,26.2888870239);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bangladesh') {
	        var countryExtent = new OpenLayers.Bounds(88.0433197021,20.7380485534,92.6693420410,26.6319389343);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Barbados') {
	        var countryExtent = new OpenLayers.Bounds(-59.6594467163,13.0505542755,-59.4269485473,13.3372211456);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Belarus') {
	        var countryExtent = new OpenLayers.Bounds(23.1653995513,51.2518463134,32.7413787841,56.1677703857);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Belgium') {
	        var countryExtent = new OpenLayers.Bounds(2.5416665077,49.5041656494,6.3982038497,51.5036087036);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Belize') {
	        var countryExtent = new OpenLayers.Bounds(-89.2164001464,15.8898506164,-87.7789001464,18.4899024963);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Benin') {
	        var countryExtent = new OpenLayers.Bounds(0.7766666412,6.2187213897,3.8549995422,12.3966579437);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bermuda') {
	        var countryExtent = new OpenLayers.Bounds(-64.8761138916,32.2605514526,-64.6386260986,32.3822174072);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bhutan') {
	        var countryExtent = new OpenLayers.Bounds(88.7519378662,26.7030487060,92.1152648925,28.3252754211);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bolivia (Plurinational State of)') {
	        var countryExtent = new OpenLayers.Bounds(-69.6561889648,-22.9011116027,-57.5211181640,-9.6791954040);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bosnia and Herzegovina') {
	        var countryExtent = new OpenLayers.Bounds(15.7363872528,42.5658264160,19.6217651367,45.2659454345);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Botswana') {
	        var countryExtent = new OpenLayers.Bounds(19.9961090087,-26.8755569458,29.3736228942,-17.7813911437);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Brazil') {
	        var countryExtent = new OpenLayers.Bounds(-74.0105590820,-33.7438964843,-29.8400001525,5.2738885879);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'British Virgin Islands') {
	        var countryExtent = new OpenLayers.Bounds(-64.7002868652,18.3838882446,-64.2691802978,18.7486076354);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Brunei Darussalam') {
	        var countryExtent = new OpenLayers.Bounds(114.0950775146,4.0174989700,115.3602600097,5.0530538558);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Bulgaria') {
	        var countryExtent = new OpenLayers.Bounds(22.3652763366,41.2430496215,28.6063842773,44.2247161865);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Burkina Faso') {
	        var countryExtent = new OpenLayers.Bounds(-5.5211114883,9.3938884735,2.3979253768,15.0827770233);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Burundi') {
	        var countryExtent = new OpenLayers.Bounds(28.9838867187,-4.4480562210,30.8538856506,-2.2980556488);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cambodia') {
	        var countryExtent = new OpenLayers.Bounds(102.3455429077,10.4227390289,107.6363830566,14.7086181640);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cameroon') {
	        var countryExtent = new OpenLayers.Bounds(8.5022220611,1.6541664600,16.2072219848,13.0852775573);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Canada') {
	        var countryExtent = new OpenLayers.Bounds(-141.0029907226,41.6755523681,-52.6144485473,83.1138763427);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cape Verde') {
	        var countryExtent = new OpenLayers.Bounds(-25.3605575561,14.8111095428,-22.6658363342,17.1930541992);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cayman Islands') {
	        var countryExtent = new OpenLayers.Bounds(-81.4011230468,19.2647209167,-79.7327880859,19.7622184753);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Central African Republic') {
	        var countryExtent = new OpenLayers.Bounds(14.4186096191,2.2212595939,27.4602775573,11.0013885498);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Chad') {
	        var countryExtent = new OpenLayers.Bounds(13.4616661071,7.4577770233,24.0027465820,23.4505538940);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Chile') {
	        var countryExtent = new OpenLayers.Bounds(-109.4491729736,-55.9197235107,-66.4191741943,-17.5052795410);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'China') {
	        var countryExtent = new OpenLayers.Bounds(73.6172027588,18.1688842773,134.7735900878,53.5544357299);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Christmas Island') {
	        var countryExtent = new OpenLayers.Bounds(105.6289978027,-10.5109701156,105.7518997192,-10.3840799331);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Colombia') {
	        var countryExtent = new OpenLayers.Bounds(-81.7227783203,-4.2368736267,-66.8704528808,13.3786106109);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Comoros') {
	        var countryExtent = new OpenLayers.Bounds(43.2136077880,-12.3830566406,44.5308303833,-11.3669452667);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Congo') {
	        var countryExtent = new OpenLayers.Bounds(11.1406612396,-5.0194444656,18.6436080932,3.7130551338);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Congo, Democratic Republic of the') {
	        var countryExtent = new OpenLayers.Bounds(12.2145519256,-13.4580574035,31.3027763366,5.3813886642);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cook Islands') {
	        var countryExtent = new OpenLayers.Bounds(-165.8502807617,-21.9408340454,-157.3058776855,-8.9480571746);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Costa Rica') {
	        var countryExtent = new OpenLayers.Bounds(-85.9113922119,8.0256690979,-82.5614013671,11.2136096954);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cote d Ivoire') {
	        var countryExtent = new OpenLayers.Bounds(-8.6063842773,4.3447217941,-2.4877781867,10.7352561950);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Croatia') {
	        var countryExtent = new OpenLayers.Bounds(13.4963865280,42.3966598510,19.4261093139,46.5358276367);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cuba') {
	        var countryExtent = new OpenLayers.Bounds(-84.9533386230,19.8219413757,-74.1308441162,23.2041664123);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Cyprus') {
	        var countryExtent = new OpenLayers.Bounds(32.2691650390,34.5625495910,34.5905532836,35.6902770996);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Czech Republic') {
	        var countryExtent = new OpenLayers.Bounds(12.0937042236,48.5813789367,18.8522186279,51.0536041259);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Denmark') {
	        var countryExtent = new OpenLayers.Bounds(8.0872211456,54.5616607666,15.1499996185,57.7466659545);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Djibouti') {
	        var countryExtent = new OpenLayers.Bounds(41.7597198486,10.9419441223,43.4208297729,12.7083320617);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Dominica') {
	        var countryExtent = new OpenLayers.Bounds(-61.4913940429,15.1980552673,-61.2505569458,15.6319427490);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Dominican Republic') {
	        var countryExtent = new OpenLayers.Bounds(-72.0030670166,17.5402755737,-68.3222351074,19.9311103820);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Ecuador') {
	        var countryExtent = new OpenLayers.Bounds(-91.6638946533,-5.0091323852,-75.2160797119,1.4377777576);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Egypt') {
	        var countryExtent = new OpenLayers.Bounds(24.7066650390,21.7231027597,35.8172149658,31.6469421386);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'El Salvador') {
	        var countryExtent = new OpenLayers.Bounds(-90.1083374023,13.1563873291,-87.6847229003,14.4319820404);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Equatorial Guinea') {
	        var countryExtent = new OpenLayers.Bounds(5.6152772903,-1.4794445037,11.3538875579,3.7633333206);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Eritrea') {
	        var countryExtent = new OpenLayers.Bounds(36.4432830810,12.3638877868,43.1213836669,17.9948806762);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Estonia') {
	        var countryExtent = new OpenLayers.Bounds(21.8319396972,57.5222167968,28.1952743530,59.6683273315);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Ethiopia') {
	        var countryExtent = new OpenLayers.Bounds(32.9911041259,3.4063887596,47.9882431030,14.8836097717);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Falkland Islands (Malvinas)') {
	        var countryExtent = new OpenLayers.Bounds(-61.3158340454,-52.3430557250,-57.7313919067,-51.2494506835);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Faroe Islands') {
	        var countryExtent = new OpenLayers.Bounds(-7.4350004196,61.3883285522,-6.3886117935,62.3969421386);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Fiji') {
	        var countryExtent = new OpenLayers.Bounds(170.6984115277,-20.6744422912,180.0000000000,-12.4819431304);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Finland') {
	        var countryExtent = new OpenLayers.Bounds(19.5105552673,59.8049926757,31.5889282226,70.0888824462);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'France') {
	        var countryExtent = new OpenLayers.Bounds(-5.1347227096,41.3641662597,9.5622215270,51.0911102294);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'French Guiana') {
	        var countryExtent = new OpenLayers.Bounds(-54.6037826538,2.1122221946,-51.6477813720,5.7555551528);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'French Polynesia') {
	        var countryExtent = new OpenLayers.Bounds(-152.8797302246,-27.9155540466,-134.9414062500,-7.8883333206);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Gabon') {
	        var countryExtent = new OpenLayers.Bounds(8.6983318328,-3.9252772331,14.5205545425,2.3178982734);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Gambia') {
	        var countryExtent = new OpenLayers.Bounds(-16.8216667175,13.0599765777,-13.7986125946,13.8263874053);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Georgia') {
	        var countryExtent = new OpenLayers.Bounds(40.0029678344,41.0460968017,46.7108154296,43.5847167968);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Germany') {
	        var countryExtent = new OpenLayers.Bounds(5.8641662597,47.2747192382,15.0388870239,55.0566635131);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Ghana') {
	        var countryExtent = new OpenLayers.Bounds(-3.2491669654,4.7263879776,1.2027776241,11.1666660308);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Gibraltar') {
	        var countryExtent = new OpenLayers.Bounds(-5.3562402725,36.1121749877,-5.3345084190,36.1633071899);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Greece') {
	        var countryExtent = new OpenLayers.Bounds(19.3761100769,34.8088836669,28.2380485534,41.7483215332);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Greenland') {
	        var countryExtent = new OpenLayers.Bounds(-73.0536041258,59.7902755737,-12.1550006866,83.6235961913);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Grenada') {
	        var countryExtent = new OpenLayers.Bounds(-61.7897262573,11.9963865280,-61.4186172485,12.5291652679);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guadeloupe') {
	        var countryExtent = new OpenLayers.Bounds(-63.1466674804,15.8699989318,-60.9886169433,18.1219444274);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guam') {
	        var countryExtent = new OpenLayers.Bounds(144.6341552734,13.2349967956,144.9533081054,13.6536102294);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guatemala') {
	        var countryExtent = new OpenLayers.Bounds(-92.2467803955,13.7458324432,-88.2147369384,17.8211097717);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guinea') {
	        var countryExtent = new OpenLayers.Bounds(-15.0811119079,7.1939268112,-7.6465358734,12.6774997711);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guinea-Bissau') {
	        var countryExtent = new OpenLayers.Bounds(-16.7177696228,10.9227771759,-13.6430568695,12.6847209930);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Guyana') {
	        var countryExtent = new OpenLayers.Bounds(-61.3897247314,1.1855554580,-56.4706344604,8.5352764129);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Haiti') {
	        var countryExtent = new OpenLayers.Bounds(-74.4677886962,18.0227775573,-71.6288909912,20.0922203063);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Honduras') {
	        var countryExtent = new OpenLayers.Bounds(-89.3519592285,12.9797210693,-83.1318511962,17.4202766418);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Hungary') {
	        var countryExtent = new OpenLayers.Bounds(16.1118049621,45.7483291625,22.8948040008,48.5766601562);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Iceland') {
	        var countryExtent = new OpenLayers.Bounds(-24.5422248840,63.3899993896,-13.4994449615,66.5361022949);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'India') {
	        var countryExtent = new OpenLayers.Bounds(68.1394348144,6.7455539703,97.3805389404,35.5061035156);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Indonesia') {
	        var countryExtent = new OpenLayers.Bounds(95.0080261230,-10.9300003051,141.0070190429,5.9138879776);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Iran (Islamic Republic of)') {
	        var countryExtent = new OpenLayers.Bounds(44.0341567993,25.0752754211,63.3419342041,39.7805404663);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Iraq') {
	        var countryExtent = new OpenLayers.Bounds(38.7947006225,29.0616607666,48.5638809204,37.3847198486);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Ireland') {
	        var countryExtent = new OpenLayers.Bounds(-10.4747238159,51.4455490112,-6.0130558013,55.3802719116);
		    this.map.zoomToExtent(countryExtent);
		}	
		if (combo.getValue()== 'Israel') {
	        var countryExtent = new OpenLayers.Bounds(34.2675781250,29.4867057800,35.6830520629,33.2702713012);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Italy') {
	        var countryExtent = new OpenLayers.Bounds(6.6197595596,36.6491622924,18.5149993896,47.0947189331);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Jamaica') {
	        var countryExtent = new OpenLayers.Bounds(-78.3739013671,17.6966629028,-76.2211151123,18.5224990844);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Japan') {
	        var countryExtent = new OpenLayers.Bounds(122.9352569580,24.2508316040,153.9657897949,45.4863815307);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Jordan') {
	        var countryExtent = new OpenLayers.Bounds(34.9599990844,29.1888885498,39.3011093139,33.3775939941);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Kazakhstan') {
	        var countryExtent = new OpenLayers.Bounds(46.4991607666,40.5944366455,87.3482055664,55.4447097778);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Kenya') {
	        var countryExtent = new OpenLayers.Bounds(33.9072189331,-4.6696176528,41.9051666259,4.6224994659);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Kiribati') {
	        var countryExtent = new OpenLayers.Bounds(150.6621113819,-11.4666652679,176.8502502441,4.7258319854);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Korea, Democratic People s Republic of') {
	        var countryExtent = new OpenLayers.Bounds(124.3227691650,37.6713790893,130.6974182128,43.0083236694);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Korea, Republic of') {
	        var countryExtent = new OpenLayers.Bounds(124.6097106933,33.1902694702,130.9241333007,38.6252441406);
		    this.map.zoomToExtent(countryExtent);
		} 
		if (combo.getValue()== 'Kuwait') {
	        var countryExtent = new OpenLayers.Bounds(46.5469436645,28.5388832092,48.4165878295,30.0844383239);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Kyrgyzstan') {
	        var countryExtent = new OpenLayers.Bounds(69.2488708496,39.1918563842,80.2833251953,43.2169036865);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Lao People s Democratic Republic') {
	        var countryExtent = new OpenLayers.Bounds(100.0913696289,13.9266643524,107.6952514648,22.5008316040);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Latvia') {
	        var countryExtent = new OpenLayers.Bounds(20.9686050415,55.6748352050,28.2377738952,58.0844345092);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Lebanon') {
	        var countryExtent = new OpenLayers.Bounds(35.1008300781,33.0619430541,36.6237411499,34.6474990844);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Lesotho') {
	        var countryExtent = new OpenLayers.Bounds(27.0111083984,-30.6505279541,29.4561080932,-28.5694465637);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Liberia') {
	        var countryExtent = new OpenLayers.Bounds(-11.4923305511,4.3433332443,-7.3666667938,8.5127773284);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Libyan Arab Jamahiriya') {
	        var countryExtent = new OpenLayers.Bounds(9.3038883209,19.4990653991,25.1527748107,33.1711349487);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Liechtenstein') {
	        var countryExtent = new OpenLayers.Bounds(9.4746370315,47.0574569702,9.6361103057,47.2745437622);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Lithuania') {
	        var countryExtent = new OpenLayers.Bounds(20.9428329467,53.8880462646,26.8197174072,56.4508285522);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Luxembourg') {
	        var countryExtent = new OpenLayers.Bounds(5.7344436645,49.4483261108,6.5247220993,50.1822204589);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Macedonia, The former Yugoslav Republic of') {
	        var countryExtent = new OpenLayers.Bounds(20.4577751159,40.8558883666,23.0327758789,42.3613815307);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Madagascar') {
	        var countryExtent = new OpenLayers.Bounds(43.2368240356,-25.5883369445,50.5013885498,-11.9455566406);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Malawi') {
	        var countryExtent = new OpenLayers.Bounds(32.6788864135,-17.1352806091,35.9241638183,-9.3733348846);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Malaysia') {
	        var countryExtent = new OpenLayers.Bounds(99.6408233642,0.8527776002,119.2758178710,7.3536100387);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Maldives') {
	        var countryExtent = new OpenLayers.Bounds(72.6877593994,-0.6908333301,73.7536010742,7.0963878631);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mali') {
	        var countryExtent = new OpenLayers.Bounds(-12.2448329925,10.1411094665,4.2524995803,25.0002746582);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Malta') {
	        var countryExtent = new OpenLayers.Bounds(14.1808319091,35.7999954223,14.5699996948,36.0749969482);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Marshall Islands') {
	        var countryExtent = new OpenLayers.Bounds(162.3235778808,5.6002769470,172.0905151367,14.5983314514);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Martinique') {
	        var countryExtent = new OpenLayers.Bounds(-61.2316741943,14.4027767181,-60.8166732788,14.8802776336);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mauritania') {
	        var countryExtent = new OpenLayers.Bounds(-17.0755577087,14.7253208160,-4.8061113357,27.2904586791);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mauritius') {
	        var countryExtent = new OpenLayers.Bounds(56.5072174072,-20.5205574035,63.4986038208,-10.3166675567);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mayotte') {
	        var countryExtent = new OpenLayers.Bounds(45.0391616821,-12.9925003051,45.2933273315,-12.6625003814);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mexico') {
	        var countryExtent = new OpenLayers.Bounds(-118.4041671752,14.5505466461,-86.7014007568,32.7184562683);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Micronesia (Federated States of)') {
	        var countryExtent = new OpenLayers.Bounds(138.0583190917,5.2616662979,163.0433044433,9.5894412994);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Republic of Moldova') {
	        var countryExtent = new OpenLayers.Bounds(26.6349945068,45.4486465454,30.1332283020,48.4683227539);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Monaco') {
	        var countryExtent = new OpenLayers.Bounds(7.3863887786,43.7275466918,7.4392929077,43.7730484008);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mongolia') {
	        var countryExtent = new OpenLayers.Bounds(87.7583312988,41.5813827514,119.9349822998,52.1436080932);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Montenegro') {
	        var countryExtent = new OpenLayers.Bounds(18.4650620796,41.8489990234,20.3945450686,43.5561065673);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Montserrat') {
	        var countryExtent = new OpenLayers.Bounds(-62.2372283935,16.6713867187,-62.1375045776,16.8136100769);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Morocco') {
	        var countryExtent = new OpenLayers.Bounds(-13.1749610900,27.6642379760,-1.0102779865,35.9191665649);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Mozambique') {
	        var countryExtent = new OpenLayers.Bounds(30.2130165100,-26.8602790832,40.8461074829,-10.4711112976);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Myanmar') {
	        var countryExtent = new OpenLayers.Bounds(92.2049865722,9.7863864898,101.1708221435,28.5491638183);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Namibia') {
	        var countryExtent = new OpenLayers.Bounds(11.7163887023,-28.9625015258,25.2644309997,-16.9527778625);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Nauru') {
	        var countryExtent = new OpenLayers.Bounds(166.9044189453,-0.5522222518,166.9585876464,-0.4933333396);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Nepal') {
	        var countryExtent = new OpenLayers.Bounds(80.0522003173,26.3647193908,88.1958160400,30.4249954223);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Netherlands') {
	        var countryExtent = new OpenLayers.Bounds(3.3708658218,50.7538833618,7.2116661071,53.5113830566);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Netherlands Antilles') {
	        var countryExtent = new OpenLayers.Bounds(-69.1636199951,12.0205545425,-62.9363937377,18.0703659057);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'New Caledonia') {
	        var countryExtent = new OpenLayers.Bounds(159.9222106933,-22.6941642761,171.3138732910,-19.1144447326);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'New Zealand') {
	        var countryExtent = new OpenLayers.Bounds(148.0875000000,-52.5780563354,179.0827331542,-29.2230567932);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Nicaragua') {
	        var countryExtent = new OpenLayers.Bounds(-87.6930694580,10.7086105346,-82.7213897705,15.0222206115);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Niger') {
	        var countryExtent = new OpenLayers.Bounds(0.1666666567,11.6932735443,15.9966659545,23.5223045349);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Nigeria') {
	        var countryExtent = new OpenLayers.Bounds(2.6924996376,4.2724990844,14.6580543518,13.8914985656);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Niue') {
	        var countryExtent = new OpenLayers.Bounds(-169.9530639648,-19.1455574035,-169.7814025878,-18.9633331298);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Norfolk Island') {
	        var countryExtent = new OpenLayers.Bounds(167.9094238281,-29.0811119079,168.0000000000,-29.0005569458);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Northern Mariana Islands') {
	        var countryExtent = new OpenLayers.Bounds(144.8985900878,14.1052761077,145.8707885742,20.5563850402);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Norway') {
	        var countryExtent = new OpenLayers.Bounds(4.6199998855,57.9877777099,31.0780525207,71.1547088623);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Oman') {
	        var countryExtent = new OpenLayers.Bounds(51.9992904663,16.6427783966,59.8472213745,26.3823890686);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Pakistan') {
	        var countryExtent = new OpenLayers.Bounds(60.8663024902,23.6880493164,77.8239288330,37.0625915527);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Palau') {
	        var countryExtent = new OpenLayers.Bounds(132.2083129882,5.2922210693,134.6588745117,7.7294435501);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Panama') {
	        var countryExtent = new OpenLayers.Bounds(-83.0302886962,7.2061109542,-77.1983337402,9.6202774047);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Papua New Guinea') {
	        var countryExtent = new OpenLayers.Bounds(140.8588562011,-11.6424999237,159.5230407714,-1.0983333587);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Paraguay') {
	        var countryExtent = new OpenLayers.Bounds(-62.6437683105,-27.5883369445,-54.2438964843,-19.2966690063);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Peru') {
	        var countryExtent = new OpenLayers.Bounds(-81.3563995361,-18.3485450744,-68.6739044189,-0.0313888937);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Philippines') {
	        var countryExtent = new OpenLayers.Bounds(116.9499969482,4.6413879394,126.5980377197,21.1180534362);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Pitcairn Island') {
	        var countryExtent = new OpenLayers.Bounds(-130.1074829101,-25.0822257995,-124.7711334228,-24.3250045776);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Poland') {
	        var countryExtent = new OpenLayers.Bounds(14.1455545425,49.0019378662,24.1447181701,54.8369369506);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Portugal') {
	        var countryExtent = new OpenLayers.Bounds(-31.2900009155,32.6374969482,-6.1872224807,42.1527404785);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Puerto Rico') {
	        var countryExtent = new OpenLayers.Bounds(-67.9383392333,17.9222221374,-65.2419586181,18.5194435119);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Qatar') {
	        var countryExtent = new OpenLayers.Bounds(50.7519378662,24.5560417175,51.6158294677,26.1536102294);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Reunion') {
	        var countryExtent = new OpenLayers.Bounds(55.2197189331,-21.3738899230,55.8530502319,-20.8563919067);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Romania') {
	        var countryExtent = new OpenLayers.Bounds(20.2610244750,43.6224365234,29.6724967956,48.2638854980);
		    this.map.zoomToExtent(countryExtent);
		} 
		if (combo.getValue()== 'Russian Federation') {
	        var countryExtent = new OpenLayers.Bounds(-33.4125000000,41.1960906982,180.0000000000,81.8519287109);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Rwanda') {
	        var countryExtent = new OpenLayers.Bounds(28.8533325195,-2.8266668319,30.8944435119,-1.0538890361);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saint Helena') {
	        var countryExtent = new OpenLayers.Bounds(-14.4161128997,-40.4038925170,-5.6452779769,-7.8830556869);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saint Kitts and Nevis') {
	        var countryExtent = new OpenLayers.Bounds(-62.8638916015,17.0916633605,-62.5341720581,17.4108314514);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saint Lucia') {
	        var countryExtent = new OpenLayers.Bounds(-61.0797271728,13.7094440460,-60.8780593872,14.1094436645);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saint Pierre and Miquelon') {
	        var countryExtent = new OpenLayers.Bounds(-56.3980560302,46.7472152709,-56.1441650390,47.1366577148);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saint Vincent and the Grenadines') {
	        var countryExtent = new OpenLayers.Bounds(-61.4541702270,12.5844440460,-61.1202850341,13.3841648101);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Samoa') {
	        var countryExtent = new OpenLayers.Bounds(-172.7806091308,-14.0575027465,-171.4286499023,-13.4605560302);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'San Marino') {
	        var countryExtent = new OpenLayers.Bounds(12.4038887023,43.8955535888,12.5116653442,43.9891662597);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Sao Tome and Principe') {
	        var countryExtent = new OpenLayers.Bounds(6.4644441604,0.0183333307,7.4641666412,1.7019443511);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Saudi Arabia') {
	        var countryExtent = new OpenLayers.Bounds(34.4922180175,16.3775024414,55.6661071777,32.1549415588);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Senegal') {
	        var countryExtent = new OpenLayers.Bounds(-17.5372238159,12.3017482757,-11.3675003051,16.6930541992);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Serbia') {
	        var countryExtent = new OpenLayers.Bounds(18.8291988771,41.8558273315,23.0168124620,46.1813888549);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Seychelles') {
	        var countryExtent = new OpenLayers.Bounds(46.2041625976,-9.7550010681,56.2861099243,-4.2800006866);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Sierra Leone') {
	        var countryExtent = new OpenLayers.Bounds(-13.2956104278,6.9236106872,-10.2641677856,9.9974994659);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Singapore') {
	        var countryExtent = new OpenLayers.Bounds(103.6408081054,1.2588887214,103.9988632202,1.4452774524);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Slovakia') {
	        var countryExtent = new OpenLayers.Bounds(16.8399963378,47.7372207641,22.5580520629,49.6008300781);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Slovenia') {
	        var countryExtent = new OpenLayers.Bounds(13.3830547332,45.4258193969,16.6078720092,46.8766632080);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Solomon Islands') {
	        var countryExtent = new OpenLayers.Bounds(155.5074768066,-11.8458328247,167.2099609375,-5.2930555343);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Somalia') {
	        var countryExtent = new OpenLayers.Bounds(40.9865951538,-1.6748681068,51.4126358032,11.9791660308);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'South Africa') {
	        var countryExtent = new OpenLayers.Bounds(16.4833297729,-34.8220024108,32.8904266357,-22.1363906860);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Spain') {
	        var countryExtent = new OpenLayers.Bounds(-18.1705589294,27.6374969482,4.3169441223,43.7722167968);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Sri Lanka') {
	        var countryExtent = new OpenLayers.Bounds(79.6519317626,5.9177770614,81.8916625976,9.8283309936);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Sudan') {
	        var countryExtent = new OpenLayers.Bounds(21.8277740478,3.4933943748,38.6074981689,23.1330718994);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Suriname') {
	        var countryExtent = new OpenLayers.Bounds(-58.0713958740,1.8355555534,-53.9841690063,6.0030546188);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Swaziland') {
	        var countryExtent = new OpenLayers.Bounds(30.7983322143,-27.3166694641,32.1333999633,-25.7283363342);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Sweden') {
	        var countryExtent = new OpenLayers.Bounds(11.1069431304,55.3391647338,24.1686096191,69.0603027343);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Switzerland') {
	        var countryExtent = new OpenLayers.Bounds(5.9661102294,45.8294372558,10.4889125823,47.8069381713);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Syrian Arab Republic') {
	        var countryExtent = new OpenLayers.Bounds(35.6144638061,32.3136062622,42.3791656494,37.2905426025);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tajikistan') {
	        var countryExtent = new OpenLayers.Bounds(67.3647003173,36.6718444824,75.1874847412,41.0502243041);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tanzania, United Republic of') {
	        var countryExtent = new OpenLayers.Bounds(29.3408317565,-11.7408351898,40.4368133544,-0.9972223043);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Thailand') {
	        var countryExtent = new OpenLayers.Bounds(97.3452606201,5.6311101913,105.6394271850,20.4552726745);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Timor-Leste') {
	        var countryExtent = new OpenLayers.Bounds(124.0885754553,-9.5110395869,127.3085937500,-8.1358337402);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Togo') {
	        var countryExtent = new OpenLayers.Bounds(-0.1497620046,6.1005458831,1.7993266582,11.1385402679);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tokelau') {
	        var countryExtent = new OpenLayers.Bounds(-172.5003356933,-9.3811111450,-171.2114257812,-8.5536136627);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tonga') {
	        var countryExtent = new OpenLayers.Bounds(-175.6847229003,-21.4541664123,-173.9061584472,-15.5602798461);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Trinidad and Tobago') {
	        var countryExtent = new OpenLayers.Bounds(-61.9244461059,10.0374984741,-60.5205612182,11.3461093902);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tunisia') {
	        var countryExtent = new OpenLayers.Bounds(7.4916658401,30.2343902587,11.5833320617,37.5394439697);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Turkey') {
	        var countryExtent = new OpenLayers.Bounds(25.6638832092,35.8174972534,44.8227615356,42.1099929809);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Turkmenistan') {
	        var countryExtent = new OpenLayers.Bounds(52.4400711059,35.1416625976,66.6724853515,42.7977752685);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Tuvalu') {
	        var countryExtent = new OpenLayers.Bounds(176.0663757324,-8.5612916946,179.2322845458,-5.6577777862);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Uganda') {
	        var countryExtent = new OpenLayers.Bounds(29.5708312988,-1.4761103391,35.0097198486,4.2227773666);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Ukraine') {
	        var countryExtent = new OpenLayers.Bounds(22.1514415740,44.3791503906,40.1797180175,52.3797149658);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'United Arab Emirates') {
	        var countryExtent = new OpenLayers.Bounds(51.5833282470,22.6333293914,56.3816604614,26.0841598510);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'United Kingdom (with Channel Islands and Isle of Man)') {
	        var countryExtent = new OpenLayers.Bounds(-8.6213893890,49.9116592407,1.7494442462,60.8444442749);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'United States of America') {
	        var countryExtent = new OpenLayers.Bounds(-179.1419982910,18.9238815307,-39.6000000000,71.3658142089);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Uruguay') {
	        var countryExtent = new OpenLayers.Bounds(-58.4386138916,-34.9488906860,-53.0930557250,-30.0966682434);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Uzbekistan') {
	        var countryExtent = new OpenLayers.Bounds(55.9974899291,37.1838760375,73.1730346679,45.5711059570);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Vanuatu') {
	        var countryExtent = new OpenLayers.Bounds(166.5166625976,-20.2541694641,170.2352294921,-13.0705547332);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Venezuela, Bolivarian Republic of') {
	        var countryExtent = new OpenLayers.Bounds(-73.3780670166,0.6486110687,-59.8013916015,12.1988887786);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Viet Nam') {
	        var countryExtent = new OpenLayers.Bounds(102.1407470703,8.5586090087,109.4663772583,23.3347206115);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Virgin Islands (USA)') {
	        var countryExtent = new OpenLayers.Bounds(-65.0269470214,17.6766662597,-64.5602874755,18.3777770996);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Yemen') {
	        var countryExtent = new OpenLayers.Bounds(42.5558319091,12.1061096191,54.4769439697,18.9993438720);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Zambia') {
	        var countryExtent = new OpenLayers.Bounds(21.9963874816,-18.0761260986,33.7022781372,-8.1916675567);
		    this.map.zoomToExtent(countryExtent);
		}
		if (combo.getValue()== 'Zimbabwe') {
	        var countryExtent = new OpenLayers.Bounds(25.2366638183,-22.4147644042,33.0730514526,-15.6161117553);
		    this.map.zoomToExtent(countryExtent);
		}
    },
	
    initMap: function() {
            // avoid pink tiles
            OpenLayers.IMAGE_RELOAD_ATTEMPTS = 5;
            OpenLayers.Util.onImageLoadErrorColor = "transparent";
            
            this.map = this.mapPanel.map;
            
			var dis = new OpenLayers.Layer.WMS(
		        "WHO disputed borders", "http://apps.who.int/tools/geoserver/wms?", {
		            layers: 'World_disputed_bordersareas_white',
		            styles: '',
		            format: 'image/gif',
		            transparent: 'true'
		        }, {
		            'buffer': 0,
		            'opacity': 0.9,
		            'isBaseLayer': false,
		            'wrapDateLine': false,
		            'visibility': true
		        });
				
			var nam = new OpenLayers.Layer.WMS(
		        "WHO country names", "http://apps.who.int/tools/geoserver/wms?", {
		            layers: 'WHO:member_states_label',
		            styles: '',
		            format: 'image/gif',
					tiled: 'yes',
		            transparent: 'true'
		        }, {
		            'buffer': 0,
		            'opacity': 0.9,
		            'isBaseLayer': false,
		            'wrapDateLine': false,
					'maxResolution': 0.17578125,
					//'maxResolution': 39135.51695,
		            'visibility': true
		        });
				
			var ith = new OpenLayers.Layer.WMS(
		        "ITH", "http://apps.who.int/tools/geoserver/wms?", {
		            layers: 'WHO:ith_list_new',
		            styles: '',
		            format: 'image/gif',
		            transparent: 'true'
		        }, {
		            'buffer': 0,
		            'opacity': 0.9,
		            'isBaseLayer': true,
		            'wrapDateLine': false,
		            'visibility': true
		        });
			
			var western = new OpenLayers.Layer.WMS(
		        "Western Sahara", "http://apps.who.int/tools/geoserver/wms?", {
		            layers: 'WHO:western_sahara',
		            styles: '',
		            format: 'image/gif',
		            transparent: 'true'
		        }, {
		            'buffer': 0,
		            'opacity': 0.9,
		            'isBaseLayer': false,
		            'wrapDateLine': false,
		            'visibility': true
		        });
											  
			// add the created layers to the map
            // (if you want custom layers to show up they must be here as well)
            //this.map.addLayers([countries, yahoosat, gsat_n, gsat, veaer]); 
			this.map.addLayers([western,dis,ith,nam]); 
			this.map.setCenter(new OpenLayers.LonLat(5, 15), 2);

	        //this.map.zoomToMaxExtent();
			//var initialExtent = new OpenLayers.Bounds(-17853592, -8219311, 19310179, 16251347);
			//this.map.zoomToExtent(initialExtent);
			// add WMS layers from the WMC document to the map.
            // This will also set the map extent.

            this.map.events.register('click', this, function (e) {
              
				this.map.queryLayer = this.map.getLayersByName("ITH")[0];
				if(!this.map.queryLayer) {
                    return;
                }
                document.body.style.cursor = "wait";

                this.popupPos = this.map.getLonLatFromPixel(e.xy);
    
                var url = this.map.queryLayer.getFullRequestString({
                                REQUEST: "GetFeatureInfo",
                                EXCEPTIONS: "application/vnd.ogc.se_xml",
                                BBOX: this.map.getExtent().toBBOX(),
                                X: e.xy.x,
                                Y: e.xy.y,
                                INFO_FORMAT: 'text/html',
                                QUERY_LAYERS: this.map.queryLayer.params.LAYERS,
                                FEATURE_COUNT: 50,
                                WIDTH: this.map.size.w,
                                HEIGHT: this.map.size.h});
                OpenLayers.loadURL(url, '', this, setHTML.bind(this));
                Event.stop(e);
        });
        
        function setHTML(response) {
            if(this.popup) {
                this.map.removePopup(this.popup);
                this.popup.destroy();
                this.popup = null;
            }
            document.body.style.cursor = "";
            if (response && response.responseText.indexOf("<body>\n</body>") == -1) {
                popup = new OpenLayers.Popup.FramedCloud("incident", this.popupPos, new OpenLayers.Size(100, 100), response.responseText, null, true);
                this.popup = popup;
                this.map.addPopup(popup);
            }
        }
    },
    
    init: function() {
        /**
         * The commercial layers (Google, Virtual Earth, and Yahoo) are
         * in a custom projection - we're calling this Spherical Mercator.
         * GeoServer understands that requests for EPSG:900913 should
         * match the projection for these commercial layers.  Note that
         * this is not a standard EPSG code - so, if you want to load
         * layers from another WMS, it will have to be configured to work
         * with this projection.
         */
		 	

        var options = {
            controls: [
                new OpenLayers.Control.Navigation(),
                new OpenLayers.Control.PanPanel(),
                new OpenLayers.Control.ZoomPanel()
            ],
            // the "community" epsg code for spherical mercator
            //projection: "EPSG:900913",
			projection: "EPSG:4326",
			//minResolution: "auto",
            //maxResolution: "auto",
			numZoomLevels: 8,
			minZoomLevel: 2,
			maxZoomLevel: 6,
			maxExtent: new OpenLayers.Bounds(-180.0000000000,-55.9197235107,180.0000000000,83.6235961913)

            // map horizontal units are meters
            //units: "m",
            // this resolution displays the globe in one 256x256 pixel tile
            //maxResolution: 156543.0339,
            // these are the bounds of the globe in sperical mercator
            //maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
            //                                 20037508, 20037508)
			
        };
        // construct a map with the above options
        this.mapPanel = new GeoExt.widgets.map.MapPanel({
            region: "center",
            mapOptions: options
        });
		
		this.initPage();
        this.initMap();
		this.initNavPanel();
    }
};
Ext.BLANK_IMAGE_URL = "externals/core/theme/images/default/s.gif"; // Standard geographic coords

