initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:36:05 -06:00
commit e85327b977
1953 changed files with 176586 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
function Menu(toc_ul)
{
var toc_items = Array('toc_openingmsg','toc_whoweare','toc_resources',
'toc_prayerrequests','toc_missionandtravel','toc_photosandvideos');
for(var c=0; c < toc_items.length; c++)
{
document.getElementById(toc_items[c]).style.display = 'none';
}
document.getElementById('toc_' + toc_ul).style.display = 'block';
}
function PopUp(link,width,height)
{
if(width == null)
{
width = 600;
}
if(height == null)
{
height = 400;
}
window.open(link, '_blank', 'height='+height+', width='+width+', scrollbars=yes, resizeable=yes');
}
function AddPhotoElement()
{
var surround_div = document.getElementById('new_photos');
var newphoto = document.createElement('input');
var newbr = document.createElement('br');
newphoto.setAttribute('id','file');
newphoto.setAttribute('type','file');
newphoto.setAttribute('name','file[]');
newphoto.setAttribute('class','oneofmany');
newphoto.style.position = 'relative';
newphoto.style.left = 0;
surround_div.appendChild(newbr);
surround_div.appendChild(newphoto);
}

View File

@@ -0,0 +1,16 @@
// Javascript for photos albums and videos
function ChangePicture(path,photo_name)
{
var main_photo = document.getElementById('main_photo');
main_photo.src = path;
var photo_name_span = document.getElementById('photo_name');
photo_name_span.innerHTML = photo_name;
}
function LargerPhoto()
{
var source = document.getElementById('main_photo').src;
source = source.replace("small_","");
window.open(source, '_blank', 'height=600, width=800, scrollbars=yes, resizeable=yes')
}

130
production/site/javascript/ssm.js Executable file
View File

@@ -0,0 +1,130 @@
//Static Slide Menu 6.5 © MaXimuS 2000-2001, All Rights Reserved.
//Site: http://www.absolutegb.com/maximus
//E-mail: maximus@nsimail.com
//Script featured on Dynamic Drive (http://www.dynamicdrive.com)
NS6 = (document.getElementById&&!document.all);
IE = (document.all);
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4");
tempBar='';barBuilt=0;ssmItems=new Array();
moving=setTimeout('null',1);
function moveOut() {
if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}}
function slideMenu(num){
if (IE) {ssm.pixelLeft += num;}
if (NS||NS6) {ssm.left = parseInt(ssm.left)+num+'px';}
if (NS) {bssm.clip.right+=num;bssm2.clip.right+=num;}}
function makeStatic() {
if (NS||NS6) {winY = window.pageYOffset;}
if (IE) {winY = document.body.scrollTop;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6||NS)
{
bssm.top=parseInt(bssm.top)+smooth + 'px';
}
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}
function buildBar() {
if(barText.indexOf('<IMG')>-1) {tempBar=barText}
else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"<BR>"}}
document.write('<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center" class="ssm"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD>')}
function initSlide() {
if (NS6){ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style;
bssm.clip="rect(0px "+document.getElementById("thessm").offsetWidth+"px "+document.getElementById("thessm").offsetHeight+"px 0px)";ssm.visibility="visible";}
else if (IE) {ssm=document.all("thessm").style;bssm=document.all("basessm").style
bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";bssm.visibility = "visible";}
else if (NS) {bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}
function buildMenu()
{
if(IE||NS6)
{
document.write('<DIV ID="basessm" style="visibility:hidden; position: absolute; left: 17px;top: 42px;z-index : 20;width:'+(menuWidth+barWidth+10)+'px"><DIV ID="thessm" style="position: absolute; left: '+(-menuWidth)+'px;top: 0px;z-index : 20;" onMouseOver="moveOut()" onMouseOut="moveBack()">');
}
if(NS)
{
document.write('<LAYER name="basessm1" top="'+YOffset+'" LEFT='+XOffset+' visibility="show"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+(-menuWidth)+'" onmouseover="moveOut()" onmouseout="moveBack()">');
}
if(NS6)
{
document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>');
}
document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');
for(i=0;i<ssmItems.length;i++)
{
if(!ssmItems[i][3])
{
ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1;
}
else if(ssmItems[i][3]!=menuCols)
{
ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1);
if(ssmItems[i-1]&&ssmItems[i-1][4]!="no")
{
document.write('<TR>');
}
}
if(!ssmItems[i][1])
{
document.write('<td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+ssmItems[i][5]+'" COLSPAN="'+ssmItems[i][3]+'">&nbsp;<font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+ssmItems[i][0]+'</b></font></td>');
}
else
{
if(!ssmItems[i][2])
{
ssmItems[i][2]=linkTarget;
}
document.write('<TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+ssmItems[i][5]+'" COLSPAN="'+ssmItems[i][3]+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'">&nbsp;<A HREF="'+ssmItems[i][1]+'" target="'+ssmItems[i][2]+'" CLASS="ssmItems">'+ssmItems[i][0]+'</DIV></LAYER></ILAYER></TD>');
}
if(ssmItems[i][4]!="no" && barBuilt==0)
{
buildBar();
barBuilt=1;
}
if(ssmItems[i][4]!="no")
{
document.write('</TR>');
}
}
document.write('</table>');
if(NS6)
{
document.write('</TD></TR></TABLE>');
}
if(IE||NS6)
{
document.write('</DIV></DIV>');
}
if(NS)
{
document.write('</LAYER></ILAYER></LAYER>');
}
theleft=-menuWidth;lastY=0;setTimeout('initSlide();', 1);
}

View File

@@ -0,0 +1,13 @@
// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["/ dtn menu /"]; //create header
ssmItems[1]=["Menu", "menu.php", ""];
ssmItems[2]=["Who We Are", "whoweare.php",""];
ssmItems[3]=["Resources", "resources.php", ""];
ssmItems[4]=["Prayer Requests", "prayerrequests.php", ""];
ssmItems[5]=["Mission and Travel", "missionandtravel.php", ""];
ssmItems[6]=["Photos and Videos", "photosandvideos.php", ""];
ssmItems[7]=["/ links /", "", ""]; //create header
ssmItems[8]=["Action Min. Canada", "http://www.actioncanada.net", ""];
ssmItems[9]=["Action Min. Int'l", "http://www.actionintl.org", ""];
ssmItems[10]=["Action Min. UK", "http://www.actionuk.org", ""];

View File

@@ -0,0 +1,41 @@
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=40; // no quotes!!
XOffset=13;
staticYOffset=15; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#333333";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=130; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#666666";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="#558000";
linkOverBGColor="#c4d79d";
linkTarget="_top";
linkAlign="left";
barBGColor="#333333";
barFontFamily="Arial";
barFontSize="2";
barFontColor="white";
barVAlign="middle";
barWidth=40; // no quotes!!
barText="dtn MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
buildMenu();
//-->

View File

@@ -0,0 +1,41 @@
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=40; // no quotes!!
XOffset=13;
staticYOffset=15; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#333333";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=130; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#666666";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="#b36600";
linkOverBGColor="#fbe276";
linkTarget="_top";
linkAlign="left";
barBGColor="#333333";
barFontFamily="Arial";
barFontSize="2";
barFontColor="white";
barVAlign="middle";
barWidth=40; // no quotes!!
barText="dtn MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
buildMenu();
//-->

View File

@@ -0,0 +1,41 @@
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=40; // no quotes!!
XOffset=13;
staticYOffset=15; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#333333";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=130; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#666666";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="#68799d";
linkOverBGColor="#a6b0c4";
linkTarget="_top";
linkAlign="left";
barBGColor="#333333";
barFontFamily="Arial";
barFontSize="2";
barFontColor="white";
barVAlign="middle";
barWidth=40; // no quotes!!
barText="dtn MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
buildMenu();
//-->

View File

@@ -0,0 +1,41 @@
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=40; // no quotes!!
XOffset=13;
staticYOffset=15; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#333333";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=130; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#666666";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="#999999";
linkOverBGColor="#cccccc";
linkTarget="_top";
linkAlign="left";
barBGColor="#333333";
barFontFamily="Arial";
barFontSize="2";
barFontColor="white";
barVAlign="middle";
barWidth=40; // no quotes!!
barText="dtn MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
buildMenu();
//-->

View File

@@ -0,0 +1,41 @@
<!--
/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=40; // no quotes!!
XOffset=13;
staticYOffset=15; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#333333";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=130; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#666666";
hdrAlign="center";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="#999966";
linkOverBGColor="#cccc99";
linkTarget="_top";
linkAlign="left";
barBGColor="#333333";
barFontFamily="Arial";
barFontSize="2";
barFontColor="white";
barVAlign="middle";
barWidth=40; // no quotes!!
barText="dtn MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
buildMenu();
//-->

View File

@@ -0,0 +1,69 @@
//javascript for the three circle diagram on who we are page for DTN
var tc_1_btn = 0;
var tc_2_btn = 0;
var tc_3_btn = 0;
var tc_4_btn = 0;
var tc_5_btn = 0;
var tc_6_btn = 0;
var tc_7_btn = 0;
if( document.images )
{
tc_1_btn = PreLoad( '2' ); //pre-loading all the images, so they don't have to load
tc_2_btn = PreLoad( '3' ); //when the user actually places the mouse over them,
tc_3_btn = PreLoad( '4' ); //by loading them into a var for each one
tc_4_btn = PreLoad( '5' );
tc_5_btn = PreLoad( '6' );
tc_6_btn = PreLoad( '7' );
tc_7_btn = PreLoad( '8' );
}
function PreLoad( btn )
{
var img_path = "/site/graphics/whoweare/"; //file path to find button images
var temp = new Image();
//we can use .src to load each button img
temp.src = img_path + "three_circle_" + btn + ".jpg";
return temp;
}
function Swap( btn, mouse_on ) //reads img name from page and which version of the img
{
if( document.images )
{
var orig_src = "/site/graphics/whoweare/three_circle.jpg";
var img_name = "three_circle";
var temp = eval( btn + "_btn" );
if( mouse_on == 1 ) { document[ img_name ].src = temp.src; }
if( mouse_on == 0 ) { document[ img_name ].src = orig_src; }
}
}
function Advisors( which_advisor )
{
src_file = "/site/data/whoweare/" + which_advisor + ".htm";
window.open( src_file, "_blank", "width=500, height=100, scrollbars=no, resizeable=yes" );
}
function SoF( which_statement )
{
if( which_statement == 'long' )
{
window.open( "/site/data/whoweare/sof_long.htm", "_blank", "width=700, height=500, scrollbars=yes, resizeable=yes" );
}
if( which_statement == 'short' )
{
window.open( "/site/data/whoweare/sof_short.htm", "_blank", "width=700, height=500, scrollbars=yes, resizeable=yes" );
}
}
function BoD( which_director )
{
src_file = "/site/data/whoweare/" + which_director + ".htm";
window.open( src_file, "_blank", "width=550, height=180, scrollbars=no, resizeable=yes" );
}