var imgs=new Array("1.jpg","2.jpg","3.jpg","20.jpg","23.jpg","25.jpg","29.jpg","33.jpg","34.jpg","35.jpg","36.jpg","37.jpg","38.jpg","40.jpg","41.jpg","42.jpg","45.jpg","46.jpg","48.jpg","49.jpg","50.jpg","52.jpg","53.jpg","54.jpg","55.jpg","56.jpg","57.jpg","60.jpg","62.jpg","64.jpg","65.jpg","70.jpg","73.jpg","75.jpg","79.jpg","80.jpg","82.jpg","83.jpg","85.jpg","87.jpg","90.jpg","95.jpg","98.jpg","99.jpg","100.jpg","103.jpg","105.jpg","107.jpg","110.jpg","115.jpg","116.jpg","117.jpg","119.jpg","120.jpg","125.jpg","130.jpg","133.jpg","135.jpg","140.jpg","142.jpg","145.jpg","150.jpg","151.jpg","153.jpg","154.jpg","155.jpg","157.jpg","160.jpg","163.jpg","165.jpg","167.jpg","170.jpg","175.jpg","180.jpg","181.jpg","185.jpg","190.jpg","191.jpg","193.jpg","195.jpg","201.jpg","203.jpg","205.jpg","210.jpg","215.jpg","220.jpg","223.jpg","225.jpg","230.jpg");var cur=0;var sh=false;function showImg(a){cur=a;var b=$("#gimg").get(0);b.src="i/main/loading.gif";b.src="i/glry/"+imgs[a]}function galery(a){showImg(a);$("#glry").show();$("#nn").get(0).focus();sh=true}function closeGlry(){$("#glry").hide();sh=false}function popup(){window.open(imgs[cur],"Sky2Fly")}function pi(){return cur==0?imgs.length-1:cur-1}function prev(){showImg(pi());(new Image()).src="i/glry/"+imgs[pi()]}function ni(){return(cur==imgs.length-1)?0:cur+1}function next(){showImg(ni());(new Image()).src="i/glry/"+imgs[ni()]}function kbd(a){switch((a=a||window.event).keyCode){case 27:closeGlry();break;case 40:case 39:case 32:if(sh){next()}break;case 38:case 37:if(sh){prev()}break}}var bgs=new Array({backgroundImage:"url(i/main/1024.jpg)",height:730},{backgroundImage:"url(i/main/1280.jpg)",height:883},{backgroundImage:"url(i/main/1440.jpg)",height:952},{backgroundImage:"url(i/main/1680.jpg)",height:1159},{backgroundImage:"url(i/main/1920.jpg)",height:1110});function setbg(){var a=screen.width;var b=a>1680?4:a>1440?3:a>1280?2:a>1024?1:0;$("#main").css(bgs[b])}$(document).ready(function(){var c=400,b=300;var a=$("#reg,#forum,#go,#about");$("img",a).css({opacity:0,display:"inline-block"});a.hover(function(){$("img",this).stop(true).animate({opacity:1},c)},function(){$("img",this).stop(true).animate({opacity:0},c)});$("#imgs span").css({opacity:0.2}).hover(function(){$(this).stop(true).animate({opacity:0},b)},function(){$(this).stop(true).animate({opacity:0.2},b)});if(!window.opera&&!($.browser.msie&&$.browser.version<8)){$("#gimg").css({position:"absolute",top:0,bottom:0,left:0,right:0,margin:"auto"})}});
