var oc=0;   // für fading

<!--
//Aufruf mit: onMouseOver="info(Titel, Text);" onMouseOut="clr();"
// fester Teil der Variablendeklaration

	var x = 0;
	var xx=100;
	var yy=0;
	var y = 0;
	var showit = 0;


//BROWSER CHECKEN
//----------------------------------------------------------------------------------------------------------

	var NS4	= (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
	var NS6	= (NS4 && document.getElementById) ? 1 : 0;
	if (NS6)
		NS4 = 0;

	var IE = (document.all) ? 1 : 0;
	if (!NS4 && !IE && !NS6) IE = 1;

	var IE4 = (document.all) ? 1 : 0;
	var IE5 = (IE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;


    if ( (NS4) || (IE) || (NS6) )
    	{
    	if (NS4) over = document.popDiv
    	if (IE)  over = popDiv.style
	    if (NS6) over = document.getElementById('popDiv')

    	document.onmousemove = mouseMove

     	if (NS4) document.captureEvents(Event.MOUSEMOVE)
	}

//----------------------------------------------------------------------------------------------------------

    function wtl(txt)
    {
    	show(over)

	    if (NS4)
    	{
   	    	var lll = document.popDiv.document
	    	lll.write(txt)
    		lll.close()

	   	}
    	else
	   	{
    		if (IE || NS6) document.getElementById('popDiv').innerHTML = txt
    	}
	}

//----------------------------------------------------------------------------------------------------------
    function show(obj)
    	{
    	if (NS4) obj.visibility = "show"
    	else if (NS6) obj.style.visibility = "visible"
    	else if (IE) obj.visibility = "visible"
    	}


// FUNKTION: MOUSEOUT
// clr -> hide
//----------------------------------------------------------------------------------------------------------

    function hide(obj)
    	{
    	if (NS4) obj.visibility = "hide"
    	else if (NS6) obj.style.visibility = "hidden"
    	else if (IE) obj.visibility = "hidden"
    	}

// EBENE BEWEGEN
//----------------------------------------------------------------------------------------------------------

    function moveTo(obj,lx,ly)
    	{
    	if (NS6)
    		{

    		obj.style.left	=	lx+"px";
    		obj.style.top	=	ly+"px";


    		return	false;
   		}
   	else 	{

   	 	obj.left = lx
   	 	obj.top = ly

    		}
    	}


// FUNKTION: MOUSEOUT
// clr -> hide
//----------------------------------------------------------------------------------------------------------
    function clr()
    	{
    	if ( (NS4) || (IE) || (NS6) )
    		{
		showit = 0;
		hide(over);

    		}
    	}


// EBENE ZUSAMMENSTELLEN
//----------------------------------------------------------------------------------------------------------

    function rinfo(title,Bild,Beschreibung)
    	{

txt =    "<table cellspacing=1 cellpadding=2 border=0 width=200 bgcolor=\"#FFFFFF\">"
        +"<tr><td bgcolor=\"#dddddd\">"
	+"<IMG src=\"" + Bild + "\"  >"
        +"</td></tr></table>";
      	wtl(txt);
    	display_it();

    	}

    function info(title,Bild,Beschreibung)
    	{
	var infotitle = title;
	var infoBild = Bild;
	var infoBeschreibung = Beschreibung;
 
	yy=10;
	xx=-250;

	if (yy==-111) xx=-335;
	if (yy==-244) xx=-335;


	rinfo(title,Bild,Beschreibung);
//	setTimeout("rinfo('" + infotitle + "','" + infoBild + "','" + infoBeschreibung +"')",2000);
    	}


// ANZEIGEN
//----------------------------------------------------------------------------------------------------------

    function display_it()
    	{
	if ( (NS4) || (IE) || (NS6) )
		{
    		if (showit == 0)
    			{
    			moveTo(over,x+xx,y+yy);
    			show(over);
    			showit = 1;
    			}
    		}
    	}


// REAKTION AUF MAUSZEIGERBEWEGUNG
//----------------------------------------------------------------------------------------------------------

    function mouseMove(e)
    	{
    	if (NS4 || NS6) 	{x=e.pageX; y=e.pageY;}
    	if (IE4) 		{x=event.x; y=event.y;}
    	if (IE5) 		{x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}

    	if (showit)    		{moveTo(over,x+xx,y+yy);}
	}

// Bilderscroll
//----------------------------------------------------------------------------------------------------------


var vBobjects1 = new Array();


function fetch_object1(idname, forcefetch)
{
	if (forcefetch ||( typeof(vBobjects1[idname]) == "undefined"))
	{
	
			
				vBobjects1[idname] = document.getElementById(idname);
			
			
			if (IE4) 
			{
				vBobjects1[idname] = document.all[idname];
			}
			
			if (NS4 || NS6)
			{
				vBobjects1[idname] = document.layers[idname];
			}
			
		
	}
	return vBobjects1[idname];
}



var pos = new Array();				//Sollte das Bild breiter als 200px sein, das muss der Wert hier und in der Klasses .viewer1 angepasst werden
var thisDirection = new Array();			//z.Z. ist der Wert in der Klasses .viewer1 fuer drei sichtbare Bilder, mit der Breite 200px, eingestellt.
var speed = 50;			//Scroll Geschwindigkeit
var Auto = new Array();;
var endlimit = -20;
var pos1 = 0;

function scroll(doDirection, idName)
{
    var temptt = idName;
    if (typeof(pos[temptt]) == "undefined") pos[temptt] = 0;

    pos1 = pos[temptt];
    var img = fetch_object1(idName);
 

    if (!doDirection)
    {
        doDirection = thisDirection[temptt];
    }
    else
    {
        thisDirection[temptt] = doDirection;
    }
    if (doDirection == "-")
    {
	    direction = -1;
    }
    else
    {
	    direction = 1;
    }
    if( doDirection=="Stop")
    {
	    direction = 0;
    }

	pos1 = pos1 + direction;
    if ( pos1 < 0)
	{
	    Auto[temptt] = true;	
	}
	else
	{
	    pos1 = 0;
	    Auto[temptt] = false;
	}
    if (pos1 > endlimit)
	{
	    Auto[temptt] = true;
	}
	else
	{
	    pos1 = endlimit;
	    Auto[temptt] = false;
	}
	if( doDirection=="Stop")
    {
	    Auto[temptt] = false;
    }
    pos[temptt] = pos1;
    if(Auto[temptt] == true)
	{
    	if (NS6)
        {
            img.style.left = pos1+"px";
            return	false;
        }
   	    else
        {
		    img.style.left = pos1;
    	}
	
	window.setTimeout("scroll('','" + temptt + "')",speed);	
	}	
}

// Willkommen
//----------------------------------------------------------------------------------------------------------

//function fadeIn() 
//{
//        image_a_1.style.filter="Alpha(opacity="+oc+", finishopacity=0, style=0)"
//        image_b_1.style.filter="Alpha(opacity="+oc+", finishopacity=0, style=3)"

//        if(oc!=200) setTimeout('oc++;fadeIn()',40);
//        else setTimeout('fadeOut()',5000);
//}

//function fadeOut()
//{
//        image_a_1.style.filter="Alpha(opacity="+oc+", finishopacity=0, style=0)"
//        image_b_1.style.filter="Alpha(opacity="+oc+", finishopacity=0, style=3)"
//        if(oc!=10) setTimeout('oc--;fadeOut()',40);
//        else setTimeout('fadeIn()',1000);
//}





var slideShowSpeed = 3000  // Dauer des Bildwechsels in Millisekunden (hier 3 Sekunden)

var crossFadeDuration = 10  // Dauer des Bildübergangs

var Pic = new Array() 

// Hier die Bildadressen rein, erweiterbar !

Pic[0] = '../images/Bilder/Vorschau/Boy1/Boy1_1.jpg'
Pic[1] = '../images/Bilder/Vorschau/Boy1/Boy1_2.jpg'
Pic[2] = '../images/Bilder/Vorschau/Boy1/Boy1_3.jpg'
Pic[3] = '../images/Bilder/Vorschau/Boy1/Boy1_9.jpg'
Pic[4] = '../images/Bilder/Vorschau/Boy1/Boy1_5.jpg'
Pic[5] = '../images/Bilder/Vorschau/Boy1/Boy1_6.jpg'
Pic[6] = '../images/Bilder/Vorschau/Boy1/Boy1_7.jpg'
Pic[7] = '../images/Bilder/Vorschau/Boy1/Boy1_8.jpg'
Pic[8] = '../images/Bilder/Vorschau/Boy1/Boy1_9.jpg'



// ab hier nichts mehr verändern !!


var jj = 0
var p = Pic.length
var preLoad = new Array()

for (ii = 0; ii < p; ii++){

preLoad[ii] = new Image()
preLoad[ii].src = Pic[ii]

}

function runSlideShow(){

if (document.all){
document.images.SlideShow.style.filter="Alpha(opacity=100, finishopacity=30, style=2)"
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()      
 }
document.images.SlideShow.src = preLoad[jj].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()


}

jj = jj + 1
if (jj > (p-1)) jj=0

   t = setTimeout('runSlideShow()', slideShowSpeed)

}





  //-->