/*
 * jQuery Google Analytics Plugin
 * jquery.ga.js
 * http://www.shamasis.net/projects/ga/
 *
 * Copyright (c) 2009 Shamasis Bhattacharya
 * Complies and conforms to all jQuery licensing schemes.
 * http://docs.jquery.com/License
 *
 * Date: 2009-08-23
 * Revision: 13
 */
(function(c){c.ga={};c.ga.load=function(e,f){jQuery.ajax({type:"GET",url:(document.location.protocol=="https:"?"https://ssl":"http://www")+".google-analytics.com/ga.js",cache:true,success:function(){if(typeof _gat==undefined){throw"_gat has not been defined"}a=_gat._getTracker(e);d();if(c.isFunction(f)){f(a)}a._trackPageview()},dataType:"script",data:null})};var a;var d=function(){if(b()){throw"pageTracker has not been defined"}for(var e in a){if(e.charAt(0)!="_"){continue}c.ga[e.substr(1)]=a[e]}};var b=function(){return a==undefined}})(jQuery);function ruSuffix(a,e,c,d){var b=a%10;if(b==0){return d}if(b==1&&a!=11){return e}if(b<5&&(a<10||a>20)){return c}return d}$(function(){if(!window.optimized){return}$.ga.load("UA-5739784-3");new Image().src="http://counter.yadro.ru/hit?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()});$(function(){var a=$("#page-object .description .big");var c=$("#page-object .header .loading");var b=$("#page-object .description .info .thumbs img");b.mouseover(function(d){$t=$(this);if($t.hasClass("big")){return}if(c.is(":visible")){return}if(!$t.hasClass("loaded")){a.load(function(){c.hide();$t.addClass("loaded")});c.show()}a.attr("src",$t.attr("src").replace("/thumb",""))});c.hide()});$(function(){var a=$("#search-form");if(a.length<1){return}var b=a.find(".otype ul");a.find('.otype input[type="radio"]').change(function(){if(this.value=="selected"){b.show()}else{b.hide()}});a.find(".otype input[checked]").change();var c=a.find(".cities ul");a.find('.cities input[type="radio"]').change(function(){if(this.value=="selected"){c.show()}else{c.hide()}});a.find(".cities input[checked]").change();a.find('input[type="reset"]').click(function(){setTimeout(function(){a.find(".otype input[checked]").change();a.find(".cities input[checked]").change()},100)})});
