//by Peter Pesti, 2006
//modified to have blog elements

//<![CDATA[
	var isVisible= 0;
	var anim;
	var mapHeight=0;
	

	function showMap(){
		clearInterval(anim);
		var mapArea= document.getElementById('mapArea');
		//first display:
		if (isVisible==0){
			mapArea.innerHTML= '<iframe src="http://peter.freeblog.hu/Files/myplaces/index.html" style="width:0px;height:0px;display:none;" frameborder=0 scrolling=no id="mapFrame"></iframe>';
			isVisible=1;
		}
		
		var mapFrame= document.getElementById('mapFrame');
		//start show:
		if (isVisible==1){
			mapFrame.style.display= 'inline';
			mapFrame.style.width= '760px';
			anim= setInterval('animShow()', 40);
			isVisible= 2;
		}
		//start hide:
		else{
			anim= setInterval('animHide()', 40);
			isVisible= 1;
		}
	}

	function animShow(){
		var mapFrame= document.getElementById('mapFrame');
		mapFrame.style.height= mapHeight+'px';
		mapHeight+= 30;
		if (mapHeight>480){
			clearInterval(anim);
		}
	}

	function animHide(){
		var mapFrame= document.getElementById('mapFrame');
		if (mapHeight<=0){
			clearInterval(anim);
			mapFrame.style.width= '0px';
			mapFrame.style.height= '0px';
			mapFrame.style.display= 'none';
			mapHeight= 0;
		}
		else{
			mapFrame.style.height= mapHeight+'px';
			mapHeight-= 30;
		}
	}

//]]>