// jsFunctions.js ~ Common js functions - included, by date:
//   lastmoddate,            02/12/2004  
//   'if document.images',   02/12/2004
//   function on(pic),       02/12/2004
//   function off(pic),      02/12/2004
//   add eff-xxxon/off,      02/22/2004
//   add topon/off,          02/24/2004
//   add Bookmark Favorites  02/29/2004
//   add popup - popppexpl   06/16/2004
//   add Flash Link          01/03/2005
//   add scrollmsg           03/07/2005

// Assign the last modified date to the variable lastmoddate

var lastmoddate = document.lastModified;

// if statement tests the value of lastmoddate

if (lastmoddate == 0) {
  var pageData = "Last Modified: Unknown ~~ &copy; 2006 - JB Moss";
}
else {
  var pageData = "Last Modified:" + lastmoddate + " ~~ &copy; 2006 - JB Moss";
}

// 02/29/2004 Added - BookMark Updates Begin
/* Do Not Remove the Following Line
   This script is provided by Parallel Exchange
   For more scripts visit http://www.parallelex.com
*/

var url = "http://webdeveloper.earthweb.com/webjs/";
var title = "MiscelPage.com";
function makelink()
{
	if(document.all)
	window.external.AddFavorite(url,title)
}
// 02/29/2004 Added - BookMark Updates End

// Creation of the image objects

if (document.images)  {

Views1On=new Image(100, 21);
Views1On.src="/images/views_on.gif";
Views2On=new Image(100, 21);
Views2On.src="/images/views_on.gif";
Views3On=new Image(100, 21);
Views3On.src="/images/views_on.gif";
Views4On=new Image(100, 21);
Views4On.src="/images/views_on.gif";
Views5On=new Image(100, 21);
Views5On.src="/images/views_on.gif";
Views6On=new Image(100, 21);
Views6On.src="/images/views_on.gif";
aboutOn=new Image(456, 40);
aboutOn.src="/images/effoot_about.jpg";
contactOn=new Image(100, 24);
contactOn.src="/images/contacton.jpg";
effaboutOn=new Image(81, 40);
effaboutOn.src="/images/abouton.jpg";
efflegalOn=new Image(60, 40);
efflegalOn.src="/images/eff-legalon.jpg";
effmissionOn=new Image(73, 40);
effmissionOn.src="/images/eff-missionon.jpg";
effservicesOn=new Image(78, 40);
effservicesOn.src="/images/eff-serviceson.jpg";
effgardenOn=new Image(71, 40);
effgardenOn.src="/images/eff-gardenon.jpg";
faqOn=new Image(63, 24);
faqOn.src="/images/faqon.jpg";
guaranOn=new Image(94, 24);
guaranOn.src="/images/guaranon.jpg";
homeOn=new Image(59, 24);
homeOn.src="/images/homeon.jpg";
legalOn=new Image(456, 40);
legalOn.src="/images/effoot_legal.jpg";
missionOn=new Image(456, 40);
missionOn.src="/images/effoot_mission.jpg";
packageOn=new Image(86, 24);
packageOn.src="/images/packageon.jpg";
portfolOn=new Image(82, 24);
portfolOn.src="/images/portfolon.jpg";
quoteOn=new Image(100, 24);
quoteOn.src="/images/quoteon.jpg";
servicesOn=new Image(456, 40);
servicesOn.src="/images/effoot_services.jpg";
topOn=new Image(75, 14);
topOn.src="/images/topon.jpg";
top2On=new Image(75, 14);
top2On.src="/images/topon.jpg";
top3On=new Image(75, 14);
top3On.src="/images/topon.jpg";
top4On=new Image(75, 14);
top4On.src="/images/topon.jpg";
top5On=new Image(75, 14);
top5On.src="/images/topon.jpg";
top6On=new Image(75, 14);
top6On.src="/images/topon.jpg";

Views1Off=new Image(100, 21);
Views1Off.src="/images/views_off.gif";
Views2Off=new Image(100, 21);
Views2Off.src="/images/views_off.gif";
Views3Off=new Image(100, 21);
Views3Off.src="/images/views_off.gif";
Views4Off=new Image(100, 21);
Views4Off.src="/images/views_off.gif";
Views5Off=new Image(100, 21);
Views5Off.src="/images/views_off.gif";
Views6Off=new Image(100, 21);
Views6Off.src="/images/views_off.gif";
aboutOff=new Image(456, 40);
aboutOff.src="/images/effoot.jpg";
contactOff=new Image(100, 24);
contactOff.src="/images/contactoff.jpg";
effaboutOff=new Image(81, 40);
effaboutOff.src="/images/eff-aboutoff.jpg";
efflegalOff=new Image(60, 40);
efflegalOff.src="/images/eff-legaloff.jpg";
effmissionOff=new Image(73, 40);
effmissionOff.src="/images/eff-missionoff.jpg";
effservicesOff=new Image(78, 40);
effservicesOff.src="/images/eff-servicesoff.jpg";
effgardenOff=new Image(71, 40);
effgardenOff.src="/images/eff-gardenoff.jpg";
faqOff=new Image(63, 24);
faqOff.src="/images/faqoff.jpg";
guaranOff=new Image(94, 24);
guaranOff.src="/images/guaranoff.jpg";
homeOff=new Image(59, 24);
homeOff.src="/images/homeoff.jpg";
legalOff=new Image(456, 40);
legalOff.src="/images/effoot.jpg";
missionOff=new Image(456, 40);
missionOff.src="/images/effoot.jpg";
packageOff=new Image(86, 24);
packageOff.src="/images/packageoff.jpg";
portfolOff=new Image(82, 24);
portfolOff.src="/images/portfoloff.jpg";
quoteOff=new Image(100, 24);
quoteOff.src="/images/quoteoff.jpg";
servicesOff=new Image(456, 40);
servicesOff.src="/images/effoot.jpg";
topOff=new Image(75, 14);
topOff.src="/images/topoff.jpg";
top2Off=new Image(75, 14);
top2Off.src="/images/topoff.jpg";
top3Off=new Image(75, 14);
top3Off.src="/images/topoff.jpg";
top4Off=new Image(75, 14);
top4Off.src="/images/topoff.jpg";
top5Off=new Image(75, 14);
top5Off.src="/images/topoff.jpg";
top6Off=new Image(75, 14);
top6Off.src="/images/topoff.jpg";
}


// Function to turn 'on' rolled over graphics

function on(pic) {

    if (document.images)   {
        document.images[pic].src = eval(pic + "On.src");
    }
}

// Function to turn 'off' rolled over graphics

function off(pic) {

    if (document.images)   {
        document.images[pic].src = eval(pic + "Off.src");
    }
}

//---------------------------------------------------------------------------
function PopClick()
{
    open("/popppexpl.htm", "PopupWindow","top=0,width=600,height=400,scrollbars=yes ");
}
//---------------------------------------------------------------------


/***********************************************
* Flashing Link Script- © Dynamic Drive (www.dynamicdrive.com)
* ===========
* id="flashlinkID"  Enables flashing on the link. Replace "ID" with an integer starting from 0 and onwards, 
*                           depending on the number of flashing links you have. 
* flashtype=?        Sets the type of flash. Set to 0 for flashing on link text, 1 for flashing on link's background 
* flashcolor=?       Sets the color of the flash. Input color name or hex value. 
* Example:           <a href="http://www.theonlinewriter.com" id="flashlink0" flashtype=0 flashcolor="lightgrey">
* ===========
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 1000)
}

if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init

//---------------------------------------------------------------------

var msg = 'My first scolling message.  This is fun...    '
function scrollMsg(){
  document.scrollDemo.textScroll.value = msg
  msg = msg.substring(1,msg.length) + msg.substring(0,1)
  setTimeout("scrollMsg()", 200) 
  }

//---------------------------------------------------------------------
