/* JavaScript Code fuer Musicalklasse Online */

/* Implementation der Austauschroutinen für Bilder */

/* Fest codierter Standardstatuszeilentext. */
statustext=new Array();
statustext[0]="Information about movies and TV productions Jeremy Irons starred in";
statustext[1]="Information about CDs and audiobooks done by Jeremy Irons";
statustext[2]="Biographical information, trivia, awards list";
statustext[3]="General news as well as information on upcoming movies and updates to the page.";
statustext[4]="Special appearances of Jeremy Irons on TV, e.g. Oscar Night.";
statustext[5]="Links to other Jeremy Irons resources on the web.";
statustext[6]="How to get in contact with Jeremy Irons's Management.";
statustext[7]="Participate in polls, review Jeremy Irons's films!";
statustext[8]="Some information about who's behind this creation...";
statustext[9]="The site at a glance.";

/* Zunaechst lesen wir die Bilder ein */
/* Pfade sind relativ zum aktuellen (!) Dokument */
/* Es muß zunächst init() aufgerufen werden, mit einem passenden relativen */
/* Prefix-Verweis, z.B. "../". Danach werden die Bilder geladen. */
var subpaths=new Array();

/* for(i=0;i<linepic.length;i++) {
    linepic[i]=new Image();
}

for(i=0;i<arrpic.length;i++) {
    arrpic[i]=new Image();
} */


/* Vertauscht die entsprechenden Bilder für Pfeile*/
function flip(targetname, onoff) {
    document[targetname].src=arrpic[onoff].src;
}

/* Vertauscht die entsprechenden Bilder die Submenues.*/
function flips(targetname, index) {
    document[targetname].src=subpic[index].src;
}


/* Vertauscht beliebige Bilder der Menüzeile*/
function exchange(targetname, picindex) {
    document.images[targetname].src=linepic[picindex].src;
}

/* Blendet Statuszeileninfo ein.
   Bei einer Zahl wird ein codierter Standardtext aufgerufen, sonst
   der übergebene Text. */
function bstat(numberortext) {
    if(isNaN(numberortext)) {
        status=numberortext;
    }
    else {
        status=statustext[numberortext];
    }
    return true;
}

/* Resets the status line. */
function rstat() {
    status="";
    return true;
}

