var otdel = new Array();
$(document).ready(function() {
  $.ifixpng('/images/blank.gif');
  $('.workPopupTop, .worksRight, .workPopupBottom, .workPopupArrow').ifixpng();
  $(".brand_list a img").fadeTo(1, 0.5);
  $('.brand_list a img').bind("mouseover", function(){
	  $(this).fadeTo(100, 1.0);
  });
  $('.brand_list a img').bind("mouseout", function(){
	  $(this).fadeTo(100, 0.5);
  });
  
  $('.company_list input').bind("click", function(){  
	   $('#otdel').html(otdel[$(this).val()]).attr('disabled', '');      
  });
  
  $('.city_filter').bind("click", function(){
       $('.city_filter').removeClass("city_filter_a");
       $(this).addClass("city_filter_a");               
  	   $('.city_salon').hide(0);
       $('#s'+$(this).attr("id")).show(0);  	   
    });
  $('.city_filter_all').bind("click", function(){
       $('.city_filter').removeClass("city_filter_a");
  	   $('.city_salon').show(0);
       $(this).addClass("city_filter_a");              
    });                  
});
function AddToFavorite(obj)
{
	if (document.all && !window.opera) {
		window.external.AddFavorite(document.location, document.title);
	}
	else{
		obj.href=document.location;
		obj.title=document.title;
		obj.rel = "sidebar";
	}
}

