function _map_mode(){
	this.initialize=function(map){
		var m=$j('<div class="guide-map-mode"><img src="components/com_guide/images/pixel.gif"></div>')
		var link=window.location.href.replace(/[\?&]mode=[^\?&]*/,'')
		link+=(link.indexOf('?')==-1?'?':'&')+'mode='+($j('#guide_viewcat').hasClass('guide-fullscreen')?'normal':'fullscreen')
		m.click(function(){window.location=link})
		m.appendTo(map.getContainer())
		return m.get(0)
	}
	this.getDefaultPosition=function(){
		return new GControlPosition(G_ANCHOR_TOP_LEFT)
	}
}
_map_mode.prototype=new GControl()

function _combined(){
	this.initialize=function(map){
		var jw=$j('<div class="guide-map-controls"><img class="guide-map-mode" title="fullscreen/normal mode" src="components/com_guide/images/pixel.gif"><img class="guide-map-zoomin" title="zoom in" src="components/com_guide/images/pixel.gif"><img class="guide-map-zoomout" title="zoom out" src="components/com_guide/images/pixel.gif"></div>')
		$j('.guide-map-mode',jw).click(
			function(){
				var link=window.location.href.replace(/[\?&]mode=[^\?&]*/,'')
				link+=(link.indexOf('?')==-1?'?':'&')+'mode='+($j('#guide_viewcat').hasClass('guide-fullscreen')?'normal':'fullscreen')
				window.location=link
			}
		)
		$j('.guide-map-zoomin',jw).click(function(){map.zoomIn()})
		$j('.guide-map-zoomout',jw).click(function(){map.zoomOut()})
		jw.appendTo(map.getContainer())
		return jw.get(0)
	}
	this.getDefaultPosition=function(){
		return new GControlPosition(G_ANCHOR_TOP_LEFT)
	}
}
_combined.prototype=new GControl()

