	rollOn=new Image();
	rollOn.src="/images/institut_on.gif";
	rollOff=new Image();
	rollOff.src="/images/institut_off.gif";
	
function doIt()
	{
	NewWindow('http://www.zkj.ch/institutionen.html','test','450','400','no','center');return false;
	}


/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/4*4:100;TopPosition=(screen.height)?(screen.height-h)/3*3:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


$(document).ready(function(){
  $("#logo").hide();
  $("#institute_name").hide();
  $("#zkj_desc").hide();
  $("#slogan").hide();

  setTimeout(function(){ $("#logo").fadeIn('fast') }, 500);
  setTimeout(function(){ $("#institute_name").fadeIn(2000) }, 2000);
  setTimeout(function(){ $("#zkj_desc").fadeIn(2000) }, 4000);
  setTimeout(function(){ doIt() }, 10000);
  setTimeout(function(){ $("#slogan").fadeIn(2000) }, 6000);
  setTimeout(function(){ $("#slogan").fadeOut(2000) }, 9000);
  setTimeout(function(){ $("#newsletter_push").fadeIn("fast",function(){
    $(this).animate({'top': '188px'},{duration: 1000, easing: 'easeOutBounce'}, "swing");
  }) }, 5500);
  setTimeout(function(){ $("#pagebutton").fadeIn("fast",function(){
    $(this).animate({'top': '188px'},{duration: 1000, easing: 'easeOutBounce'}, "swing");
  }) }, 2500);
  setTimeout(function(){ $("#startpagebutton").fadeIn("fast",function(){
    $(this).animate({'top': '188px'},{duration: 1000, easing: 'easeOutBounce'}, "swing");
  }) }, 2500);
  
  
  window.setTimeout("window.location.href='/einleitung'",16000);
  
});


