// File nav.js

oWin = new Object();
function newWin (sURL,sName,sFeatures) {
	if (!oWin.closed) oWin.close;
	oWin = window.open(sURL,sName,sFeatures);
	oWin.focus();
	}

var surl = document.location.search;
var pgCount = 44;

function storelink(sURL){

if(surl.indexOf('printpage=on') == -1){

document.location=(sURL);

}
else{

window.opener.location=(sURL);

}


}


if(surl.indexOf('printpage=on') == -1){

   //start writing the tabs table
   document.write("<style type=text/css><!--.verdana1 {font-size: 14; color: \"white\"; font-family:\"verdana\";text-decoration:none;}.verdana3 {font-size: 14; color: \"RED\"; font-family:\"verdana\";text-decoration:none;}.verdana2 {font-size: 13; color: \"#27487D\"; font-family:\"verdana\";text-decoration:none;}.verdana4 {font-size: 13; color: \"RED\"; font-family:\"verdana\";text-decoration:none;}--></STYLE><table width=100% height=100% cellpadding=0 cellspacing=0 border=0 BGCOLOR=\"#333333\"><tr><td><table width=720 border=0 cellpadding=0 cellspacing=0 align=left BGCOLOR=\"#333333\"><tr><td colspan=2 align=right><a class=verdana1 onmouseover=\"this.className='verdana3'; window.status=''; return true\" onmouseout=\"this.className='verdana1'\" href=\"http://64.128.81.160/\">Back To JoyceMeyer.org</a></td></tr><tr><td width=30 valign=top align=right><table width=30 cellpadding=0 cellspacing=0 border=0><tr><td background=images/tab2");



var p = 0;

   for (i = 1; i < pgCount; i++)
   {


	p = i;

	if(p == 1){

	p = ("C");

	}
	else if(p == 2){

	p = ("L");

	}
	else{

	p = (p - 2);

	}


      if(page == i){

         document.write("_on");

      }
      //create the tab and write the number

      document.write(".jpg width=30 height=24 align=center><a class=verdana2 onmouseover=\"this.className='verdana4'; window.status=''; return true\" onmouseout=\"this.className='verdana2'\" href=\"" + date + "pg" + i + ".html\">" + p + "</a></td></tr><tr><td background=images/tab3");
   }
   //write the last tab in the table


   document.write(".jpg width=30 height=24 align=center><a class=verdana2 onmouseover=\"this.className='verdana4'; window.status=''; return true\" onmouseout=\"this.className='verdana2'\" href=\"" + date + "pg" + i + ".html\">" + (p+1) + "</a></td></tr><tr>");

   //write the end of the table

   document.write("</table></td><td width=690 align=\"left\" bgcolor=#FFFFFF valign=top><table width=\"600\" height=\"835\" cellpadding=\"0\" cellspacing=\"0\" align=left><tr><td width=\"600\" height=\"835\" align=\"left\" valign=\"top\"><table cellpadding=0 cellspacing=0 border=0><tr><td width=3></td><td>");

}
