var current = new Array();
	current["table"] = 1;
	current["tableO"] = 1;
	current["tableP"] = 'sandandwater';
	current["climber"] = 1;
	current["climberO"] = 1;
	current["climberP"] = 'clubhouseclimber';
	current["swingset"] = 1;
	current["swingsetO"] = 1;
	current["swingsetP"] = 'timberlast';
	current["playhouse"] = 1;
	current["playhouseO"] = 1;
	current["playhouseP"] = 'welcomehome';

var chgspeed=10;

		function dune(){
     // create object
	     imageObj = new Image();
     // set image list
	     images = new Array();
	     images[0]="/naturallyplayful/images/adobe_playhouse.jpg"
	     images[1]="/naturallyplayful/images/adventure_lodge.jpg"
	     images[2]="/naturallyplayful/images/front_porch_playhouse.jpg"
	     images[3]="/naturallyplayful/images/kangaroo_climber.jpg"
	     images[4]="/naturallyplayful/images/playhouse_climber.jpg"
	     images[5]="/naturallyplayful/images/sand_table.jpg"
	     images[6]="/naturallyplayful/images/storybook_cottage.jpg"
	     images[7]="/naturallyplayful/images/up_and_away_table.jpg"
	     images[8]="/naturallyplayful/images/woodland_climber.jpg"
     // start preloading
	     for(i=0; i<=8; i++) 
		     {
		          imageObj.src=images[i];
		     }
		}

	function mousedelay(obj, divname, pictname) {
		obj.isOn = 1;
		window.setTimeout(
			function(){
				if (obj.isOn == 1) swap(divname, pictname);
				},150);
		}

	function mousegone(obj) {
		obj.isOn = 0;
		}


		function swap(targety, picname)
			{
				tagP = targety + 'P';
				if(current[tagP] == picname){return;}
				frontpic = targety + '_pic';
				mangycur = document.getElementById(frontpic);
				newpic = '/naturallyplayful/images/' + picname + '.jpg';
				if(current[targety]== -1)
					{mangycur.src = newpic;}

				else if(current[targety]==1){
					backpic = targety + '_back';
					backmangycur=document.getElementById(backpic);
					backmangycur.src = newpic;
					}
					
				bigO = targety+'O';
				opset = (current[bigO] - (chgspeed/100*current[targety]));
				current[bigO] =  opset;
				mangycur.style.opacity = opset;
				mangycur.style.filter = 'alpha(opacity='+(opset*100)+')';
				if(opset < .01){
					mangycur.style.opacity = 0;
					mangycur.style.filter = 'alpha(opacity=0)';
					current[targety] = -1;
					current[tagP] = picname;
					return;}
				if(opset > .99){current[targety] = 1; current[tagP] = picname; return;}
				passit1 = targety;
				passit2 = picname;
			   t=setTimeout("swap(passit1, passit2)",20);
			}
		
			
		
		function passedok(first, second){
			alert("passed OK, new target is "+first+", second is "+second);
			}

		function createPrivacyWindow()
		{
			var xWin = window.open('http://www.step2.com/privacy/index.cfm','window2','height=450,width=700,scrollbars,resizable')
		}
		
