// 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': 'elastic','transitionOut': 'none','titlePosition': 'over','overlayOpacity': 0.75,'padding': 0,'titleFormat': function(title, currentArray, currentIndex, currentOpts) {return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';}});
	//Показать скрытый див
	$("#in_div").fancybox({'titlePosition': 'inside','transitionIn': 'none','transitionOut': 'none'});
	//Показать др. док
	$("#in_ajax").fancybox();
//fancybox*************** off

	// При наведение на див сделать block_link ссылку активной (css):
	$("div.pdline div").mouseover(function(){$(this).addClass("on");}).mouseout(function() {$(this).removeClass("on");});

	// Teaser
	// + При наведение на td с товаром подсветить его:
	$('.kwicks').kwicks({
					max : 500,
					spacing : 1
				});
	$("#kwick_1, #kwick_2, #kwick_3, #kwick_4").mouseover(function(){$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});

	url = document.location.href;
	if (url == 'http://gpsminsk.by/' ) {
		$('#menu_index').addClass('on');
	}

		//Установить прозрачность 50% + При навердение убрать прозрачность
	$("#b88 div img").css({
				opacity: "0.2"
			}).mouseover(function() {
				$(this).css({opacity: "1"});
			}).mouseout(function() {
				$(this).css({opacity: "0.2"});
			});

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