﻿$(document).ready(function(){
		
// Blend effects for Menu

		$("#blend a").blend();

// Fancybox

		$('a.fancybox').fancybox({'overlayOpacity':0.6,'overlayColor':'#000','padding':2,'zoomOpacity':0.5,'zoomSpeedIn':500,'zoomSpeedOut':500,'showCloseButton':false});

// Image Sliding Effect

        $('.boxgrid.captionfull').hover(function(){
        	$(".cover", this).stop().animate({top:'95px'},{queue:false,duration:300});
        }, function() {
        	$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:300});
        });
        $('.boxgrid2.caption').hover(function(){
        	$(".cover", this).stop().animate({top:'95px'},{queue:false,duration:160});
        }, function() {
        	$(".cover", this).stop().animate({top:'117px'},{queue:false,duration:160});
        });

//Dateinput 

		$.tools.dateinput.localize("ru",  {
			months:        'январь,февраль,март,апрель,май,июнь,июль,август,сентябрь,октябрь,ноябрь,декабрь',
			shortMonths:   'янв,фев,мар,апр,май,июн,июл,авг,сен,окт,ноя,дек',
			days:          'воскресенье,понедельник,вторник,среда,четверг,пятница,суббота',
			shortDays:     'вс,пн,вт,ср,чт,пт,сб'
		});

		$(":date").dateinput({
			lang: 'ru', 
			format: 'dddd, dd.mm.yyyy',	// the format displayed for the user
			selectors: false,             	// whether month/year dropdowns are shown
			min: 1,                  		// min selectable day (100 days backwards)
			max: 100,                    	// max selectable day (100 days onwards)
			offset: [10, 0],            	// tweak the position of the calendar
			speed: 'fast',               	// calendar reveal speed
			firstDay: 1                  	// which day starts a week. 0 = sunday, 1 = monday etc..
		});

}); 
		
// Mouse context menu ban!

$(document).bind("contextmenu",function(e){
        return false;
});		
