window.addEvent("load",function(){	
	$$('.gk_npro_mainwrap').each(function(el,i){
		var TID = el.getProperty('id');
		var main = $(TID);
		var animation = false;
		var $G = $Gavick[TID];
		//
		if($E('.gk_npro_full_interface', main) && $E('.gk_npro_full_scroll1', main)){
			var offset = $E('.gk_npro_full_scroll1', main).getSize().size.x;
			var scroller_main = new Fx.Scroll($E('.gk_npro_full_scroll1', main),{duration: $G['animation_speed'],wheelStops:false});	
			var blocks = $ES('.gk_npro_full_tablewrap', main);
			var actual_main_page = 0;
			var autoanim = (el.hasClass('autoanim')) ? true : false;
			var helpfun = function(){
				$clear(animation);
				animation = (function(){
					if(actual_main_page == blocks.length - 1){
						scroller_main.scrollTo(0,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != 0) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});
						actual_main_page = 0;
					}else{
						actual_main_page++;	
						scroller_main.scrollTo(actual_main_page*offset,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != actual_main_page) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});				
					}	
				}).periodical($G['animation_interval']);	
			};
			
			if(autoanim) helpfun();
			
			//
			if($E('.gk_npro_full_interface li', main)){
				$E('.gk_npro_full_interface li', main).setProperty("class", "active");
				//
				$ES('.gk_npro_full_interface li', main).each(function(elm, j){
					elm.addEvent("click", function(){
						if(autoanim) helpfun();
						scroller_main.scrollTo(j*offset,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != j) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
							actual_main_page = j;
						});
					});	
				});
			}
			//
			if($E('.gk_npro_full_prev', main)){
				$E('.gk_npro_full_prev', main).addEvent("click", function(){
					if(autoanim) helpfun();
					if(actual_main_page == 0){
						scroller_main.scrollTo((blocks.length - 1 )*offset,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != blocks.length - 1) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});
						actual_main_page = blocks.length - 1;
					}else{
						actual_main_page--;	
						scroller_main.scrollTo(actual_main_page*offset,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != actual_main_page) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});				
					}
				});
				//
				$E('.gk_npro_full_next', main).addEvent("click", function(){
					if(autoanim) helpfun();
					if(actual_main_page == blocks.length - 1){
						scroller_main.scrollTo(0,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != 0) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});
						actual_main_page = 0;
					}else{
						actual_main_page++;	
						scroller_main.scrollTo(actual_main_page*offset,0);
						$ES('.gk_npro_full_interface li', main).each(function(elmt, k){
							if(k != actual_main_page) elmt.removeProperty("class");
							else elmt.setProperty("class", "active");
						});				
					}				
				});
			}
		}
		//
		if($E('.gk_npro_short_interface', main)){
			var scroller_list = new Fx.Scroll($E('.gk_npro_short_scroll1', main),{duration: $G['animation_speed'],wheelStops:false});
			var blocks_list = $ES('.gk_npro_short_ulwrap', main);
			var offset_list = $E('.gk_npro_short_scroll1', main).getSize().size.x;
			var actual_list_page = 0;
			//
			if($E('.gk_npro_short_prev', main)){
				$E('.gk_npro_short_prev', main).addEvent("click", function(){
					if(actual_list_page == 0){
						scroller_list.scrollTo((blocks_list.length - 1 ) * offset_list, 0);
						actual_list_page = blocks_list.length - 1;
					}else{
						actual_list_page--;	
						scroller_list.scrollTo(actual_list_page*offset_list, 0);				
					}
				});
				//
				$E('.gk_npro_short_next', main).addEvent("click", function(){
					if(actual_list_page == blocks_list.length - 1){
						scroller_list.scrollTo(0, 0);
						actual_list_page = 0;
					}else{
						actual_list_page++;	
						scroller_list.scrollTo(actual_list_page * offset_list, 0);
					}				
				});
			}
		}	
	});
});


eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([89u-wyA-DF-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('window.H("domready",v(){F.Height=F.L.12({13:v(d,e){$(d).T(\'overflow\',\'hidden\');C.14(d,\'15\',e)},B:v(){A d=C.U.16(\'15\').17();P C.u((d>0)?(d,0):(0,C.U.18))},19:v(){P C.M(C.U.18)}});F.1a=F.L.12({13:v(d,e){C.1b=1;C.14(d,\'opacity\',e)},B:v(){P C.u((C.1b>0)?(1,0):(0,1))},19:v(){P C.M(1)}});$V(\'.1c\').Q(v(h,t){A r=h.getProperty("id");A a=$Gavick["1c"+r];A o=h;A p,q=G;A i=G;9($E(\'.gk_news_highlighter_interface\',h)){p=$E(\'.next\',o);q=$E(\'.prev\',o)}9(a[\'8\']==0){A m=$E(\'.1d\',o);A k=0;$V(\'.1d span\').Q(v(d,e){k+=d.N().O.x});A s=(k/a[\'I\'])*1000;A j=J F.L(m,\'1e-W\',{R:s,S:F.Transitions.linear,onComplete:v(){j.M(h.N().O.x);j.u(h.N().O.x,-k)}});9(a[\'1f\']){m.H("1g",v(){j.X()});m.H("1h",v(){j.u(m.16(\'1e-W\').17(),-k)})}j.M(h.N().O.x);j.u(h.N().O.x,-k)}9(a[\'8\']!=0){A g=$V(\'.gk_news_highlighter_item\',h);g.Q(v(d){d.T(\'display\',\'block\')});A f=[];A c=[];A b=0;A l=G;A n=(v(){9(l==G){f[b].B();9(a[\'8\']==2)c[b].u(0,-y);w 9(a[\'8\']==3)c[b].u(0,y);w 9(a[\'8\']==4)c[b].u(0,D);b++;9(b>g.K-1)b=0;f[b].B();9(a[\'8\']==2||a[\'8\']==6)c[b].u(y,0);w 9(a[\'8\']==3||a[\'8\']==7)c[b].u(-y,0);w 9(a[\'8\']==4||a[\'8\']==5)c[b].u(-D,0)}}).Y(a[\'Z\']);9(p){p.H(\'1i\',v(d){J 1j(d).X();9(!i){i=10;(v(){i=G}).1k(a[\'I\']);f[b].B();9(a[\'8\']==2)c[b].u(0,-y);w 9(a[\'8\']==3)c[b].u(0,y);w 9(a[\'8\']==4)c[b].u(0,D);b++;9(b>g.K-1)b=0;f[b].B();9(a[\'8\']==2||a[\'8\']==6)c[b].u(y,0);w 9(a[\'8\']==3||a[\'8\']==7)c[b].u(-y,0);w 9(a[\'8\']==4||a[\'8\']==5)c[b].u(-D,0);$1l(n);n=(v(){9(l==G){f[b].B();9(a[\'8\']==2)c[b].u(0,-y);w 9(a[\'8\']==3)c[b].u(0,y);w 9(a[\'8\']==4)c[b].u(0,D);b++;9(b>g.K-1)b=0;f[b].B();9(a[\'8\']==2||a[\'8\']==6)c[b].u(y,0);w 9(a[\'8\']==3||a[\'8\']==7)c[b].u(-y,0);w 9(a[\'8\']==4||a[\'8\']==5)c[b].u(-D,0)}}).Y(a[\'Z\'])}});q.H(\'1i\',v(d){J 1j(d).X();9(!i){i=10;(v(){i=G}).1k(a[\'I\']);f[b].B();9(a[\'8\']==2)c[b].u(0,-y);w 9(a[\'8\']==3)c[b].u(0,y);w 9(a[\'8\']==4)c[b].u(0,D);(b==0)?b=g.K-1:b--;f[b].B();9(a[\'8\']==2||a[\'8\']==6)c[b].u(y,0);w 9(a[\'8\']==3||a[\'8\']==7)c[b].u(-y,0);w 9(a[\'8\']==4||a[\'8\']==5)c[b].u(-D,0);$1l(n);n=(v(){9(l==G){f[b].B();9(a[\'8\']==2)c[b].u(0,-y);w 9(a[\'8\']==3)c[b].u(0,y);w 9(a[\'8\']==4)c[b].u(0,D);b++;9(b>g.K-1)b=0;f[b].B();9(a[\'8\']==2||a[\'8\']==6)c[b].u(y,0);w 9(a[\'8\']==3||a[\'8\']==7)c[b].u(-y,0);w 9(a[\'8\']==4||a[\'8\']==5)c[b].u(-D,0)}}).Y(a[\'Z\'])}})}g.Q(v(d,e){d.T(\'z-index\',g.K-e);f[e]=J F.1a(d,{R:a[\'I\'],S:a[\'11\']});9(a[\'8\']==2||a[\'8\']==3||a[\'8\']==6||a[\'8\']==7){c[e]=J F.L(d,\'top\',{R:a[\'I\'],S:a[\'11\']})}w 9(a[\'8\']==4||a[\'8\']==5){c[e]=J F.L(d,\'W\',{R:a[\'I\'],S:a[\'11\']})}9(e!=0)f[e].hide();9(a[\'8\']>1)c[e].M(0)});9(a[\'1f\']){g.H("1g",v(){l=10});g.H("1h",v(){l=G})}}})});',[],84,'||||||||animationType|if|||||||||||||||||||||start|function|else||24||var|toggle|this|780||Fx|false|addEvent|animationSpeed|new|length|Style|set|getSize|size|return|each|duration|transition|setStyle|element|ES|left|stop|periodical|animationInterval|true|animationFun|extend|initialize|parent|height|getStyle|toInt|scrollHeight|show|Opacity|now|gk_news_highlighter|nowrap|margin|mouseover|mouseenter|mouseleave|click|Event|delay|clear'.split('|'),0,{}))


try {$Gavick;}catch(e){$Gavick = {};};

$Gavick["gk_news_highlighternews-highlight-1"] = {
		"animationType" : 4,
		"animationSpeed" : 400,
		"animationInterval" : 5000,
		"animationFun" : Fx.Transitions.Sine.easeOut,
		"mouseover" : 1};
		
		
// GK MooMenu v.2.0 Copyright by GavickPro
window.addEvent("domready", function(){
	// necessary classes
		Fx.Height = Fx.Style.extend({initialize: function(el, options){$(el).setStyle('overflow', 'hidden');this.parent(el, 'height', options);},toggle: function(){var style = this.element.getStyle('height').toInt();return (style > 0) ? this.start(style, 0) : this.start(0, this.element.scrollHeight);},show: function(){return this.set(this.element.scrollHeight);}});
			
	var main = $("horiz-menu");
	var levels = new Array();
		var heightFX = new Array();		if(main){
		main.getChildren().each(function(el,i){
			levels.push(new Array());
						heightFX.push(new Array());						
			el.getElementsBySelector("ul ul").each(function(elm,j){
				levels[i].push(elm.getParent());
								heightFX[i].push(new Fx.Height(elm, {duration: 250, transition: Fx.Transitions.Quad.easeOut,wait:true}).set(0));							});
		});
		
		levels.each(function(e,k){
			e.each(function(a,l){
				a.addEvents({
					"mouseenter" : function(){
						a.getChildren()[1].setStyle("overflow","hidden");
						if(window.ie7 && (a.getChildren()[1].getParent() && a.getChildren()[1].getParent().getParent() && a.getChildren()[1].getParent().getParent().getParent() && a.getChildren()[1].getParent().getParent().getParent().hasClass("level1")) && a.getChildren()[1].getStyle("position") != 'absolute') a.getChildren()[1].setStyle("margin-top","35px");
						a.getChildren()[1].setStyle("position","absolute");
												heightFX[k][l].toggle();												(function(){a.getChildren()[1].setStyle("overflow","")}).delay(250);
					},
					"mouseleave" : function(){
						a.getChildren()[1].setStyle("overflow","hidden");
												heightFX[k][l].set(0);											}
				});
			});
		});	
	}
	// submenu activation
	$ES('li.level1 ul',main).each(function(elmt){
		if(elmt.getParent().hasClass('level1')){
			elmt.setProperty("class","level2");
			if(!(!window.ie || (document.querySelectorAll && window.ie))){
				elmt.getElementsBySelector('li ul').setStyle("display","none");
				elmt.getElementsBySelector('li').each(function(elmts){
					elmts.addEvent("mouseenter",function(){
						elmts.getElementsBySelector('ul').setStyle("display","");
					});
				});
			}
		}
	});
	
	$ES('li.level1', main).each(function(el){
		if(($E('.active',el) || el.hasClass('active')) && $E('ul', el)){
			if(!window.ie) $E('ul', el).setProperty("style","");
			else $E('ul', el).removeProperty("style");
			$E('ul', el).setStyle("display", "block");
		} 
	}); 
	
	$ES('li.level1',main).each(function(elm){
		elm.addEvent("mouseenter", function(){
			if(!window.ie) $ES('.level2', main).setProperty("style","");
			else $ES('.level2', main).removeProperty("style");
			
			if($E('ul', elm)) $E('ul', elm).setStyle("display","block");
		});
	});
});