// Konstanten, Voreinstellungen
// ----------------------------

zeichnung = 0;
malerei = 1;				// Index Themen und Bedienungselemente
druckgrafik = 2;
objekte = 3;

a_bild_nr = new Array(); 			// Alle Themen werden beginnend mit Bild-Nr 0 angezeigt
a_bild_nr[zeichnung] = 0;
a_bild_nr[malerei] = 0;
a_bild_nr[druckgrafik] = 0;
a_bild_nr[objekte] = 0;

thema = malerei;  				// Angezeigtes Thema bei Start

c_selected = 'black';			// Farbzuordnung der Bedienelemente
c_hover = '#ccc';
c_not_selected = 'inherit';

toFade = 0;
opac = 0;

// Bildverwaltung
// --------------

a_idents = new Array('zeichnung','malerei','druckgrafik','objekte');

a_selected = new Array();
a_selected[zeichnung] = false;
a_selected[malerei] = true;
a_selected[druckgrafik] = false;
a_selected[objekte] = false;


a_zeichnung = new Array();
a_zeichnung[0] = '<IMG SRC="img/1000_zaehler.jpg" WIDTH="523" HEIGHT="400" ALT="-">';
a_zeichnung[1] = '<IMG SRC="img/goya.jpg" WIDTH="583" HEIGHT="400" ALT="-">';
a_zeichnung[2] = '<IMG SRC="img/inges_ueberfahrt.jpg" WIDTH="383" HEIGHT="400" ALT="-">';
a_zeichnung[3] = '<IMG SRC="img/kapern.jpg" WIDTH="565" HEIGHT="400" ALT="-">';
a_zeichnung[4] = '<IMG SRC="img/repro_4.jpg" WIDTH="602" HEIGHT="400" ALT="-">';
a_zeichnung[5] = '<IMG SRC="img/schliesst_euch.jpg" WIDTH="285" HEIGHT="400" ALT="-">';
a_zeichnung[6] = '<IMG SRC="img/weberilse.jpg" WIDTH="650" HEIGHT="270" ALT="-">';
a_zeichnung[7] = '<IMG SRC="img/zeitenrol.jpg" WIDTH="565" HEIGHT="400" ALT="-">';

a_texte_zeichnung = new Array();
a_texte_zeichnung[0] = '1000 Zehler, 1997, Graphit auf Karton, 57 x 75 cm';
a_texte_zeichnung[1] = 'Goyas Hund, 1997, Graphit, Pr&auml;gedruck auf Karton, 55,5 x 80 cm ';
a_texte_zeichnung[2] = 'Inges letzte &Uuml;berfahrt, ohne Jahr, Graphit, Klebeband auf Karton, 40 x 37,5 cm';
a_texte_zeichnung[3] = 'Kapern hassen russische Eier, 2005, Bleistift auf Papier, 30,4 x 43 cm ';
a_texte_zeichnung[4] = 'ohne Bezeichnung, 2005, Graphit, Collage, Mischtechnik auf Papier, 78 x 115 cm';
a_texte_zeichnung[5] = 'Schliesst euch zusammen, dann habt ihr es leichter, 2005, Bleistift auf Papier, 43 x 30,4 cm ';
a_texte_zeichnung[6] = 'Weberilse, 2007, Kohle, Graphit auf Papier, 133 x 322 cm';
a_texte_zeichnung[7] = 'Zeitenroller, 1997, Bleistift, Klebeband auf Papier, 42 x 61 cm';



a_malerei = new Array();
a_malerei[0] = '<IMG SRC="img/besonders_nicht.jpg" WIDTH="349" HEIGHT="400" ALT="-">';
a_malerei[1] = '<IMG SRC="img/bild_1688.jpg" WIDTH="497" HEIGHT="400" ALT="-">';
a_malerei[2] = '<IMG SRC="img/blut_u_silber.jpg" WIDTH="308" HEIGHT="400" ALT="-">';
a_malerei[3] = '<IMG SRC="img/bocca.jpg" WIDTH="301" HEIGHT="400" ALT="-">';
a_malerei[4] = '<IMG SRC="img/clowny.jpg" WIDTH="392" HEIGHT="400" ALT="-">';
a_malerei[5] = '<IMG SRC="img/igoeran.jpg" WIDTH="565" HEIGHT="400" ALT="-">';
a_malerei[6] = '<IMG SRC="img/lahmes_t.jpg" WIDTH="280" HEIGHT="400" ALT="-">';
a_malerei[7] = '<IMG SRC="img/lore_stuerzende.jpg" WIDTH="400" HEIGHT="400" ALT="-">';
a_malerei[8] = '<IMG SRC="img/maerthyrerpalme.jpg" WIDTH="400" HEIGHT="400" ALT="-">';
a_malerei[9] = '<IMG SRC="img/mondsuchtig.jpg" WIDTH="282" HEIGHT="400" ALT="-">';
a_malerei[10] = '<IMG SRC="img/oase.jpg" WIDTH="312" HEIGHT="400" ALT="-">';
a_malerei[11] = '<IMG SRC="img/ueberfahrt.jpg" WIDTH="641" HEIGHT="400" ALT="-">';
a_malerei[12] = '<IMG SRC="img/violett.jpg" WIDTH="301" HEIGHT="400" ALT="-">';
a_malerei[13] = '<IMG SRC="img/kein_moench_am_meer.jpg" WIDTH="649" HEIGHT="400" ALT="-">';

a_texte_malerei = new Array();
a_texte_malerei[0] = 'Besonders nicht, 2007, Mischtechnik auf Karton, 44 x 38,8 cm';
a_texte_malerei[1] = 'Jenseitsschleppen, 2004, &Ouml;lfarbe auf Papier aufgezogen, 44 x 55 cm';
a_texte_malerei[2] = 'Blut und Silber, 2000, &Ouml;lfarbe auf Karton, 49,6 x 38,4 cm';
a_texte_malerei[3] = 'Bocca, 2002, &Ouml;lfarbe auf Hartfaserplatte, 40 x 30 cm';
a_texte_malerei[4] = 'Keine Bezeichnung, 2001, Mischtechnik auf Karton, 37 x 36,3 cm ';
a_texte_malerei[5] = 'Ig&ouml;ran, um 1999, &Ouml;lfarbe auf Papier, 61 x 86 cm';
a_texte_malerei[6] = 'Ohne Bezeichnung, 2007, &Ouml;lfarbe auf Karton, 44 x 31,2 cm';
a_texte_malerei[7] = 'st&uuml;rzende Lore, 2004, &Ouml;lfarbe auf Leinwand, 55 x 55 cm';
a_texte_malerei[8] = 'M&auml;rtyrerpalme, 1999/2003, Farbe auf Leinwand, 175 x 175 cm';
a_texte_malerei[9] = 'monds&uuml;chtig J.F.K., 2001, &Ouml;lfarbe auf Leinwand, 70 x 50 cm';
a_texte_malerei[10] = 'Oase, 2002, &Ouml;lfarbe auf Papier, 75 x 58,2 cm';
a_texte_malerei[11] = '&Uuml;berfahrt nach HIngabe m&ouml;glich, 2007, Mischtechnik auf Leinwand, 55 x 88 cm';
a_texte_malerei[12] = 'Keine Bezeichnung, 2005, Mischtechnik auf Karton, 40 x 30 cm';
a_texte_malerei[13] = 'Kein M&ouml;nch am Meer, 2009, &Ouml;lfarbe auf Leinwand, 88 x 55 cm';


a_druckgrafik = new Array;
a_druckgrafik[0] = '<IMG SRC="img/_MG_0391.gif" WIDTH="557" HEIGHT="400" ALT="-">';
a_druckgrafik[1] = '<IMG SRC="img/_MG_0394.gif" WIDTH="286" HEIGHT="400" ALT="-">';
a_druckgrafik[2] = '<IMG SRC="img/_MG_0397.gif" WIDTH="582" HEIGHT="400" ALT="-">';
a_druckgrafik[3] = '<IMG SRC="img/_MG_0400.gif" WIDTH="587" HEIGHT="400" ALT="-">';
a_druckgrafik[4] = '<IMG SRC="img/_MG_0403.gif" WIDTH="191" HEIGHT="400" ALT="-">';
a_druckgrafik[5] = '<IMG SRC="img/_MG_0406.gif" WIDTH="190" HEIGHT="400" ALT="-">';
a_druckgrafik[6] = '<IMG SRC="img/_MG_0409.gif" WIDTH="193" HEIGHT="400" ALT="-">';
a_druckgrafik[7] = '<IMG SRC="img/_MG_0410.gif" WIDTH="190" HEIGHT="400" ALT="-">';
a_druckgrafik[8] = '<IMG SRC="img/_MG_0415.gif" WIDTH="192" HEIGHT="400" ALT="-">';
a_druckgrafik[9] = '<IMG SRC="img/_MG_0418.gif" WIDTH="650" HEIGHT="312" ALT="-">';
a_druckgrafik[10] = '<IMG SRC="img/_MG_0421.gif" WIDTH="650" HEIGHT="313" ALT="-">';
a_druckgrafik[11] = '<IMG SRC="img/_MG_0424.gif" WIDTH="564" HEIGHT="400" ALT="-">';


a_texte_druckgrafik = new Array();
a_texte_druckgrafik[0] = '30 x 42 cm, 2002, &Auml;tzradierung auf Aluminiumplatte,<br>Aleatorisches Verfahren aus der Graphikkassette "...gute Freunde kann  niemand trennen", Auflage 5/6';
a_texte_druckgrafik[1] = '42 x 30 cm, 2002, &Auml;tzradierung auf Kupferplatte, aus der Graphikkassette "...gute Freunde kann  niemand trennen", Auflage 5/6';
a_texte_druckgrafik[2] = '35 x 50 cm, 2002, &Auml;tzradierung auf Zinkblech, Auflage 7/9 ';
a_texte_druckgrafik[3] = '35 x 50 cm, 2002, &Auml;tzradierung auf Zinkblech, Auflage 4/7';
a_texte_druckgrafik[4] = '70 x 33 cm, 2001, Kaltnadel auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7 ';
a_texte_druckgrafik[5] = '70 x 33 cm, 2001, Kaltnadel auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7 ';
a_texte_druckgrafik[6] = '70 x 33 cm, 2001, &Auml;tzradierung auf Kupfplatte, aus der Graphikkassette HOCH REIN, Auflage 7/7';
a_texte_druckgrafik[7] = '70 x 33 cm, 2001, Aquatinta auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7';
a_texte_druckgrafik[8] = '70 x 33 cm, 2001, Weichgrund&auml;tzung auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7';
a_texte_druckgrafik[9] = ' 33 x 70 cm, 2001, Kaltnadel auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7';
a_texte_druckgrafik[10] = '33 x 70 cm, 2001, &Auml;tzradierung auf Kupferplatte auf Zinkblech, aus der Graphikkassette HOCH REIN, Auflage 7/7';
a_texte_druckgrafik[11] = ' 65 x 90 cm, 2003, Kaltnadel auf Zinkblech, Auflage 4/4';


a_objekte = new Array();
a_objekte[0] = '<IMG SRC="img/alpkuh.jpg" WIDTH="611" HEIGHT="400" ALT="-">';
a_objekte[1] = '<IMG SRC="img/ich.jpg" WIDTH="406" HEIGHT="400" ALT="-">';
a_objekte[2] = '<IMG SRC="img/madonnen.jpg" WIDTH="650" HEIGHT="352" ALT="-">';
a_objekte[3] = '<IMG SRC="img/ausguss.jpg" WIDTH="273" HEIGHT="400" ALT="-">';
a_objekte[4] = '<IMG SRC="img/rom.jpg" WIDTH="650" HEIGHT="303" ALT="-">';
a_objekte[5] = '<IMG SRC="img/unbekannter_landser.jpg" WIDTH="557" HEIGHT="400" ALT="-">';

a_texte_objekte = new Array();
a_texte_objekte[0] = 'Akropolis, Scharnier, Lithostein, 27 x 19 x 10 cm';
a_texte_objekte[1] = 'ICH, 1996, Schlauch auf Silbertablett, Durchmesser 31 cm ';
a_texte_objekte[2] = 'Madonnen von Vendicari, 1996, Plastikmaterial, H&ouml;he 44 cm';
a_texte_objekte[3] = 'Ausgiesser, Plastik, Fundholz, 12,8 x 11,5 x 4,7 cm';

a_texte_objekte[4] = 'Rom, diverse Materialien, 85 x 32, 1,5 cm (variabel)';
a_texte_objekte[5] = 'mu&szlig; man noch alles nachsehen!';


a_gr_bild = new Array(a_zeichnung, a_malerei, a_druckgrafik, a_objekte);
a_info_text = new Array(a_texte_zeichnung, a_texte_malerei, a_texte_druckgrafik, a_texte_objekte);


// Funktionen
// ----------

function init(akt_thema){
thema = akt_thema;
replace_bild_in(thema);
document.getElementById("back").style.visibility = "hidden";
document.getElementById("next").style.visibility = "visible";
extern_open = false; 
v_bild = ''; 
l = 0;};


// Home-Page
// ---------

nr = -1;
a_bildfolge_home = new Array();
a_bildfolge_home[0] = '<IMG SRC="arbeiten/malerei/img/kein_moench_am_meer.jpg" WIDTH="649" HEIGHT="400" ALT="-">';
a_bildfolge_home[1] = '<IMG SRC="arbeiten/zeichnung/img/goya.jpg" WIDTH="583" HEIGHT="400" ALT="-">';
a_bildfolge_home[2] = '<IMG SRC="arbeiten/druckgrafik/img/_MG_0394.gif" WIDTH="286" HEIGHT="400" ALT="-">';
a_bildfolge_home[3] = '<IMG SRC="arbeiten/objekte/img/madonnen.jpg" WIDTH="650" HEIGHT="352" ALT="-">';
a_bildfolge_home[4] = '<IMG SRC="arbeiten/malerei/img/violett.jpg" WIDTH="301" HEIGHT="400" ALT="-">';

function change(){
	if(nr < (a_bildfolge_home.length-1))
		{nr = nr + 1;
		}else{
		nr = 0;};
document.getElementById('mitte').innerHTML = a_bildfolge_home[nr];
// setTimeout('change()', 3000);
};


// Thema/Bilder-Wechsel
// --------------------


function replace_bild_in(thema){
var akt_bild = document.getElementById('mitte');
akt_bild.innerHTML = a_gr_bild[thema][a_bild_nr[thema]];

document.getElementById('info_text').innerHTML = a_info_text[thema][a_bild_nr[thema]];

};

// Steuerung Bild-Austausch
// ------------------------

function next(){
	if(a_bild_nr[thema] < (a_gr_bild[thema].length -1) ){
		a_bild_nr[thema] = a_bild_nr[thema] + 1;
		replace_bild_in(thema);
		document.getElementById("back").style.visibility = "visible";};
	if(a_bild_nr[thema] >= (a_gr_bild[thema].length -1) ){
		document.getElementById("next").style.visibility = "hidden";};
};

function back(){
	if(a_bild_nr[thema] > 0){
		a_bild_nr[thema] = a_bild_nr[thema] - 1;
		replace_bild_in(thema);
		document.getElementById("next").style.visibility = "visible";};
	if(a_bild_nr[thema] <= 0){
		document.getElementById("back").style.visibility = "hidden";};
};

function show_xxl(){
			v_bild = document.getElementById('mitte').firstChild.src;
			a_url = v_bild.split('/');
			xxl_name = 'img_xxl/' + a_url[a_url.length-1];
			extern = window.open(xxl_name,'Bild', 'width=1020,height=720,left=50,top=50');
			if(extern_open&&(!extern.closed)){extern.focus()};; 
			extern_open = true; 
			void 0;};


// Maus ueber ....
// ---------------

function mouseOver_thema(x){
	if(!a_selected[x]) document.getElementById(a_idents[x]).style.color = c_hover;
	};

function mouseOut_thema(x){
	if(!a_selected[x]) document.getElementById(a_idents[x]).style.color = c_not_selected;
	};



// Scroll-Steuerung
// ----------------

function init_scroll(p_delta_shift, p_delta_time, p_text_height){

	ref = document.getElementById("scroll_text");
	the_top = 0;
	ref.style.top = the_top +"px";
	delta_shift = p_delta_shift;
	delta_time = p_delta_time;
	shift_up = 0;
	text_height = p_text_height;
	};

function settings_up(){
	if(shift_up > 0){
		document.getElementById('scroll_text_up').style.visibility = 'visible';
		document.getElementById('scroll_text_down').style.visibility = 'visible';
		the_top = the_top + delta_shift; 
		ref.style.top = the_top + 'px';
		shift_up = shift_up - delta_shift;
		}else{
		document.getElementById('scroll_text_up').style.visibility = 'hidden';}
		};
	
function settings_down(){
	if(shift_up < text_height){
		document.getElementById('scroll_text_down').style.visibility = 'visible';
		document.getElementById('scroll_text_up').style.visibility = 'visible';
		the_top = the_top - delta_shift; 
		ref.style.top = the_top + 'px';
		shift_up = shift_up + delta_shift;
		}else{;
		document.getElementById('scroll_text_down').style.visibility = 'hidden';}
		};			


function down(){timer_down = setInterval("settings_down()" , delta_time);};
				
function up(){timer_up = setInterval("settings_up()" , delta_time);};

function stop_down(){clearInterval(timer_down)};
					
function stop_up(){clearInterval(timer_up)};


