$(document).ready(function(){
	$(document).pngFix();
	
	$('.areas .map div .big').css('position','absolute').css('left','-1003px').css('top','-6px');
	
	$('.map div a').hover(function(){
		//title = $(this).attr('title');
		//$('.name').show().html(title);
		$(this).children('.big').css('left','-3px');
		$(this).parent().css('z-index','1');
		mapid = $(this).parent().attr('id');
		$('.obj ul li').removeClass('active');
		$('.obj ul li#l'+mapid).addClass('active');
		$('.red').removeClass('active');
		$('.red#l'+mapid).addClass('active');
	},function(){		
		$('.obj ul li').removeClass('active');
		$('.red').removeClass('active');
		$(this).children('.big').css('left','-1003px');
		$(this).parent().css('z-index','0');	
		//$('.name').hide().html('&nbsp;');
	});

	$('.listing a').click(function(){
		$('.listing li').removeClass('active');
		$(this).parent().parent().addClass('active');
	});
	
	$('.map a').click(function(){
		$('.listing li').removeClass('active');
	});
	
	
	$('.obj a').hover(function(){
		hoverid = $(this).attr('id');
		$('#m'+hoverid).children().children('.big').css('left','-3px');
		$('#m'+hoverid).css('z-index','1');
	},function(){
		$('#m'+hoverid).children().children('.big').css('left','-1003px');
		$('#m'+hoverid).css('z-index','0');
	});
	
	
	//ajax(0,0);
	
});

/*function ajax(o,t) {
	
	$.get("/offers/offers_inerface.php?obj="+o+"&type="+t, function(data){        
    	$('.objects').html('&nbsp;');     
    	$('.objects').html(data);
	 });
	
}*/
