//Scroll fancybox ON / Version: 3.0.2 / Requires: 1.2.2+
(function(b){function d(a){var f=[].slice.call(arguments,1),e=0;a=b.event.fix(a||window.event);a.type="mousewheel";if(a.wheelDelta)e=a.wheelDelta/120;if(a.detail)e=-a.detail/3;f.unshift(a,e);return b.event.handle.apply(this,f)}var c=["DOMMouseScroll","mousewheel"];b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],d,false);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],
d,false);else this.onmousewheel=null}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
//Scroll fancybox OFF

// jQuery open
// **********************
$(document).ready(function() {

//fancybox*************** on
	//Показать #f #foto или #photo
	$("a#f, a#foto, a#photo").fancybox({'titleShow': false,'transitionIn': 'elastic','transitionOut': 'elastic'});
	//Показать фотогалерею rel="g"
	$("a[rel=g], a[rel=lightbox]").fancybox({'transitionIn': 'none','transitionOut': 'none','titlePosition': 'over','titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' из ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';}});
	//Показать скрытый див
	$("#in_div").fancybox({'titlePosition': 'inside','transitionIn': 'none','transitionOut': 'none'});
	//Показать др. док
	$("#in_ajax").fancybox();
//fancybox*************** off

url = document.location.href;
	if (url == 'http://onyxby.vh33.hoster.by/index.html' || url == 'http://onyx.by/' || url == 'http://onyx.by/index.html' || url == 'http://onyx.by/index.php') {
		$('#wrapper').css({'margin-top': '80px'});
		$('#contentpart').css({'width': '998px', 'margin': '10px 0', 'height': '283px', 'padding': '0', 'border': '0 none'});
		$('#menu li#index_onyx').addClass('on');
		//$("#copyright div.tc").append("&nbsp;&nbsp;&nbsp;&nbsp; Obstanovka.by - <a href='http://obstanovka.by/' title='Дизайн интерьера'>дизайн интерьера</a>");
	}
	if (url == 'http://onyx.by/doma_i_kotedji.html' 
		|| url == 'http://onyx.by/doma_i_kotedji_p_1.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_2.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_3.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_4.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_5.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_6.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_7.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_8.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_9.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_10.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_11.html'
		|| url == 'http://onyx.by/doma_i_kotedji_p_12.html'
		|| url == 'http://onyx.by/kvartiry.html'
		|| url == 'http://onyx.by/kvartiry_p_1.html'
		|| url == 'http://onyx.by/kvartiry_p_2.html'
		|| url == 'http://onyx.by/kvartiry_p_3.html'
		|| url == 'http://onyx.by/kvartiry_p_4.html'
		|| url == 'http://onyx.by/kvartiry_p_5.html'
		|| url == 'http://onyx.by/kvartiry_p_6.html'
		|| url == 'http://onyx.by/kvartiry_p_7.html'
		|| url == 'http://onyx.by/kvartiry_p_8.html'
		|| url == 'http://onyx.by/kvartiry_p_9.html'
		|| url == 'http://onyx.by/kvartiry_p_10.html'
		|| url == 'http://onyx.by/kvartiry_p_11.html'
		|| url == 'http://onyx.by/kvartiry_p_12.html'
		|| url == 'http://onyx.by/kvartiry_p_13.html'
		|| url == 'http://onyx.by/kvartiry_p_14.html'
		|| url == 'http://onyx.by/kvartiry_p_15.html'
		|| url == 'http://onyx.by/kvartiry_p_16.html'
		|| url == 'http://onyx.by/kvartiry_p_17.html'
		|| url == 'http://onyx.by/kvartiry_p_18.html'
		|| url == 'http://onyx.by/kvartiry_p_19.html'
		|| url == 'http://onyx.by/kvartiry_p_20.html'
		|| url == 'http://onyx.by/kvartiry_p_21.html'
		|| url == 'http://onyx.by/kvartiry_p_22.html'
		|| url == 'http://onyx.by/kvartiry_p_23.html'
		|| url == 'http://onyx.by/kvartiry_p_24.html'
		|| url == 'http://onyx.by/kvartiry_p_25.html'
		|| url == 'http://onyx.by/kvartiry_p_26.html'
		|| url == 'http://onyx.by/kvartiry_p_27.html'
		|| url == 'http://onyx.by/design_gostinnaya.html'
		|| url == 'http://onyx.by/design_kuhni.html'
		|| url == 'http://onyx.by/design_spalni.html'
		|| url == 'http://onyx.by/design_detskie.html'
		|| url == 'http://onyx.by/design_vanni.html'
		|| url == 'http://onyx.by/design_holl.html'
		) {
		$('#menu li#index_onyx').addClass('on');
		$('#menu li#vitraji').removeClass('on');
	}


//project

	//Установить прозрачность 60% + При навердение убрать прозрачность
	$("#prodject_on div").css({opacity: "0.6"}).mouseover(function() {$(this).css({opacity: "1"});}).mouseout(function() {$(this).css({opacity: "0.6"});});
	$("#lfl").mouseover(function() {$("#prodject_on div.fl").css({opacity: "1"});}).mouseout(function() {$("#prodject_on div.fl").css({opacity: "0.6"});});
	$("#rfr").mouseover(function() {$("#prodject_on div.fr").css({opacity: "1"});}).mouseout(function() {$("#prodject_on div.fr").css({opacity: "0.6"});});


});
// **********************
// jQuery close
