//$(document).ready(function(){
//	
//	var rel = $("#flash_map").attr('rel');
//	$('#flash_map').flash(
//		{src: rel,width: 400,height: 400},
//        function(htmlOptions){
//            $this = $(this);
//            htmlOptions.id = "map";
//            $this.before($.fn.flash.transform(htmlOptions));						
//        }		
//	);
//	
//	change = function(n){
//		var iflash = $("#map");
//		window.document.map.SetVariable ("_root.flg", n);
//		//flash.SetVariable("_root.flg",n);
//	}
//	
//})

var nothing;
function clearP(v) {
	if(v!=0){ document.fastsearch.price0.checked = nothing; }
	if(v!=1){ document.fastsearch.price1.checked = nothing; }
	if(v!=2){ document.fastsearch.price2.checked = nothing; }
	if(v!=3){ document.fastsearch.price3.checked = nothing; }
	if(v!=4){ document.fastsearch.price4.checked = nothing; }
}
function clearR(v) {
	if(v!=0){ document.fastsearch.rooms0.checked = nothing; }
	if(v!=1){ document.fastsearch.rooms1.checked = nothing; }
	if(v!=2){ document.fastsearch.rooms2.checked = nothing; }
	if(v!=3){ document.fastsearch.rooms3.checked = nothing; }
	if(v!=4){ document.fastsearch.rooms4.checked = nothing; }
}
function change(n) {
	if((n=="set")||(n=="reset")){
		if(n=="set") val = true;
  		if(n=="reset") val = 0;
    	window.document.fastsearch.distr1.checked=val;
    	window.document.fastsearch.distr2.checked=val;
    	window.document.fastsearch.distr3.checked=val;
    	window.document.fastsearch.distr4.checked=val;
    	window.document.fastsearch.distr5.checked=val;  
	}
	document.mmap2.SetVariable("_root.flg",n);   // send value checkbox to swf
}

function setDistr(n){
	eval("document.fastsearch.distr"+n+".checked=1");
}
function resetDistr(n){ 
	eval("document.fastsearch.distr"+n+".checked=0");
}
