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.aboutaustria.org/Top/address.gif",
                        "http://www.aboutvienna.org/best_adresses/cafes.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-Vienna-Banner target='_blank'",
                        "Best addresses in Vienna",
                        7);
banners[1] = new banner("http://www.aboutaustria.org/Top/level.gif",
                        "http://www.actilingua.com/language_school/summary_services.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-SummaryGermanOnline-Banner target='_blank'",
                        "Learn German - online and free",
                        7);
banners[2] = new banner("http://www.aboutaustria.org/Top/level_1.gif",
                        "http://www.actilingua.com/language_school/summary_services.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-SummaryGermanOnline-Banner target='_blank'",
                        "Test your German - online and free",  
						7);
banners[3] = new banner("http://www.aboutaustria.org/Top/music.gif",
                        "http://www.aboutvienna.org/composers/musiker.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-Vienna-Banner target='_blank'",
                        "All about famous composers and musicians from Vienna",
                        7);
banners[4] = new banner("http://www.aboutaustria.org/Top/acti_apart_hotel.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "Hotel accommodation in Vienna",
                        7);        						
banners[5] = new banner("http://www.aboutaustria.org/Top/vienna.gif",
                        "http://www.aboutvienna.org/fastfacts.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-Vienna-Banner target='_blank'",
                        "About Vienna: City and Culture Guide and Tourist Information",
                        7);
banners[6] = new banner("http://www.aboutaustria.org/Top/discount.gif",
                        "http://www.actilingua.com/learn_german/discount.php?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=AL-Rabatt-Banner target='_blank'",
                        "ActiLingua Academy",
                        7);			
banners[7] = new banner("http://www.aboutaustria.org/Top/actilingua_apartment_hotel.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "Apartment Hotel*** Vienna",
                        7);
banners[8] = new banner("http://www.aboutaustria.org/Top/hotel_wien.gif",
                        "http://www.apartment-hotel-wien.at/?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=Hotel-Startseite-Banner target='_blank'",
                        "Apartment Hotel*** Vienna",
                        7);
banners[9] = new banner("http://www.aboutaustria.org/Top/podcast.gif",
                        "http://www.actilingua.com/podcast/?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=Podcast-Banner target='_blank'",
                        "German English Vocabulary Trainer Podcast",
                        7);
banners[10] = new banner("http://www.aboutaustria.org/Top/actilingua-vocabulary-trainer-podcast.gif",
                        "http://www.actilingua.com/podcast/?utm_source=AboutAustria&utm_medium=Teaser&utm_campaign=Podcast-Banner target='_blank'",
                        "German English Vocabulary Trainer Podcast",
                        7);					
// 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;
}
}
}


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 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 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 pop24(){
				open("http://www.salzburginfo.at/","Fenster8","width=600,height=500,scrollbars,location");
				}		
				
function pop25(){
				open("http://www.graztourismus.at/","Fenster8","width=600,height=500,scrollbars,location");
				}	
						
function pop26(){
				open("http://www.innsbruck.at/","Fenster8","width=600,height=500,scrollbars,location");
				}

function pop27(){
				open("http://www.linz.at/","Fenster8","width=600,height=500,scrollbars,location");
				}
				
function pop28(){
				open("http://www.bregenz.at/","Fenster8","width=600,height=500,scrollbars,location");
				}						
				
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"); }				
				
