function EnlargeControl()
{ }

EnlargeControl.prototype=new GControl();

EnlargeControl.prototype.initialize=function(_map) {
	this.Map=_map;
	var size = new GSize(65,14);
	this.div = _createElement("div",_map.getContainer(),null,size);
	this.div.id = "EnlargeControl_div"; 
	this.div.innerHTML ='&nbsp;<a href="#" onclick="return enlargeMap(1)">Larger map</a>&nbsp;'
	 
	this.div.style.zIndex=4;
	return this.div;
}

EnlargeControl.prototype.getDefaultPosition=function() {
	return new GControlPosition(
			G_ANCHOR_TOP_RIGHT,
			new GSize(5,0))
}


function enlargeMap(x)
{ 
	if(x==1)
	{
		mapContainer.style.height = "620px"
		mapContainer.style.width = "950px"
		document.getElementById("EnlargeControl_div").innerHTML ='&nbsp;<a href="#" onclick="return enlargeMap(2)">Smaller map</a>&nbsp;'
		hideTooltipHome();
		map.checkResize(); 
		refreshBounds(); 
		refreshAjMarkers();
		hideCrossControl();   
		showCrossControl();
		updateStatusBar(); 
		document.getElementById("h2TabPlaceCAT").style.display = 'none';
		document.getElementById("h2TabWikiCAT").style.display = 'none';
	}
	else
	{
		mapContainer.style.height = mapHeight+"px"
		mapContainer.style.width = mapWidth+"px"
		document.getElementById("EnlargeControl_div").innerHTML ='&nbsp;<a href="#" onclick="return enlargeMap(1)">Larger map</a>&nbsp;' 
		map.checkResize();
		refreshBounds();
		hideCrossControl();   
		showCrossControl();
		updateStatusBar(); 
		document.getElementById("h2TabPlaceCAT").style.display = 'block';
		document.getElementById("h2TabWikiCAT").style.display = 'block';
	}
	
	return false;
}