﻿








/******************************




      Хуясе!

      И до сюда добрались!




******************************/



































































/******************************




      Ну и что дальше?




******************************/



































































/******************************




      Не надоело?




******************************/
























































// Скрипты, используемые на сайте

$(document).ready(function(){

jQuery('#search input').bind('focus', function() {
	$(this).addClass('ieFocusHack');
	if ($(this).val() == "Я знаю, что хочу найти.") {
		$(this).val("");
	}
}).bind('blur', function() {
		if (trim11($(this).val()) == "" || $(this).val() == "Я знаю, что хочу найти.") {
			$(this).removeClass('ieFocusHack');
			$(this).val("Я знаю, что хочу найти.");
		}
});

jQuery(".slideshow").hover(function(){
	clearInterval(spezint);
},
function() {
	spezint = setInterval("slideSwitch()", 4000);
});

var spezint = setInterval("slideSwitch()", 4000);

});

// trim
function trim11 (str) {
	str = str.replace(/^\s+/, '');
	for (var i = str.length - 1; i >= 0; i--) {
		if (/\S/.test(str.charAt(i))) {
			str = str.substring(0, i + 1);
			break;
		}
	}
	return str;
}

// реклама
function slideSwitch() {
	var $active = $('.slideshow div.active');
	if ( $active.length == 0 ) $active = $('.slideshow div:last');
	var $next =  $active.next().length ? $active.next()
		: $('.slideshow div:first');
	$active.addClass('last-active');
	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {
			$active.removeClass('active last-active');
			if ($.browser.msie)
			{
				this.style.removeAttribute('filter');
			}
		});
}
