function config_load()
	{
    	var display=screen.width+"*"+screen.height+" ("+screen.colorDepth+")";
	    document.getElementById('stat_id').src='include/stat.php?java=1&again=0&display='+display;
	}

function over_()
	{		window.status='::::::::::::::::::::     B E S T   O F   B U D A P E S T        ::::::::::::::::::::';
		return true;
	}

function FlashCode(width_,height_,where_,what_,transparent_,id_,loop_,bg_)
	{
		var fls='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width_+'" height="'+height_+'" id="'+id_+'" align="middle"> \n'+
											      '<param name="movie" value="'+what_+'" /><param name="quality" value="high" /><param name="wmode" value="'+transparent_+'" /><param name="bgcolor" value="#'+bg_+'" /><param name="loop" value="'+loop_+'" /><param name="menu" value="false" /> \n'+
                                                  '<embed src="'+what_+'" quality="high" loop="'+loop_+'" wmode="'+transparent_+'" menu="false" bgcolor="#'+bg_+'" width="'+width_+'" height="'+height_+'" name="'+id_+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n'+
                                                  '</object>';
		document.getElementById(where_).innerHTML=fls;
	}

function picture_view(left_,what_)
	{
        document.getElementById('alpha_id').style.width =(document.getElementById('center_distance').offsetLeft*2)+'px';
        document.getElementById('alpha_id').style.height =(document.getElementById('center_distance').offsetTop+1)+'px';
        document.getElementById('alpha_id').style.visibility ='visible';
		if (window.innerHeight)
	       {
	       		pos = window.pageYOffset;
	       }
	    else if (document.documentElement && document.documentElement.scrollTop)
	       {
	       		pos = document.documentElement.scrollTop;
	       }
	    else if (document.body)
	       {
	    		pos = document.body.scrollTop;
	       }
	    document.getElementById('img_div').style.top = pos+20+'px';
		document.getElementById('img_div').style.left=(document.getElementById('center_distance').offsetLeft-left_)+'px';
		document.getElementById('img_div').style.visibility ='visible';
		document.getElementById('img_div').innerHTML="<img src='"+what_+"' alt='Bezáráshoz kattintson a képre' title='Bezáráshoz kattintson a képre' class='picture_border' style='cursor: pointer;' onclick='closer()'/>";
	}

function picture_view_gallery()
	{
        document.getElementById('alpha_id').style.width =(document.getElementById('center_distance').offsetLeft*2)+'px';
        document.getElementById('alpha_id').style.height =(document.getElementById('center_distance').offsetTop+1)+'px';
        document.getElementById('alpha_id').style.visibility ='visible';
		if (window.innerHeight)
	       {
	       		pos = window.pageYOffset;
	       }
	    else if (document.documentElement && document.documentElement.scrollTop)
	       {
	       		pos = document.documentElement.scrollTop;
	       }
	    else if (document.body)
	       {
	    		pos = document.body.scrollTop;
	       }
	    document.getElementById('picture_div').style.top = pos+20+'px';
		document.getElementById('picture_div').style.left=(document.getElementById('center_distance').offsetLeft-300)+'px';
		document.getElementById('picture_div').style.visibility ='visible';
	}

function closer()
	{		document.getElementById('img_div').innerHTML="";
		document.getElementById('img_div').style.width ='0px';
		document.getElementById('img_div').style.height ='0px';
		document.getElementById('alpha_id').style.width ='0px';
		document.getElementById('alpha_id').style.height ='0px';	}

function closerX()
	{
		document.getElementById('picture_div').style.width ='0px';
		document.getElementById('picture_div').style.height ='0px';
		document.getElementById('alpha_id').style.width ='0px';
		document.getElementById('alpha_id').style.height ='0px';
		document.getElementById('big_picture').src='theme/gallery/tr.gif';
		document.getElementById('picture_div').style.visibility ='hidden';
	}

function movl()
	{
		        document.getElementById('lm').style.width ='1px';
                window.setTimeout ( "document.getElementById('lm').style.width ='5px';", 200 );
    }

function movn()
	{
		        document.getElementById('nm').style.width ='9px';
                window.setTimeout ( "document.getElementById('nm').style.width ='5px';", 200 );
    }

var fresh=1;
function region_div(what_,title_)
	{        if(fresh==1)
        	{
				for(i=0;i<9;i++)
					{						var div_='ma'+i;
						document.getElementById([div_]).style.display='none';					}
				var div_='ma'+what_;
				document.getElementById([div_]).style.display='block';
				document.getElementById('title_cell').innerHTML=title_;
				for(i=0;i<9;i++)
					{
						var div_='fa'+i;
						document.getElementById([div_]).style.display='none';
					}
				var div_='fa'+what_;
				document.getElementById([div_]).style.display='block';
			}
	}

function region_div_end(what_,title_,url_)
	{
		for(i=0;i<9;i++)
			{
				var div_='ma'+i;
				document.getElementById([div_]).style.display='none';
			}
		var div_='ma'+what_;
		var link_='more'+what_;
		document.getElementById([div_]).style.display='block';
		document.getElementById('title_cell').innerHTML=title_;
		document.getElementById([link_]).style.display='block';
		document.getElementById([link_]).innerHTML="<a href='"+url_+"' class='all_link' onfocus='this.blur()'>"+more_opportunities+"&nbsp;&raquo;</a><br />&nbsp;";
		fresh=2;
		for(i=0;i<9;i++)
			{
				var div_='fa'+i;
				document.getElementById([div_]).style.display='none';
			}
		var div_='fa'+what_;
		var link_='moref'+what_;
		document.getElementById([div_]).style.display='block';
		document.getElementById([link_]).style.display='block';
		document.getElementById([link_]).innerHTML="<a href='"+url_+"' class='all_link' onfocus='this.blur()'>"+more_apartments+"&nbsp;&raquo;</a><br />&nbsp;";
		fresh=2;
	}

function radioertek(radioObj)
	{
		if(!radioObj)
	    	return '';
	    var radioLength = radioObj.length;
	    if(radioLength == undefined)
	    	if(radioObj.checked)
	        	return radioObj.value;
	        else
	        	return '';
	    for(var i = 0; i < radioLength; i++)
	    	{
	        	if(radioObj[i].checked)
	        		{
	                	return radioObj[i].value;
	                }
	        }
	  	return '';
	}