var current_image=0;
var current_headline=0;
var current_box=0;

var kumiheadline_count;
var kumiheadline_interval;
var old_kumiheadline = 0;
var current_kumiheadline = 0;

function rotator() {
  old_image = current_image%image_count;
  new_image = ++current_image%image_count;
  old_headline = current_headline%headline_count;
  new_headline = ++current_headline%headline_count;
  old_box = current_box%box_count;
  new_box = ++current_box%box_count;
  $("#headline div:eq(" + old_headline + ")").slideUp("slow", function() {
  $("#banner div:eq(" + new_image + ")").animate({width: 'show'}, 'slow', function() {
  	$("#previewnews li:eq(" + new_image + ")").css('opacity',0.25);
  	$("#previewnews li:eq(" + old_image + ")").css('opacity',1);
   	$("#banner div:eq(" + old_image + ")").fadeOut("slow", function() {
   		$("#headline div:eq(" + new_headline + ")").slideDown("slow");
   	});
  });
  });
}


$(document).ready(function(){
	$("#previewnews li:eq(0)").css('opacity',0.25);
  image_count = $("#banner div").hide().size(); 
  headline_count = $("#headline div").hide().size();
  box_count = 4;
  $("#banner div:eq("+current_image+")").show();
  $("#headline div:eq("+current_headline+")").show();
  setInterval(rotator,5500); //time in milliseconds
});

 $(function (){
 	$("ul.nav").superfish({
	delay : 0,
	animation	: {opacity:"show"},
	speed : "fast"
	});

 	var verf = $('#verfneu').text();
 	if (verf!=="") {
 		$('#verf').html(verf);
 		$('#verfneu').hide();
 	}
	$('#startsynch li').hover(
      function () {
      	r=$(this).attr("rel");
      	$('#startsynchtxt').html(r);
      }, 
      function () {
        $('#startsynchtxt').html("&nbsp;");
      }
    );
				
});

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('(1($){$.2={};$.2.o=[];$.2.7={};$.2.B={d:\'Z\',q:\'Y\',z:X,K:{W:\'V\'},N:\'10\',u:L,v:L,x:1(){},Q:1(){},M:1(){},P:1(){}};$.n.2=1(7){5 e=\'14\',g=1(){5 $$=$(3),b=j($$);t(b,H);S(b.m);$$.T().15().f()},p=1(){5 $$=$(3),b=j($$);5 o=t(b,H);S(b.m);C(!$$.13(\'.\'+e)){b.m=12(1(){$$.f();C(o.$r.F){g.8(o.$r)}},o.z)}},j=1($9){c $9.A(\'4.2:11\')[0]},t=1(9,w){9=w?9:j(9);c $.2.7=$.2.o[9.D]},l=1(){c $.2.7.u?\'6[4]\':\'6:1i(4)\'};c 3.h(1(){5 s=3.D=$.2.o.F;5 o=$.G({},$.2.B,7);o.$r=$(\'6.\'+o.q,3).h(1(){$(3).k(o.d+\' \'+e).1j(l()).R(o.q)});$.2.o[s]=$.2.7=o;$(l(),3)[($.n.E&&!o.v)?\'E\':\'1k\'](g,p).1h(\'.\'+e).f();5 $a=$(\'a\',3);$a.h(1(i){5 $6=$a.y(i).A(\'6\');$a.y(i).1n(1(){g.8($6)}).1m(1(){p.8($6)})});o.x.8(3)}).k(\'2\')};$.n.G({f:1(){5 o=$.2.7,$4=$(\'6.\'+o.d,3).19(3).R(o.d).U(\'>4\').1a().J(\'I\',\'O\');o.P.8($4);c 3},T:1(){5 o=$.2.7,$4=3.k(o.d).U(\'>4:O\').J(\'I\',\'18\');o.Q.8($4);$4.16(o.K,o.N,1(){o.M.8(3)});c 3}});$(17).1b(1(){$(\'4.2\').h(1(){$(\'6\',3).1f(\'1g\',\'1e\',\'1c\',\'1d\')})})})(1l);',62,86,'|function|superfish|this|ul|var|li|op|call|el||menu|return|hoverClass|bcClass|hideSuperfishUl|over|each||getMenu|addClass|hasUl|sfTimer|fn||out|pathClass|path||getOpts|oldJquery|disableHI|menuFound|onInit|eq|delay|parents|defaults|if|serial|hoverIntent|length|extend|true|visibility|css|animation|false|onShow|speed|hidden|onHide|onBeforeShow|removeClass|clearTimeout|showSuperfishUl|find|show|opacity|800|overideThisToUse|sfHover|normal|first|setTimeout|is|sfbreadcrumb|siblings|animate|window|visible|add|hide|unload|mouseenter|mouseleave|mouseout|unbind|mouseover|not|has|filter|hover|jQuery|blur|focus'.split('|'),0,{}))
