$(function(){

$(window).resize(function(){	
	var bodyWhidth = $('body').width();
	
	if(bodyWhidth > 1030){
		$('#osnova').css({padding:'30px'});
	} else{
		$('#osnova').css({padding:'30px 8px'});
	}
	
});
$(window).resize();



function boxShad(){
	$(this).boxShadow('0px 0px 5px #AFC100');
}

//liveinternet
$('#liveinternet').html("<a href='http://www.liveinternet.ru/click' "+"target=_blank><img src='//counter.yadro.ru/hit?t26.3;r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()+"' alt='' title='LiveInternet: показано число посетителей за"+" сегодня' "+"border='0' width='88' height='15'><\/a>");

//fancybox
if($('#content').is('div')){
$("#content a[href $=.jpg], #content a[href $=.gif]").fancybox({
	"padding" : 8,
	"overlayOpacity" : 0,
	"hideOnContentClick" : true
});

$('#content').each(
	function(index){
		$(this).add('a[href $=.jpg] > img').parent('a').attr('rel', 'fancybox'+index+'');
	});
}

});
