function banner(imgSource,url,alt,chance) {
this.imgSource = imgSource;
this.url = url;
this.alt = alt;
this.chance = chance;
}


function dispBanner() {
with (this) document.write("<A HREF=" + url + "><IMG SRC='" + imgSource + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A>");
}
banner.prototype.dispBanner = dispBanner;


// BEGIN TO EDIT YOUR BANNERS HERE

// array der Banner die zur Auswahl stehen
// jedes banner ist ein element des arrays beginend mit 0 (null)
// für jedes banner wird die src (quelle) des images angegeben und die src (adresse) der linkseite
// nach dem 2. komma folgt die beschreibung
// die change der anzeige in % errechnet sich aus der summe der zahlenangaben (bruch)

//
// banners[x] = new banner(<banner src für das image>,
//<url für den link wenn das banner geklickt wird>,
// <alt>
//<chance für die auswahl>);
// um die chance der anzeige zu erhöhen, erhöhen sie die zahl relativ zu den anderen.
//

banners = new Array();
// z.B.:http://www.xyz.net/images/banner/logo1.jpg


banners[0] = new banner("http://www.aboutvienna.org/top/level.gif",
                        "http://www.actilingua.com/language_school/summary_services.php?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=AL-SummaryGermanOnline-Banner target='_blank'",
                        "Learn German - online and free",
                        9);
banners[1] = new banner("http://www.aboutvienna.org/top/level_1.gif",
                        "http://www.actilingua.com/language_school/summary_services.php?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=AL-SummaryGermanOnline-Banner target='_blank'",
                        "Test your German - online and free",  
						9);      				
banners[2] = new banner("http://www.aboutvienna.org/top/actilingua_apartment_hotel.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "ActiLingua Academy",
                        9);
banners[3] = new banner("http://www.aboutvienna.org/top/acti_apart_hotel.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "Hotel accommodation in Vienna",
                        9); 
banners[4] = new banner("http://www.aboutvienna.org/top/hotel_wien.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "Hotel accommodation in Vienna",
                        9); 
banners[5] = new banner("http://www.aboutvienna.org/top/podcast.gif",
                        "http://www.actilingua.com/podcast/?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=Podcast-Banner target='_blank'",
                        "German English Vocabulary Podcast",
                        9); 
banners[6] = new banner("http://www.aboutvienna.org/top/actilingua-vocabulary-trainer-podcast.gif",
                        "http://www.actilingua.com/podcast/?utm_source=AboutVienna&utm_medium=Teaser&utm_campaign=Podcast-Banner target='_blank'",
                        "German English Vocabulary Podcast",
                        9); 

// END EDIT
// DO NOT CHANGE ANYTHING BELOW - UNLESS YOU FEEL YOU NEED SOME CHANGE IN YOUR LIFE


sum_of_all_chances = 0;
for (i = 0; i < banners.length; i++) {
sum_of_all_chances += banners[i].chance;
}
function randomBanner() {
chance_limit = 0;
randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
for (i = 0; i < banners.length; i++) {
chance_limit += banners[i].chance;
if (randomly_selected_chance <= chance_limit) {
document.write("<A HREF=" + banners[i].url + "><IMG SRC='" + banners[i].imgSource + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + banners[i].alt + "'></A>");
return banners[i];
break;
}
}
}

// Scriptcode der anderen Seiten:

function popmap(){
				open("map.htm","Fenster2","width=629,height=471");
				}

function pop1(){
				open("http://service.magwien.gv.at/wien-grafik/tng/en/next.htm","Fenster3","width=600,height=500,scrollbars,location");
				}

function pop2(){
				open("http://service.magwien.gv.at/wien-grafik/tng/de/next.htm","Fenster4","width=600,height=500,scrollbars,location");
				}

function pop3(){
				open("http://www.vor.at/cgi-bin/efa_frame.pl?Sprache=english&amp;","Fenster5","width=600,height=500,scrollbars,location");
				}

function pop4(){
				open("http://www.vor.at/cgi-bin/efa_frame.pl","Fenster6","width=600,height=500,scrollbars,location");
				}

function pop5(){
				open("http://www.zamg.ac.at/index.php3?xmlval_ID_KEY[]=0162&xmlval_SEL_ID_KEY[]=0162&xmlval_PARENT_KEY[]=0161&xmlval_OPEN[]=010&xmlval_LINK_TYPE[]=main&xmlval_CONT_TYPE[]=single&xmlval_OPEN[]=010","Fenster6","width=600,height=500,scrollbars,location");
				}


function pop6(){
				open("http://info.wien.at/index_e.html","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop7(){
				open("http://info.wien.at/index.html","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop8(){
				open("http://www.anto.com/vienna.html","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop9(){
				open("http://www.onstage.at/home.htm","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop10(){
				open("http://www.tourist-net.co.at/coffee/coffee0e.htm","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop11(){
				open("http://www.tourist-net.co.at/coffee/coffee0.htm","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop12(){
				open("http://www.austria.eu.net/stein/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop13(){
				open("http://www.lib.uchicago.edu/keith/austrian-beer.html","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop14(){
				open("http://www.vienna.at/pubs/redaktion/New-English/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop15(){
				open("http://www.vienna.at/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop16(){
				open("http://www.austria.eu.net/stein/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop17(){
				open("http://www.viennawalks.tix.at/flash/100e.htm","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop18(){
				open("http://www.viennawalks.tix.at/flash/index.html","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop19(){
				open("http://www.kunstnet.or.at/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop20(){
				open("http://www.fitness-center.at/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop21(){
				open("http://www.aua.com","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop22(){
				open("http://www.laudaair.com/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop23(){
				open("http://www.indo.com/distance/","Fenster8","width=600,height=500,scrollbars,location");
				}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

/* Functions that handle preload. */
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function pop01links(){ open("http://www.language-travel.org"); }
function pop02links(){ open("http://www.studyeurope.org"); }
function pop03links(){ open("http://www.aboutaustria.org"); }
function pop04links(){ open("http://www.aboutvienna.org"); }
function pop05links(){ open("http://www.about-germany.org"); }
function pop06links(){ open("http://www.deutsch-lernen.com/e-index.htm"); }
function pop07links(){ open("http://www.actilingua.com/virtual/Links2.htm"); }
function pop08links(){ open("http://www.ialc.org"); }
function pop09links(){ open("http://www.csufresno.edu/forlang/german/"); }
function pop10links(){ open("http://www.cwru.edu/artsci/modlang/Lab/german.html"); }
function pop11links(){ open("http://www.fas.harvard.edu/%7Egerman/"); }
function pop12links(){ open("http://www.hkbu.edu.hk/~europe/gindex.htm"); }
function pop13links(){ open("http://www.reitaku-u.ac.jp/othersite/ijgermany.htm"); }
function pop14links(){ open("http://www.rosemont.edu"); }
function pop15links(){ open("http://www.lernforum.uni-bonn.de/index.html"); }
function pop16links(){ open("http://www.uni-leipzig.de/%7Erotheh/deutsus.htm"); }
function pop17links(){ open("http://www.brighton.ac.uk"); }
function pop18links(){ open("http://www.uic.edu/depts/germ/student.htm"); }
function pop19links(){ open("http://www.uovs.ac.za"); }
function pop20links(){ open("http://www.wbu.edu/b/b06/"); }
function pop21links(){ open("http://www.rwcmd.ac.uk"); }
function pop22links(){ open("http://www.art-navigator.com"); }
function pop23links(){ open("http://www.andritsch.at"); }
function pop24links(){ open("http://www.ac-nancy-metz.fr/enseign/allemand/adeaf/"); }
function pop25links(){ open("http://www.arfe-cursus.com"); }
function pop26links(){ open("http://www.foreignlanguagehome.com"); }
function pop27links(){ open("http://www.museum.vienna.at/homepage.asp"); }
function pop28links(){ open("http://www.jl-lernsoftware.at"); }
function pop29links(){ open("http://www.languagehelpdesk.com"); }
function pop30links(){ open("http://www.learnplus.com"); }
function pop31links(){ open("http://www.lernfaden.de"); }
function pop32links(){ open("http://www.divace.com"); }
function pop33links(){ open("http://www.langcen.dk"); }
function pop34links(){ open("http://www.urlaubsland-oesterreich.de"); }
function pop35links(){ open("http://www.travelnotes.org"); }
function pop36links(){ open("http://www.twinroom.com/europe_cities/vienna.shtml"); }
