// function MM_preloadImages() { //v3.0
//   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
//     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
//     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
// }
//
// function MM_swapImgRestore() { //v3.0
//   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
// }
//
// function MM_findObj(n, d) { //v4.01
//   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
//     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
//   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
//   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
//   if(!x && d.getElementById) x=d.getElementById(n); return x;
// }
//
// function MM_swapImage() { //v3.0
//   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
//    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
// }
//
// // Random image picker
// // Pass a 1 to the function if the page is in a subdirectory
// var totalImages = 6; // one LESS than total images
// var randomImage = Math.round(Math.random()*totalImages)+1;
// function swapPicCMR(sub) {
// 	if(sub==1) {
// 	document.randimg.src = "../images/x_header" + randomImage + ".jpg"; }
// 	else { document.randimg.src = "images/x_header" + randomImage + ".jpg"; }
// }



			///////////////////////////
			// FUNCTIONS FOR THE POP BOXES
			//////////////////////////

	/////////////////////////
	//	GENERAL GET ELEMENT BY ID
	////////////////////////

var w = window;
var d = w.document;

function getE( id ) {
	if ( d.getElementById )
    return d.getElementById( id );
  else
    return d.id;
}

	///////////////////
	//	CONTENT FOR POPS
	///////////////////

var c = new Array();

c["Story"] = "<div id='innerFrame'><p>Robbie wondered if things would be different once he was adopted. He didn’t know anyone who was adopted. Would he look different? Would people be able to tell?</p><p>He decided he’d better get dressed for school. He didn’t feel like combing his fur. And, since he didn’t plan to eat, he saw no reason to brush his teeth.</p><p>Suddenly, Jamie yelled, “BUS! Come on, Robbie!” He hop-hop-hopped to the bus stop close behind Jamie and Tony. He heard Rita calling “good-bye” as the bus doors swung shut.</p><p id='close' onclick='dropContent();'><span>X</span> close</div>";

c["Children"] = "";

c["Adult"] = "";

	/////////////////////////
	//	POP CONTENT FUNCTION
	///////////////////////////

function popContent( name ) {

	e = getE( "pop" );

	e.innerHTML = c[name];

}

function  dropContent( name ) {

	e = getE( "pop" );

	e.innerHTML = "";

}


