	document.write("<style type='text/css'>#NavigationTable {visibility:hidden;}</style>");
	document.write("<style type='text/css'>#TopRow {visibility:hidden;}</style>");
	document.write("<style type='text/css'>#ContentHolder {visibility:hidden;}</style>");
	document.write("<style type='text/css'>#BottomRow {visibility:hidden;}</style>");
	document.write("<style type='text/css'>#OpaqueBackground {visibility:hidden;}</style>");
	
	function wakenwild() {
		window.open("http://www.doodah.ch/wakenwild/home.html", "home", "width=640,height=600,left=" + ((screen.width - 640) / 2) + ",top=" + ((screen.height - 600) / 2 - 40) + ",resizable=0,scrollbars=0,status=0").focus();
	}

	function initBackground() {
		imageId = 'NavigationTable';
		image = document.getElementById(imageId);
		setOpacity(image, 0);
		image.style.visibility = 'visible';
		fadeIn(imageId,0,100);
		
		imageId = 'TopRow';
		image = document.getElementById(imageId);
		setOpacity(image, 0);
		image.style.visibility = 'visible';
		fadeIn(imageId,0,100);
		
		imageId = 'ContentHolder';
		image = document.getElementById(imageId);
		setOpacity(image, 0);
		image.style.visibility = 'visible';
		fadeIn(imageId,0,100);
		
	
		imageId = 'BottomRow';
		image = document.getElementById(imageId);
		setOpacity(image, 0);
		image.style.visibility = 'visible';
		fadeIn(imageId,0,100);
			
		imageId = 'OpaqueBackground';
		image = document.getElementById(imageId);
		setOpacity(image, 0);
		image.style.visibility = 'visible';
		fadeIn(imageId,0,65);

		initScrollLayer();
		}
		
	function fadeIn(objId,opacity,endvalue) {
		  if (document.getElementById) {
		    obj = document.getElementById(objId);
		    if (opacity <= endvalue) {
		      setOpacity(obj, opacity);
		      opacity += 5;
		      window.setTimeout("fadeIn('"+objId+"',"+opacity+","+endvalue+")", 80);
		    }
		  }
		}
		
	function setOpacity(obj, opacity) {
		opacity = (opacity == 100)?99.999:opacity;
		
		// IE/Win
		obj.style.filter = "alpha(opacity:"+opacity+")";
		// Safari<1.2, Konqueror
		obj.style.KHTMLOpacity = opacity/100;
		// Older Mozilla and Firefox
		obj.style.MozOpacity = opacity/100;
		// Safari 1.2, newer Firefox and Mozilla, CSS3
		obj.style.opacity = opacity/100;
		}		

	function OpenFlyerWindow(popupURL, pic_width, pic_height)  
	{ 
		top.name = "main_window";
		var popup = window.open(popupURL,"flyerwindow",'fullscreen=0 ,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
		
		popup.window.resizeTo( (pic_width+180), (pic_height+190));
		popup.window.moveTo( ((screen.width-(pic_width+40))/2), ((screen.height-(pic_height+80))/2) );
		popup.focus();
	
		if( navigator.appName.substring(0,8) == "Netscape" ) 
			{ popup.location = popupURL; popup.opener = self; }
	}

	function OpenGalleryWindow(popupURL)  
	{ 
		top.name = "main_window";
		var popup = window.open(popupURL,"gallerywindow",'fullscreen=0 ,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
		
		popup.window.resizeTo( (600), (600));
		popup.window.moveTo( ((screen.width-(640))/2), ((screen.height-(680))/2) );
		popup.focus();
	
		if( navigator.appName.substring(0,8) == "Netscape" ) 
			{ popup.location = popupURL; popup.opener = self; }
	}
	window.onload = function() {initBackground();}

