var trio=0;
var afenster=false;

liste = new Array("..","../../movie/trailer_1/trailer.html#400#300","../../flash_beispiele/rocca/rocca.html#565#465","../../movie/jcb/jcb.html#400#300","http://www.ms-visucom.de/cgi-bin/msvc_menue.pl?&var_hauptpfad=../msvc_warenkorb/&var_html_folgemaske=msvcwarenkorb_shop_start.html&var_fa1_select=var_fa1_select||10|#835#550","../../flash_beispiele/garagenpark/garagenpark.html#800#550", "../../flash_beispiele/genius/genius.html#630#305", "../../movie/trailer/trailer.html#400#300","../../flash_beispiele/britto/britto.html#565#465","../../flash_beispiele/iweco/iweco.html#835#610");

var ie4l = (document.all) ? true : false;
var ns4l = (document.layers) ? true : false;
var ns6l = (document.getElementById && !document.all) ? true : false;

function show(zahl)
{

	
	if (zahl==1) {
		trio = trio + 1;
	} else {
		trio = trio - 1;
	}
	
	if (trio==-1) { trio = 2 };
	if (trio==3) { trio = 0 };
	zif1 = trio * 3;
	
document.bild1.src = "galerie_zwei_bilder/bild"+zif1+".jpg";
	zif1 = zif1 + 1;
document.bild2.src = "galerie_zwei_bilder/bild"+zif1+".jpg";
	zif1 = zif1 + 1;
document.bild3.src = "galerie_zwei_bilder/bild"+zif1+".jpg";
		
}

function thema_out(){

		txt= '';
		lay = "beispiel";
		hidelayer(lay);
		writetolayer(lay,txt);
		showlayer(lay);
		
		}
			
function thema_ein(zahl) {
			
			zahl1 = trio * 3;
			
			zahl2 = zahl1 + zahl;

		switch(zahl2)
				{
					case 1:
					
				
					txt = '<span  class="ueberschrift_blau">Trailer (IWECO Werbe GmbH)</span>';
					break;
					case 2:
					
					txt = '<span  class="ueberschrift_blau">Klickshow (Galerie Mensing)</span>';
					
					break;
					case 3:
					
					
					txt = '<span  class="ueberschrift_blau">Movie (JCB)</span>';
					break;
					case 4:
					
					txt = '<span  class="ueberschrift_blau">Datenbank (Rhodius)</span>';
					break;
					case 5:
					
					txt = '<span  class="ueberschrift_blau">Konfigurator (Garagenpark.de)</span>';
					break;
					case 6:
					
					txt = '<span  class="ueberschrift_blau">Interaktive Bedienungsanleitung (Genius)</span>';
					break;
					case 7:
					
					txt = '<span  class="ueberschrift_blau">Movie (BAG)</span>';
					break;
					case 8:
					
					txt ='<span  class="ueberschrift_blau">Flash-Movie (Galerie Mensing)</span>';
					break;
					case 9:
					
					txt = '<span  class="ueberschrift_blau">Flash-Movie (IWECO Werbe GmbH)</span>';
					
					break;
				
				}
				lay = "beispiel";
		 hidelayer(lay);
		writetolayer(lay,txt);
		showlayer(lay);
}

function hidelayer(lay) {
	
if (ie4l) {document.all[lay].style.visibility = "hidden";}
if (ns4l) {document.layers[lay].visibility = "hide";}
if (ns6l) {document.getElementById([lay]).style.display = "none";}
}

function showlayer(lay) {
if (ie4l) {document.all[lay].style.visibility = "visible";}
if (ns4l) {document.layers[lay].visibility = "show";}
if (ns6l) {document.getElementById([lay]).style.display = "block";}
}

function writetolayer(lay,txt) {
if (ie4l) {
document.all[lay].innerHTML = txt;
}
if (ns4l) {
document[lay].document.write(txt);
document[lay].document.close();
}
if (ns6l) {
over = document.getElementById([lay]);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
   }
}

function zeigen(bildnr) {
		
		zahl1 = trio * 3;
		zahl2 = zahl1 + bildnr;
    	seitenzahl = liste[zahl2];
		var Teil = seitenzahl.split("#");
 	 	URL = Teil[0];
 		breite = Teil[1];
 		hoehe = Teil[2];
 		
 		if (afenster.closed==true || afenster==false) {
		afenster=false;
		
		}else{
		afenster.close();
		}
		
		positionleft= screen.width/2-(breite/2);
		positiontop= screen.height/2-(hoehe/2);	
		
		Attribute='toolbar=no,location=0,directories=no,status=no,menubar=0,scrollbars=no,resizeable=no,width='+ breite +',height='+ hoehe +',left=' + positionleft + ',top=' + positiontop;
		afenster=window.open(URL,"aktiv",Attribute);

		afenster.focus();
 		
 		

	

}




