$(document).ready(function(){var b={slides:"#middle",easing:"swing",duration:400,width:"100%",height:"300px"};var e={en:{pageTitle:"Disclaimer",lIndex:"Back to index",lIndexTitle:"Back to index",lCV:"CV",lCVTitle:"Curriculum vitæ in russian"},ru:{pageTitle:"Отказ от ответственности",lIndex:"На главную",lIndexTitle:"Уйти на главную",lCV:"Резюме",lCVTitle:"Резюме"}};var d=0;if($.cookie("lang")){if($.cookie("lang")=="ru"){d=1;c("ru")}}$(b.slides).before('<div id="switcherSlide"></div>').appendTo("#switcherSlide");$(b.slides).find("div").each(function(){$(this).before('<div class="switcherSlideContainer"></div>').appendTo($(this).prev())});var a=function(f){$("#switcherSlide").css({position:"relative",width:b.width,height:b.height,overflow:"hidden"});$(b.slides).css({position:"relative",width:$("#switcherSlide").width()*2+"px",height:$("#switcherSlide").height()+"px",overflow:"hidden"});$(b.slides).children().css({position:"relative",width:$("#switcherSlide").width()+"px",height:$("#switcherSlide").height()+"px","float":"left"});$(b.slides).css({marginLeft:"-"+(d*$(b.slides).find(":first-child").width()+"px")})};a();$(window).resize(function(){a()});$("#switchRu").click(function(){d=d==0?1:0;$(b.slides).animate({marginLeft:"-"+(d*$(b.slides).find(":first-child").width()+"px")},b.duration);$.cookie("lang","ru",{expires:365});c("ru")});$("#switchEn").click(function(){d=d>0?0:1;$(b.slides).animate({marginLeft:"-"+(d*$(b.slides).find(":first-child").width()+"px")},b.duration);$.cookie("lang","en",{expires:365});c("en")});function c(f){$("#linkToIndex").attr("title",e[f].lIndexTitle);$("#linkToIndex").text(e[f].lIndex);$("#linkToCV").attr("title",e[f].lCVTitle);$("#linkToCV").text(e[f].lCV);document.title=e[f].pageTitle}});