jQuery.noConflict();



jQuery(document).ready(function(){
	var show = true;
	var hd = jQuery(document).height();
	var hw = jQuery(window).height();	
	var w = jQuery(document).width();
	if ((jQuery.browser.msie) && ((jQuery.browser.version == 6) || (jQuery.browser.version == 8)) && hw < hd) {
		var width = (664-((w-952)/2))+10;
	} else {
		var width = 664-((w-952)/2);
	}
	if ((jQuery.browser.opera) && (hw >= hd)) {
		var width = 664-((w-952)/2)-10;
	}
	jQuery('.wrapper.left').css('left', '-' + width + 'px');
	jQuery('.wrapper.right').css('right', '-' + width + 'px');
	jQuery('.galery').css('margin-left', '-' + width + 'px');
	
	jQuery(window).resize(function(){
		var w = jQuery(document).width();
		if ((jQuery.browser.msie) && ((jQuery.browser.version == 6) || (jQuery.browser.version == 8)) && hw < hd) {
			var width = (664-((w-952)/2))+10;
		} else {
			var width = 664-((w-952)/2);
		}
		jQuery('.wrapper.left').css('left', '-' + width + 'px');
		jQuery('.wrapper.right').css('right', '-' + width + 'px');
		jQuery('.galery').css('margin-left', '-' + width + 'px');
	});
	
	jQuery(".galery").jCarouselLite({ 
			speed: 1000,
			auto:8000,
			visible: 3,
btnGo:  [".imageSliderExt .1", ".imageSliderExt .2",
    ".imageSliderExt .3"]
	 });
	 /*jQuery('.for-filtr FORM').NiceIt();*/
	 jQuery('.autohint').focus(function(){
		if (jQuery(this).attr('value') == jQuery(this).attr('title')) jQuery(this).attr('value', '');
	});
	jQuery('.autohint').blur(function(){
		if (jQuery(this).attr('value') == '') jQuery(this).attr('value', jQuery(this).attr('title'));
	});
	jQuery('.for-filtr .select-form .select-button').click(function(){
		show = !show;
		if (!show){	jQuery(this).parent().find('LI').fadeIn();}
		if (show){	jQuery(this).parent().find('LI').not(':first').fadeOut();}
	})
	jQuery('.for-filtr .select-form UL LI').not(':first').css('display','none');
        jQuery('.for-filtr .select-form UL LI A').click(function(){
        window.location = jQuery(this).attr('href');

        return false;
    })
});





