<!-- *********************************************************
//     * You may use this code for free on any web page provided that 
//     * these comment lines and the following credit remain in the code.
//     * Floating Div from http://www.javascript-fx.com
//     ********************************************************  -->
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
	el.floatIt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 160);
	}
	return el;
}

// swap images
window.onerror = null;
var netscape = 0;
var goodIE = 0;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3)
{ netscape = 1; }
if (browserName == "Microsof" && browserVer >= 3.01)
{ goodIE = 1; }
// load arrays for images and display first one 
       function loadphotos() {
       	if (netscape || goodIE) {
                 photo = new Array(25);
                 for (m=0; m<=25; m++) {
                 photo[m] = new Image(); }
        photo[0].src = "images/photos/adv6.jpg";
		photo[1].src = "images/photos/adv5.jpg";
		photo[2].src = "images/photos/adv9.jpg";
		photo[3].src = "images/photos/adv7.jpg";
		photo[4].src = "images/photos/adv8.jpg";
		photo[5].src = "images/photos/adv10.jpg";
		photo[6].src = "images/photos/sitwait.jpg";
        photo[7].src = "images/photos/baby2.jpg";
        photo[8].src = "images/photos/baby.jpg";
        photo[9].src = "images/photos/slide2.jpg";
        photo[10].src = "images/photos/adv2.jpg";
		photo[11].src = "images/photos/adv4.jpg";
        photo[12].src = "images/photos/advMix.jpg";
        photo[13].src = "images/photos/slide1.jpg";
        photo[14].src = "images/photos/ballsEthan.jpg";
		photo[15].src = "images/photos/sea1.jpg";
        photo[16].src = "images/photos/sea3.jpg";
        photo[17].src = "images/photos/sea2.jpg";
        photo[18].src = "images/photos/sea4.jpg";
        photo[19].src = "images/photos/sea6.jpg";
		photo[20].src = "images/photos/sea5.jpg";
        photo[21].src = "images/photos/squid.jpg";
        photo[22].src = "images/photos/tramp.jpg";
        photo[23].src = "images/photos/smile.jpg";
		photo[24].src = "images/photos/lounge.jpg";
        exhib1 = document.picture;
        exhib1.nummer = 0;
	    exhib1.src = photo[exhib1.nummer].src;
                                }}
// move backwards in arraylist of images
      
                         function backscript() {
                if (netscape || goodIE) {
       new1 = exhib1.nummer;
       if (new1 < 24) { 
                                                new1 +=1
                         }else {
            new1 = 0
                         }
      
                         exhib1.nummer = new1;
                         exhib1.src = photo[exhib1.nummer].src;}}
// move forwards in arraylist of images
   
                         function weiterscript() {
                if (netscape || goodIE) {
             
       new1 = exhib1.nummer;
       if (new1 > 0) { 
                                                new1 -=1
                         }else {
            new1 = 24
                         }
      
                         exhib1.nummer = new1;
                         exhib1.src = photo[exhib1.nummer].src;}}
                      
