// ToolTip
this.vtip=function(){this.xOffset=-20;this.yOffset=15;$(".vtip").unbind().hover(function(a){this.t=this.title;this.title="";this.top=(a.pageY+yOffset);this.left=(a.pageX+xOffset);$("body").append('<span id="vtip">'+this.t+"</span>");$("span#vtip").css("top",this.top+"px").css("left",this.left+"px").css({opacity: "0.93"}).fadeIn("normal")},function(){this.title=this.t;$("span#vtip").remove()}).mousemove(function(a){this.top=(a.pageY+yOffset);this.left=(a.pageX+xOffset);$("span#vtip").css("top",this.top+"px").css("left",this.left+"px")})};

// jQuery для jaluzi.by open
// **********************
$(document).ready(function() {
	// Вызов тултипа:
	vtip();
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){$(".cover", this).stop().animate({top:'40px'},{queue:false,duration:40});}, function() {$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:40});});
	/*
	$(".pic_right_up, .cover2").hover(function(){
		$(".cover2").stop().animate({top:'200px'},{queue:false,duration:200});},
	function() {
		$(".cover2").stop().animate({top:'299px'},{queue:false,duration:200});
		//$(".cover2.boxcaption2").css("z-index", "110");
	});
	*/
/*
	$(".pic_right").mouseover(function() {
		$(".pic_right_up").css("display", "none");
	}).mouseout(function() {
		//$(".pic_right_up").css("background", "url('/design/pic/bgup_right.png') no-repeat 0 0");
		$(".pic_right_up").css({'background':'url(/design/pic/bgup_right.png) no-repeat 0 0','display':'block'});
	});
*/
//fancybox*************** on
	//Показать фотогалерею rel="g"
	$("a[rel=g]").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>';}});

//fancybox*************** off


	$('ul#portfolio, ul#portfolioof').innerfade({speed: 1000,timeout: 5000,type: 'sequence',containerheight: '299px'});
});
// **********************
// jQuery для jaluzi.by close
