//	function resize(wt,ht){
//		var map_obj=document.getElementById("map");
//		var disp=getDispSize();
//		if((disp.width -wt) >475){
//			map_obj.style.width=(disp.width-wt)+"px";
////			map_obj.style.width="100%";
//		} else {
//			map_obj.style.width=475;
//		}
//		
//		if(disp.height > 360){
//			map_obj.style.height=((disp.height-ht) > 525) ? "525px" : ((disp.height-ht)+"px");
//		} else {
//			map_obj.style.height=360;
//		}
//		
//		if(map){
//			map.checkResize();
//		}
//		
//	}
	
	function resize(ht){
		var map_obj=document.getElementById("map");
		var disp=getDispSize();
		map_obj.style.width=disp.width -10;
		
		
		if((disp.height-ht) > 360){
			map_obj.style.height=(disp.height-ht)+"px";
		} else {
			map_obj.style.height=360+"px";
		}
		if(map){
			map.checkResize();
		}
		
	}
	
	function getDispSize(){
		if(document.all){
			if(window.opera){
				return {
					width:document.body.clientWidth,
					height:document.body.clientHeight
				};
			}else{
				return {
						width:document.documentElement.clientWidth,
						height:document.documentElement.clientHeight
				};
			 }
		}else if(document.layers || document.getElementById){
			return {
				width:window.innerWidth,
				height:window.innerHeight
			};
		}
	}
	
	function mouseWheelZooming( event ){
				if( navigator.userAgent.match( "MSIE" ) ){ var delta = event.wheelDelta; event.returnValue = false; } //IE
				if( navigator.userAgent.match( "Gecko" ) ){ var delta = event.detail * -1; event.preventDefault(); } //Gecko
				if( navigator.userAgent.match( "Safari" ) ){ var delta = event.wheelDelta; event.returnValue = false; } //Safari
				map.zoomTo( map.getZoomLevel() + ( delta < 0 ? 1 : -1 ) );
	}
	
	function simpleTemplate(template, paramObj){
		var rslt=template;
		
		for(var paramName in paramObj){
			value	=paramObj[paramName];
			reg		=new RegExp("#"+paramName+"#","g");
			rslt	=rslt.replace(reg,value);
		}
		return rslt;
	}
