// JavaScript Document

/* Expand Menu */
var subs_array = new Array("sub2","sub3","sub5","sub6","sub7","sub8","sub9","sub10","sub11","sub12","sub13","sub14","sub15","sub16","sub17","sub18","sub19","sub20","sub3_1","sub3_2","sub3_3", "sub3_4");

// Put the id's of your hidden divs in this array
function displaySubs(the_sub){
	
	
	
	if (document.getElementById(the_sub).style.display==""){
	document.getElementById(the_sub).style.display = "none";return}
for (i=0;i<subs_array.length;i++){
	
	var my_sub = document.getElementById(subs_array[i]);
	my_sub.style.display = "none";
		
	}document.getElementById(the_sub).style.display = "";
}


dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
monName = new Array ("Jan.", "Feb.", "Mar.", "Apr.", "May", "June", "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec.");
now = new Date;
thisYr = now.getYear();
if (thisYr < 1900) {
thisYr = thisYr + 1900;
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin');
}

function messageWindow(title, msg)
{
  var width="350", height="270";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title+'</title></head>';
  var body = '<center>'+msg+'</p><br><form><input type="button" value="   Close   " onClick="self.close()"></form></center>';
  msgWindow.document.write(head + body);
}

function MyWin() {
						messageWindow('Out Of Print', 'This "top 10" national bestselling book is currently out of print. No date for a new edition publishing date has been determined. Please contact your local public library to (hopefully) obtain a copy. <br><br>If you are on our subscriber database, you will receive advance notice when a new 4th edition will be released. Thanks for your patience.')
}
