(function(c){function r(b,d){d=d==="x"?m.width():m.height();return typeof b==="string"?Math.round(b.match(/%/)?d/100*parseInt(b,10):parseInt(b,10)):b}function M(b){b=c.isFunction(b)?b.call(i):b;return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function Y(){for(var b in a)if(c.isFunction(a[b])&&b.substring(0,2)!=="on")a[b]=a[b].call(i);a.rel=a.rel||i.rel;a.href=a.href||i.href;a.title=a.title||i.title}function Z(b){i=b;a=c(i).data(q);Y();if(a.rel&&a.rel!=="nofollow"){g=c(".cboxElement").filter(function(){return(c(this).data(q).rel||this.rel)===a.rel});j=g.index(i);if(j<0){g=g.add(i);j=g.length-1}}else{g=c(i);j=0}if(!B){C=B=n;N=i;N.blur();c(document).bind("keydown.cbox_close",function(d){if(d.keyCode===27){d.preventDefault();e.close()}}).bind("keydown.cbox_arrows",function(d){if(g.length>1)if(d.keyCode===37){d.preventDefault();D.click()}else if(d.keyCode===39){d.preventDefault();E.click()}});a.overlayClose&&s.css({cursor:"pointer"}).one("click",e.close);c.event.trigger(aa);a.onOpen&&a.onOpen.call(i);s.css({opacity:a.opacity}).show();a.w=r(a.initialWidth,"x");a.h=r(a.initialHeight,"y");e.position(0);O&&m.bind("resize.cboxie6 scroll.cboxie6",function(){s.css({width:m.width(),height:m.height(),top:m.scrollTop(),left:m.scrollLeft()})}).trigger("scroll.cboxie6")}P.add(D).add(E).add(t).add(Q).hide();R.html(a.close).show();e.slideshow();e.load()}var q="colorbox",F="hover",n=true,e,x=!c.support.opacity,O=x&&!window.XMLHttpRequest,aa="cbox_open",H="cbox_load",S="cbox_complete",T="resize.cbox_resize",s,k,u,p,U,V,W,X,g,m,l,I,J,K,Q,P,t,E,D,R,y,z,v,w,i,N,j,a,B,C,$={transition:"elastic",speed:350,width:false,height:false,innerWidth:false,innerHeight:false,initialWidth:"400",initialHeight:"400",maxWidth:false,maxHeight:false,scalePhotos:n,scrolling:n,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:n,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayClose:n,slideshow:false,slideshowAuto:n,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false};e=c.fn.colorbox=function(b,d){var h=this;if(!h.length)if(h.selector===""){h=c("<a/>");b.open=n}else return this;h.each(function(){var f=c.extend({},c(this).data(q)?c(this).data(q):$,b);c(this).data(q,f).addClass("cboxElement");if(d)c(this).data(q).onComplete=d});b&&b.open&&Z(h);return this};e.init=function(){function b(d){return c('<div id="cbox'+d+'"/>')}m=c(window);k=c('<div id="colorbox"/>');s=b("Overlay").hide();u=b("Wrapper");p=b("Content").append(l=b("LoadedContent").css({width:0,height:0}),J=b("LoadingOverlay"),K=b("LoadingGraphic"),Q=b("Title"),P=b("Current"),t=b("Slideshow"),E=b("Next"),D=b("Previous"),R=b("Close"));u.append(c("<div/>").append(b("TopLeft"),U=b("TopCenter"),b("TopRight")),c("<div/>").append(V=b("MiddleLeft"),p,W=b("MiddleRight")),c("<div/>").append(b("BottomLeft"),X=b("BottomCenter"),b("BottomRight"))).children().children().css({"float":"left"});I=c("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");c("body").prepend(s,k.append(u,I));if(x){k.addClass("cboxIE");O&&s.css("position","absolute")}p.children().bind("mouseover mouseout",function(){c(this).toggleClass(F)}).addClass(F);y=U.height()+X.height()+p.outerHeight(n)-p.height();z=V.width()+W.width()+p.outerWidth(n)-p.width();v=l.outerHeight(n);w=l.outerWidth(n);k.css({"padding-bottom":y,"padding-right":z}).hide();E.click(e.next);D.click(e.prev);R.click(e.close);p.children().removeClass(F);c(".cboxElement").live("click",function(d){if(d.button!==0&&typeof d.button!=="undefined")return n;else{Z(this);return false}})};e.position=function(b,d){function h(A){U[0].style.width=X[0].style.width=p[0].style.width=A.style.width;K[0].style.height=J[0].style.height=p[0].style.height=V[0].style.height=W[0].style.height=A.style.height}var f=m.height();f=Math.max(f-a.h-v-y,0)/2+m.scrollTop();var o=Math.max(document.documentElement.clientWidth-a.w-w-z,0)/2+m.scrollLeft();b=k.width()===a.w+w&&k.height()===a.h+v?0:b;u[0].style.width=u[0].style.height="9999px";k.dequeue().animate({width:a.w+w,height:a.h+v,top:f,left:o},{duration:b,complete:function(){h(this);C=false;u[0].style.width=a.w+w+z+"px";u[0].style.height=a.h+v+y+"px";d&&d()},step:function(){h(this)}})};e.resize=function(b){function d(){a.w=a.w||l.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}function h(){a.h=a.h||l.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}function f(G){e.position(G,function(){if(B){if(x){A&&l.fadeIn(100);k[0].style.removeAttribute("filter")}if(a.iframe)l.append("<iframe id='cboxIframe'"+(a.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+a.href+"' "+(x?"allowtransparency='true'":"")+" />");l.show();Q.show().html(a.title);if(g.length>1){P.html(a.current.replace(/\{current\}/,j+1).replace(/\{total\}/,g.length)).show();E.html(a.next).show();D.html(a.previous).show();a.slideshow&&t.show()}J.hide();K.hide();c.event.trigger(S);a.onComplete&&a.onComplete.call(i);a.transition==="fade"&&k.fadeTo(L,1,function(){x&&k[0].style.removeAttribute("filter")});m.bind(T,function(){e.position(0)})}})}if(B){var o,A,L=a.transition==="none"?0:a.speed;m.unbind(T);if(b){l.remove();l=c('<div id="cboxLoadedContent"/>').html(b);l.hide().appendTo(I).css({width:d(),overflow:a.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(p);c("#cboxPhoto").css({cssFloat:"none"});O&&c("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});a.transition==="fade"&&k.fadeTo(L,0,function(){f(0)})||f(L);if(a.preloading&&g.length>1){b=j>0?g[j-1]:g[g.length-1];o=j<g.length-1?g[j+1]:g[0];o=c(o).data(q).href||o.href;b=c(b).data(q).href||b.href;M(o)&&c("<img />").attr("src",o);M(b)&&c("<img />").attr("src",b)}}else setTimeout(function(){var G=l.wrapInner("<div style='overflow:auto'></div>").children();a.h=G.height();l.css({height:a.h});G.replaceWith(G.children());e.position(L)},1)}};e.load=function(){var b,d,h,f=e.resize;C=n;i=g[j];a=c(i).data(q);Y();c.event.trigger(H);a.onLoad&&a.onLoad.call(i);a.h=a.height?r(a.height,"y")-v-y:a.innerHeight?r(a.innerHeight,"y"):false;a.w=a.width?r(a.width,"x")-w-z:a.innerWidth?r(a.innerWidth,"x"):false;a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=r(a.maxWidth,"x")-w-z;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=r(a.maxHeight,"y")-v-y;a.mh=a.h&&a.h<a.mh?a.h:a.mh}b=a.href;J.show();K.show();if(a.inline){c('<div id="cboxInlineTemp" />').hide().insertBefore(c(b)[0]).bind(H+" cbox_cleanup",function(){c(this).replaceWith(l.children())});f(c(b))}else if(a.iframe)f(" ");else if(a.html)f(a.html);else if(M(b)){d=new Image;d.onload=function(){var o;d.onload=null;d.id="cboxPhoto";c(d).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(a.scalePhotos){h=function(){d.height-=d.height*o;d.width-=d.width*o};if(a.mw&&d.width>a.mw){o=(d.width-a.mw)/d.width;h()}if(a.mh&&d.height>a.mh){o=(d.height-a.mh)/d.height;h()}}if(a.h)d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";f(d);g.length>1&&c(d).css({cursor:"pointer"}).click(e.next);if(x)d.style.msInterpolationMode="bicubic"};d.src=b}else c("<div />").appendTo(I).load(b,function(o,A){A==="success"?f(this):f(c("<p>Request unsuccessful.</p>"))})};e.next=function(){if(!C){j=j<g.length-1?j+1:0;e.load()}};e.prev=function(){if(!C){j=j>0?j-1:g.length-1;e.load()}};e.slideshow=function(){function b(){t.text(a.slideshowStop).bind(S,function(){h=setTimeout(e.next,a.slideshowSpeed)}).bind(H,function(){clearTimeout(h)}).one("click",function(){d();c(this).removeClass(F)});k.removeClass(f+"off").addClass(f+"on")}var d,h,f="cboxSlideshow_";t.bind("cbox_closed",function(){t.unbind();clearTimeout(h);k.removeClass(f+"off "+f+"on")});d=function(){clearTimeout(h);t.text(a.slideshowStart).unbind(S+" "+H).one("click",function(){b();h=setTimeout(e.next,a.slideshowSpeed);c(this).removeClass(F)});k.removeClass(f+"on").addClass(f+"off")};if(a.slideshow&&g.length>1)a.slideshowAuto?b():d()};e.close=function(){c.event.trigger("cbox_cleanup");a.onCleanup&&a.onCleanup.call(i);B=false;c(document).unbind("keydown.cbox_close keydown.cbox_arrows");m.unbind(T+" resize.cboxie6 scroll.cboxie6");s.css({cursor:"auto"}).fadeOut("fast");k.stop(n,false).fadeOut("fast",function(){c("#colorbox iframe").attr("src","about:blank");l.remove();k.css({opacity:1});try{N.focus()}catch(b){}c.event.trigger("cbox_closed");a.onClosed&&a.onClosed.call(i)})};e.element=function(){return c(i)};e.settings=$;c(e.init)})(jQuery);;var bg_obj1,bg_obj2,small_footer_treshold=754;$(function(){preload("ui_images/top_l.jpg","ui_images/top_r.jpg","ui_images/bottom_l.jpg","ui_images/bottom_l_small.jpg","ui_images/bottom_r.gif","ui_images/bottom_r_small.gif");$(".loader").css("display","block");$.get("index_content.php",{sec:sel_module,lang:sel_lang,sub:sel_sub_module},function(data){setTimeout('$(".loader").fadeOut("fast");',600);$("body").append(data);bg_obj1=$('#bgi');bg_obj2=$('#bgi_2');$(window).resize(function(){resize();});resize();setTimeout("resize();",1);setInterval("bg_scroll();",120);menu_init();eeye_init();scroll_init();lang_init();$("#logo_btm_in").hover(function(e){$("#logo_btm_img").fadeIn('fast');},function(e){$("#logo_btm_img").fadeOut('fast');});$("#logo_btm_small_in").hover(function(e){$("#logo_btm_img_small").fadeIn('fast');},function(e){$("#logo_btm_img_small").fadeOut('fast');});$("#title_a_in").hover(function(e){$("#title_a_img").fadeIn('fast');},function(e){$("#title_a_img").fadeOut('fast');});$(".news_item").hover(function(e){$(this).fadeTo(200,1.0);},function(e){$(this).fadeTo(200,0.6);});linkImages();scroll_reset();});});function linkImages(){$(".gallery_img").hover(function(e){$(this).fadeTo(200,1.0);},function(e){$(this).fadeTo(200,0.8);});$("a[rel='gallery']").colorbox({opacity:0.8,rel:'nofollow',title:"Jumping RON"});$(".credits_logo").hover(function(e){$(this).fadeTo(200,1.0);},function(e){$(this).fadeTo(200,0.65);});$(".gallery_envelope").hover(function(e){$(".subtitle").fadeTo(200,0.85);},function(e){$(".subtitle").fadeTo(200,0.6);});resize_images();}
function isFooterSmall(){return($(document).height()<=small_footer_treshold);}
function resize(){if(isFooterSmall()){$('#column_r_small_out').show();$('#display_small_out').show();$('#footer1_small_out').show();$('#footer2_small_out').show();$('#logo_btm_small_out').show();$('#noscroll_m_small_out').show();$('#noscroll_b_small_out').show();$('#column_r_out').hide();$('#display_out').hide();$('#footer1_out').hide();$('#footer2_out').hide();$('#logo_btm_out').hide();$('#noscroll_m_out').hide();$('#noscroll_b_out').hide();}
else{$('#column_r_out').show();$('#display_out').show();$('#footer1_out').show();$('#footer2_out').show();$('#logo_btm_out').show();$('#noscroll_m_out').show();$('#noscroll_b_out').show();$('#column_r_small_out').hide();$('#display_small_out').hide();$('#footer1_small_out').hide();$('#footer2_small_out').hide();$('#logo_btm_small_out').hide();$('#noscroll_m_small_out').hide();$('#noscroll_b_small_out').hide();}
resize_images();scroll_detect();var bgpos=$('#column_l_out').offset().left-148;bg_obj1.css("background-position",bgpos+'px 100%');}
function resize_images(){if(isFooterSmall()){$('.gallery_img').css('width','92px');$('.gallery_img').css('height','92px');}else{$('.gallery_img').css('width','100px');$('.gallery_img').css('height','100px');}
if($(document).height()<=small_footer_treshold*0.86)$('tfoot').hide();else $('tfoot').show();}
var n_img_requested=0,n_img_loaded=0;var cache=[];function preload(){var args_len=arguments.length;n_img_requested+=args_len;for(var i=args_len;i--;){var cacheImage=document.createElement('img');cacheImage.onload=function(){n_img_loaded++;}
cacheImage.src=arguments[i];cache.push(cacheImage);}}
function preloadIsReady(){if(n_img_loaded>=n_img_requested)return true;else return false;}
var dd=0,dd_2=200,doch;function bg_scroll(){if(isFooterSmall()&&$('#display_out').is(":visible"))resize();eeye_anim();};var msel_target=0,msel_target_id='',msel_pos=0;function menu_init(){msel_target=menu_order(sel_module);msel_target_id=sel_module;$(".menu_link").click(function(e){e.preventDefault();navigate($(this));});$(".menu_link").hover(function(e){menu_hover($(this));},function(e){menu_out($(this));});$(".menu_item_sel").attr("class","menu_item");setInterval("sel_scroll();",60);$("a[rel='news']").click(function(e){e.preventDefault();navigate_internal($(this));});linkLinks();}
function linkLinks(){$(".menu_sub_link").click(function(e){e.preventDefault();navigate_sub($(this));});$("a[rel='internal']").click(function(e){e.preventDefault();navigate_internal($(this));});$(".player_link").colorbox({opacity:0.8,rel:'nofollow',href:"player.php",iframe:true,width:710,height:560});}
function parseLinkParams(s){var r={};if(s){var q=s.substring(s.indexOf('?')+1);q=q.replace(/\&$/,'');jQuery.each(q.split('&'),function(){var splitted=this.split('=');var key=splitted[0];var val=splitted[1];r[key]=val;});}
return r;};function menu_fadeIn(id){$("#"+id+"_sel_"+sel_lang).fadeIn('fast');$("#"+id+"_nosel_"+sel_lang).fadeOut('fast');}
function menu_fadeOut(id){$("#"+id+"_sel_"+sel_lang).fadeOut('fast');$("#"+id+"_nosel_"+sel_lang).fadeTo('fast',0.6,function(){$("#"+id+"_nosel_"+sel_lang).css("display","block");});}
function menu_hover(obj){if(msel_target!=menu_order(obj.attr('id')))
{menu_fadeOut(msel_target_id);msel_target=menu_order(obj.attr('id'));msel_target_id=obj.attr('id');}}
function menu_out(obj){if(msel_target!=menu_order(sel_module))
{msel_target=menu_order(sel_module);menu_fadeOut(msel_target_id);msel_target_id=sel_module;}}
var nav_slow=false,nav_done=false;function _navigate(module,args,blink){display_id=isFooterSmall()?"#display_small_out":"#display_out";eeye_blink(blink);nav_slow=nav_done=false;setTimeout('_nav_show_progress();',200);$(display_id).fadeOut('fast',function(){$.get(module,args,function(data){nav_done=true;$("#de").html(data);$("#de_small").html(data);linkImages();linkLinks();if(nav_slow)setTimeout('_nav_hide_progress("'+display_id+'");',120);else _nav_hide_progress(display_id);});});}
function _nav_show_progress(){if(!nav_done){nav_slow=true;$("#display_load_out").show();}}
function _nav_hide_progress(idl){$("#display_load_out").fadeOut("fast",function(){$(idl).fadeIn("fast",function(){scroll_reset();scroll_detect();});});}
function navigate(obj){sel_module=obj.attr('id');_navigate("sec_"+sel_module+".php",{sub:sel_sub_module,lang:sel_lang},4);}
function navigate_sub(obj){_navigate("sec_"+sel_module+".php",{sub:obj.attr('id'),lang:sel_lang},0);}
function navigate_internal(obj){var args=parseLinkParams(obj.attr('href'));menu_hover($("#"+args['sec']));sel_module=args['sec'];_navigate("sec_"+sel_module+".php",{sub:args['sub'],lang:sel_lang},0);}
function sel_scroll()
{if(Math.abs(msel_target*msel_itemsz-msel_pos)>2)
{var speed=(msel_target*msel_itemsz-msel_pos)/(10*msel_itemsz);if(speed>0)speed+=0.05;else speed-=0.05;msel_pos+=speed*24;pos=(7+msel_pos);$('#menu_select_in').css("background-position","0px "+pos+"px");}
else menu_fadeIn(msel_target_id);scroll_timed();};var eeon=false,ee_t=400,ee_n=0,eeye_obj;function eeye_init(){eeye_obj=$('#menu_evileye_in');$("#menu_select_in").hover(function(e){eeye_blink(2);},function(e){});}
function eeye_blink(n){ee_n=n;}
function eeye_anim(){if(eeon)eeyeHide();else if(ee_n>0)eeyeShow();}
function eeyeShow(){eeye_obj.fadeIn(ee_t);eeon=true;ee_n--;}
function eeyeHide(){eeye_obj.fadeOut(ee_t);eeon=false;};var scr_pos=0,scr_dir=0;var news_pos=0,news_speed=0,news_speed_cr=0,news_obj;function scroll_init(){$("#scroll_t_in").hover(function(e){$(this).css("background-image","url(ui_images/scroll_top_a.gif)");},function(e){$(this).css("background-image","url(ui_images/scroll_top.gif)");});$("#scroll_b_in").hover(function(e){$(this).css("background-image","url(ui_images/scroll_bottom_a.gif)");},function(e){$(this).css("background-image","url(ui_images/scroll_bottom.gif)");});$('#scroll_t_in').mousedown(function(e){scr_dir=+1;});$('#scroll_t_in').mouseup(function(e){scr_dir=0;scroll(+10);});$('#scroll_b_in').mousedown(function(e){scr_dir=-1;});$('#scroll_b_in').mouseup(function(e){scr_dir=0;scroll(-10);});$(document).mousemove(function(e){var container_obj=$("#news_content_in");news_speed=0.5-(e.pageY/$(document).height());if(e.pageX<container_obj.offset().left)news_speed=0;else if(e.pageX>container_obj.offset().left+container_obj.width())news_speed=0;});news_obj=$(".news_envelope");scroll_detect();}
function scroll_timed(){news_speed_cr=news_speed_cr*0.5+news_speed*0.5;if(Math.abs(news_speed_cr)>0.26){lower_limit=Math.min(($(document).height()*0.8-120)-news_obj.height(),0);old_pos=news_pos;news_pos=Math.max(Math.min(news_pos+news_speed_cr*24,0),lower_limit);news_obj.css("top",news_pos+"px");}
if(scr_dir!=0)scroll(14*scr_dir);}
function scroll_detect(){if(scroll_limit(isFooterSmall())<-60)
{$('#scroll_t_out').fadeIn();$('#scroll_b_out').fadeIn();sb_pos=(isFooterSmall()?160:260)-34;$('#scroll_b_out').css("height",sb_pos+"px");}
else{$('#scroll_t_out').fadeOut();$('#scroll_b_out').fadeOut();}
scroll(0);sb_pos=(isFooterSmall()?172:280)+180;$('#news_con_out').css("height",sb_pos+"px");}
function scroll_reset(){scr_pos=scr_dir=0;_scroll($("#de"),0);_scroll($("#de_small"),0);$("#noscroll_m_in").css("background-position","4px 12px");$("#noscroll_m_small_in").css("background-position","4px 2px");}
function scroll(n){var current_limit=scroll_limit(isFooterSmall());scr_pos=Math.max(Math.min(scr_pos+n,0),current_limit);_scroll($("#de"),Math.max(scr_pos,scroll_limit(false)));_scroll($("#de_small"),Math.max(scr_pos,scroll_limit(true)));var ssize=$(document).height()*0.97-514;var spos=Math.ceil((scr_pos/(scroll_limit(false)+1))*ssize+12);$("#noscroll_m_in").css("background-position","4px "+spos+"px");ssize=$(document).height()*0.97-414;spos=Math.ceil((scr_pos/(scroll_limit(true)+1))*ssize+2);$("#noscroll_m_small_in").css("background-position","4px "+spos+"px");}
function scroll_limit(small){var dh=$(document).height()*0.95;if(small){dh-=240;sobj="#de_small";}
else{dh-=340;sobj="#de";}
return Math.min(0,dh-$(sobj).height());}
function _scroll(d_obj,_scr_pos){d_obj.css("top",_scr_pos+"px");};var n_lb_autohide=4000,t_lb_autohide=0,t_lb_visible=false;;function lang_init(){$("#langdrop_out").show();$(".lang_link").click(function(e){lang_show(!isLangVisible());e.preventDefault();});$("#langbar_in").hover(function(e){lang_hover=true;$(this).fadeTo('fast',1.0);},function(e){lang_hover=false;if(!isLangVisible())$(this).fadeTo('fast',0.6);});$("#langdrop_in").hover(function(e){if(t_lb_autohide!=0)clearTimeout(t_lb_autohide);},function(e){t_lb_autohide=setTimeout("lang_show(false)",n_lb_autohide);});}
function isLangVisible(){return t_lb_visible;}
function lang_show(show){if(show){$("#langdrop_in").slideDown();if(t_lb_autohide==0)t_lb_autohide=setTimeout("lang_show(false)",n_lb_autohide);t_lb_visible=true;}
else{$("#langdrop_in").slideUp(function(){t_lb_visible=false;if(!lang_hover)$("#langbar_in").fadeTo('fast',0.6);});t_lb_autohide=0;}}