//-----------------------Referenz-Logos:--------------------------
//art = Reihenfolgeart: "fix"-Fixe Reihenfolge, "zuf"-Zufällige Reihenfolge
var Logo=new Array();
var ZZ=new Array();
var Tim;
var lgnr=0;
var lg;
var Logoladen=new Array();
var Paus=3000;

//----------Vorbereitung für die alphabetische Reihung:---------------

function VorLogoWechselnAlphabet(st)
{
  var urlteil;
  if (st==0) urlteil="";
  if (st==1) urlteil="../";
  if (st==2) urlteil="../../";
	
	Logo[0]=urlteil + "images/reflog_uniklagft.png";			//Alpen-Adria Universität Klagenfurt
	Logo[1]=urlteil + "images/reflog_asma.png";						//asma gmbh
	Logo[2]=urlteil + "images/reflog_bsk.png";						//Bausparkasse der österreichischen Sparkassen AG
	Logo[3]=urlteil + "images/reflog_baxter.png";					//Baxter
	Logo[4]=urlteil + "images/reflog_big.png";						//BIG Bundesimmobiliengesellschaft mbH
	Logo[5]=urlteil + "images/reflog_bks.png";						//BKS Bank AG
	Logo[6]=urlteil + "images/reflog_boehr.png";					//Boehringer Ingelheim RCV GmbH &amp; Co KG
	Logo[7]=urlteil + "images/reflog_brz.png";						//Bundesrechenzentrum GmbH
	Logo[8]=urlteil + "images/reflog_lilly.png";					//Eli Lilly GmbH
	Logo[9]=urlteil + "images/reflog_generali.png";				//Generali Versicherung AG						
	Logo[10]=urlteil + "images/reflog_hp1.png";						//Hewlett-Packard Ges.m.b.H.						
	Logo[11]=urlteil + "images/reflog_ikea.png";					//Ikea						
	Logo[12]=urlteil + "images/reflog_unijkulinz.png";		//Johannes Kepler Universität Linz
	Logo[13]=urlteil + "images/reflog_jundj.png";					//Johnson &amp; Johnson Medical Products GmbH
	Logo[14]=urlteil + "images/reflog_unigraz.png";				//Karl-Franzens-Universität Graz
	Logo[15]=urlteil + "images/reflog_kwf.png";						//KWF Kärntner Wirtschaftsförderungs Fonds
	Logo[16]=urlteil + "images/reflog_kraft.png";					//Kraft Foods Europe Services GmbH
	Logo[17]=urlteil + "images/reflog_goettheil.png";			//Krankenhaus Göttlicher Heiland GmbH
	Logo[18]=urlteil + "images/reflog_lfi.png";						//LFI - Ländliches Fortbildungsinstitut Steiermark
	Logo[19]=urlteil + "images/reflog_meduni.png";				//Medizinische Universität Wien
	Logo[20]=urlteil + "images/reflog_ms.png";						//Microsoft Österreich GmbH
	Logo[21]=urlteil + "images/reflog_hiwe.png";					//Niederösterreichisches Hilfswerk
	Logo[22]=urlteil + "images/reflog_nuernbg.png";				//NÜRNBERGER Versicherung AG Österreich
	Logo[23]=urlteil + "images/reflog_oekb.png";					//Oesterreichische Kontrollbank AG
	Logo[24]=urlteil + "images/reflog_oenb.png";					//Oesterreichische Nationalbank
	Logo[25]=urlteil + "images/reflog_orthosp.png";				//Orthopädisches Spital Speising
	Logo[26]=urlteil + "images/reflog_oeqmed.png";				//Österr. Gesellschaft für Qualitätssicherung - ÖQmed
	Logo[27]=urlteil + "images/reflog_vkbuero.png";				//Österreichisches Verkehrsbüro AG
	Logo[28]=urlteil + "images/reflog_palmers.png";				//Palmers Textil AG
	Logo[29]=urlteil + "images/reflog_pfizer.png";				//Pfizer Corporation Austria GmbH
	Logo[30]=urlteil + "images/reflog_pwc.png";						//pwc PricewaterhouseCoopers GmbH
	Logo[31]=urlteil + "images/reflog_raiffhold.png";			//Raiffeisen Holding Niederösterreich-Wien
	Logo[32]=urlteil + "images/reflog_rlbnoewien.png";		//Raiffeisenlandesbank Niederösterreich-Wien
	Logo[33]=urlteil + "images/reflog_raifflbooe.png";		//Raiffeisen Landesbank Oberösterreich AG
	Logo[34]=urlteil + "images/reflog_raiffwiwa.png";			//Raiffeisenbank Wienerwald reg GenmbH
	Logo[35]=urlteil + "images/reflog_rewe.png";					//REWE International Dienstleistungsges.m.b.H.
	Logo[36]=urlteil + "images/reflog_riposol.png";				//Riposol GmbH
	Logo[37]=urlteil + "images/reflog_zoovienna.png";			//Schönbrunner Tiergarten
	Logo[38]=urlteil + "images/reflog_scheho.png";				//sh TREUHAND Steuerberatungs GmbH
	Logo[39]=urlteil + "images/reflog_shell.png";					//Shell Austria GmbH
	Logo[40]=urlteil + "images/reflog_skamstetten.png";		//Sparkasse der Stadt Amstetten AG
	Logo[41]=urlteil + "images/reflog_sknoe.png";					//Sparkasse Niederösterreich Mitte West AG
	Logo[42]=urlteil + "images/reflog_skwald.png";				//Sparkasse Waldviertel-Mitte Bank AG
	Logo[43]=urlteil + "images/reflog_stiftklnb.png";			//Stift Klosterneuburg
	Logo[44]=urlteil + "images/reflog_tuwien.png";				//Technische Universität Wien
	Logo[45]=urlteil + "images/reflog_bankaustria.png";		//UniCredit Bank Austria AG
	Logo[46]=urlteil + "images/reflog_vetmed.png";				//Veterinärmedizinische Universität Wien
	Logo[47]=urlteil + "images/reflog_vbkrems.png";				//Volksbank Krems-Zwettl AGVolksbank Tullnerfeld
	Logo[48]=urlteil + "images/reflog_vbtulln.png";				//Volksbank Tullnerfeld
	Logo[49]=urlteil + "images/reflog_wwg.png";						//Weichenwerk Wörth GmbH
	Logo[50]=urlteil + "images/reflog_wko.png";						//Wirtschaftskammer Niederösterreich
	
	lg=Logo.length;
	for (var n=0; n < lg; n++)
	{
		Logoladen[n]=new Image();
		Logoladen[n].src=Logo[n];
	}
	LogoWechseln();
}

//----------Vorbereitung für die Auswahl-Reihung:---------------

function VorLogoWechselnAuswahl(st,art)
{
  var urlteil;
  if (st==0) urlteil="";
  if (st==1) urlteil="../";
  if (st==2) urlteil="../../";
	
	Logo[0]=urlteil + "images/reflog_bsk.png";						//Bausparkasse der österreichischen Sparkassen AG
	Logo[1]=urlteil + "images/reflog_baxter.png";					//Baxter
	Logo[2]=urlteil + "images/reflog_big.png";						//BIG Bundesimmobiliengesellschaft mbH
	Logo[3]=urlteil + "images/reflog_bks.png";						//BKS Bank AG
	Logo[4]=urlteil + "images/reflog_boehr.png";					//Boehringer Ingelheim RCV GmbH &amp; Co KG
	Logo[5]=urlteil + "images/reflog_brz.png";						//Bundesrechenzentrum GmbH
	Logo[6]=urlteil + "images/reflog_lilly.png";					//Eli Lilly GmbH
	Logo[7]=urlteil + "images/reflog_generali.png";				//Generali Versicherung AG						
	Logo[8]=urlteil + "images/reflog_hp1.png";						//Hewlett-Packard Ges.m.b.H.						
	Logo[9]=urlteil + "images/reflog_ikea.png";						//Ikea						
	Logo[10]=urlteil + "images/reflog_unijkulinz.png";			//Johannes Kepler Universität Linz
	Logo[11]=urlteil + "images/reflog_jundj.png";					//Johnson &amp; Johnson Medical Products GmbH
	Logo[12]=urlteil + "images/reflog_unigraz.png";		 		//Karl-Franzens-Universität Graz
	Logo[13]=urlteil + "images/reflog_kraft.png";					//Kraft Foods Europe Services GmbH
	Logo[14]=urlteil + "images/reflog_goettheil.png";			//Krankenhaus Göttlicher Heiland GmbH
	Logo[15]=urlteil + "images/reflog_meduni.png";				//Medizinische Universität Wien
	Logo[16]=urlteil + "images/reflog_ms.png";						//Microsoft Österreich GmbH
	Logo[17]=urlteil + "images/reflog_hiwe.png";					//Niederösterreichisches Hilfswerk
	Logo[18]=urlteil + "images/reflog_nuernbg.png";				//NÜRNBERGER Versicherung AG Österreich
	Logo[19]=urlteil + "images/reflog_oekb.png";					//Oesterreichische Kontrollbank AG
	Logo[20]=urlteil + "images/reflog_oenb.png";					//Oesterreichische Nationalbank
	Logo[21]=urlteil + "images/reflog_vkbuero.png";				//Österreichisches Verkehrsbüro AG
	Logo[22]=urlteil + "images/reflog_palmers.png";				//Palmers Textil AG
	Logo[23]=urlteil + "images/reflog_pfizer.png";				//Pfizer Corporation Austria GmbH
	Logo[24]=urlteil + "images/reflog_pwc.png";						//pwc PricewaterhouseCoopers GmbH
	Logo[25]=urlteil + "images/reflog_rlbnoewien.png";		//Raiffeisenlandesbank Niederösterreich-Wien
	Logo[26]=urlteil + "images/reflog_raifflbooe.png";		//Raiffeisen Landesbank Oberösterreich AG
	Logo[27]=urlteil + "images/reflog_rewe.png";					//REWE International Dienstleistungsges.m.b.H.
	Logo[28]=urlteil + "images/reflog_shell.png";					//Shell Austria GmbH
	Logo[29]=urlteil + "images/reflog_sknoe.png";					//Sparkasse Niederösterreich Mitte West AG
	Logo[30]=urlteil + "images/reflog_bankaustria.png";		//UniCredit Bank Austria AG
	Logo[31]=urlteil + "images/reflog_vetmed.png";				//Veterinärmedizinische Universität Wien
	Logo[32]=urlteil + "images/reflog_vbtulln.png";				//Volksbank Tullnerfeld
	Logo[33]=urlteil + "images/reflog_wko.png";						//Wirtschaftskammer Niederösterreich
	
	lg=Logo.length;
	for (var n=0; n < lg; n++)
	{
		Logoladen[n]=new Image();
		Logoladen[n].src=Logo[n];
	}
	if (art=="fix") LogoWechseln();
	if (art=="zuf") LogoWechselnZuf();
}



//----------Zufall in Auswahl und gesamter Gruppe (art="zuf"):---------------

function LogoWechselnZuf()
{
	var z;
  var n=0;
	var s;

	while (n<lg)
   {
      z=Math.floor((lg)*Math.random());
      ZZ[n]=z;
      if (n>0)
         { for (s=0; s<=n-1; s++)  // Prüft ob doppelt
            { if (ZZ[s]==ZZ[n])
               { n=n-1;
                 break;
               }
             }
         }
      n=n+1;
  }

	for (n=0; n<lg; n++)
	{
		Logoladen[n]=new Image();
		Logoladen[n].src=Logo[ZZ[n]];
	}

	LogoWechseln();
}




//---------------------Logowechsel:--------------

function LogoWechseln()
{
	if (lgnr > (lg-1)) lgnr=0;
	document.images.RefLogo.src=Logoladen[lgnr].src;
	Tim=setTimeout('LogoWechseln()', Paus);
	lgnr++;
}

