<!--Date Function//-->

function initArray() {

 for(i=0;i<initArray.arguments.length; i++)

  this[i] = initArray.arguments[i];

}

var isnMonths=new initArray("January","February","March","April","May","June","July","August","September","October","November","December");

var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");

today=new Date();

hrs=today.getHours();

min=today.getMinutes();

sec=today.getSeconds();

clckh=""+((hrs>12)?hrs-12:hrs); 

clckm=((min<10)?"0":"")+min;

clcks=((sec<10)?"0":"")+sec;

clck=(hrs>=12)?"p.m.":"a.m.";



var stnr="";

var ns="0123456789";

var a="";

//-- end date function-->



<!--navigation hover effect//-->

function navEffect()

   {
     pic1on= new Image(101,27);
     pic1on.src="http://www.n-lightning.com/images/communityHover.gif";  
     pic2on= new Image(100,27); 
     pic2on.src="http://www.n-lightning.com/images/downloadsHover.gif"; 
     pic3on= new Image(100,27); 
     pic3on.src="http://www.n-lightning.com/images/gamesHover.gif"; 
     pic4on= new Image(101,27); 
     pic4on.src="http://www.n-lightning.com/images/onlinestoreHover.gif"; 
     pic5on= new Image(100,27); 
     pic5on.src="http://www.n-lightning.com/images/supportHover.gif"; 
     pic6on= new Image(120,40); 
     pic6on.src="http://www.n-lightning.com/images/catechumenHover.gif"; 
     pic7on= new Image(159,35); 
     pic7on.src="http://www.n-lightning.com/images/ominousHover.gif"; 
     pic8on= new Image(100,27); 
     pic8on.src="http://www.n-lightning.com/images/homeHover.gif"; 
     pic9on= new Image(83,36); 
     pic9on.src="http://www.n-lightning.com/images/alternate/enterHover.gif"; 
     pic10on= new Image(83,36); 
     pic10on.src="http://www.n-lightning.com/images/alternate/enterHover.gif"; 
     pic11on= new Image(151,57); 
     pic11on.src="http://www.n-lightning.com/images/alternate/catechumenGameHover.gif"; 
     pic12on= new Image(200,50); 
     pic12on.src="http://www.n-lightning.com/images/alternate/ominousGameHover.gif"; 
     pic13on= new Image(150,200); 
     pic13on.src="http://www.n-lightning.com/images/alternate/ninjaFlipHover.gif"; 
     pic14on= new Image(175,175); 
     pic14on.src="http://www.n-lightning.com/images/alternate/grendalswipeHover.gif"; 


     
     pic1off= new Image(101,27);
     pic1off.src="http://www.n-lightning.com/images/communityNorm.gif";
     pic2off= new Image(100,27);
     pic2off.src="http://www.n-lightning.com/images/downloadsNorm.gif";    
     pic3off= new Image(100,27);
     pic3off.src="http://www.n-lightning.com/images/gamesNorm.gif";    
     pic4off= new Image(101,27);
     pic4off.src="http://www.n-lightning.com/images/onlinestoreNorm.gif";    
     pic5off= new Image(100,27);
     pic5off.src="http://www.n-lightning.com/images/supportNorm.gif";    
     pic6off= new Image(120,40);
     pic6off.src="http://www.n-lightning.com/images/catechumenNorm.gif";    
     pic7off= new Image(159,35);
     pic7off.src="http://www.n-lightning.com/images/ominousNorm.gif";    
     pic8off= new Image(100,27);
     pic8off.src="http://www.n-lightning.com/images/homeNorm.gif";    
     pic9off= new Image(83,36);
     pic9off.src="http://www.n-lightning.com/images/alternate/enterNorm.gif";    
     pic10off= new Image(83,36);
     pic10off.src="http://www.n-lightning.com/images/alternate/enterNorm.gif";    
     pic11off= new Image(151,57); 
     pic11off.src="http://www.n-lightning.com/images/alternate/catechumenTitle.gif"; 
     pic12off= new Image(200,50); 
     pic12off.src="http://www.n-lightning.com/images/alternate/ominousTitle.gif"; 
     pic13off= new Image(150,200); 
     pic13off.src="http://www.n-lightning.com/images/alternate/ninjaFlipNorm.gif"; 
     pic14off= new Image(175,175); 
     pic14off.src="http://www.n-lightning.com/images/alternate/grendalswipeNorm.gif"; 


   }

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }


//-- end navigation hover effect-->



<!--spotlight of the month new window function//-->

function my_spot()
{
window.open('spotlight.htm','mywindow','width=600,height=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}

//-- end new window-->




<!--privacy policy new window function//-->

function my_win()
{
window.open('privacy.htm','mywindow','width=441,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no');
}

//-- end new window-->



<!--ominous screenshots nav window//-->

function ohss_win()
{
window.open('ohScreenShots/ohss.htm','mywindow','width=400,height=280,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}

//-- end new window-->



<!--ominous trailer window//-->

function ohtrailer_win()
{
window.open('ohvideo.htm','mywindow','width=400,height=370,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}

//-- end new window-->



<!--catechumen trailer window//-->

function cattrailer_win()
{
window.open('catvideo.htm','mywindow','width=400,height=370,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}

//-- end new window-->



<!--catechumen screenshots nav window//-->

function catss_win()
{
window.open('catScreenShots/catss.htm','mywindow','width=400,height=280,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}

//-- end new window-->



<!--//bookmark//-->

var bookmarkurl="http://www.n-lightning.com"
var bookmarktitle="N'Lightning Software Christian Gaming Site"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

//-- end bookmark-->



<!--//invite a friend

//Tell-a-friend script
//Carl Dimmer

var initialsubj="Check out this site I found"
var initialmsg="Hi:\n You may want to check out this site: http://www.n-lightning.com"
var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {

//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
   }
}

//-- end invite a friend-->



<!--//send friend page function Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html) //-->

function mailsome1(){
who=prompt("Enter recipient's email address: ","enter your friends email address here");
what=prompt("Enter the subject: ","Thought you might want to see this page I found, http://www.n-lightning.com");
if (confirm("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){
parent.location.href='mailto:'+who+'?subject='+what+'';
   }
}

//--end send friend page-->
