// JS-NavSideEve.js
/* WRITE SIDE NAVBAR  */
function navSide(dirlevel) {

var dirLvl = dirlevel;
/* if (dirLvl == "sub")  commented out
var uLvl= "' ../";
else */
var uLvl = "";

var cOn = "<tr><td align='center' bgcolor='#004900' TITLE=";
var cMid = "height='18'><a class='nav' href='http://www.emailsanta.com/";
var cMid0 = "height='18'><a class='nav' href='http://www.ChristmasSantaClaus.com/"+ uLvl;
var cMid1 = "height='18'><a class='nav' href='";
var cMid2 = "height='18'><a class='privy' href='http://www.emailsanta.com/";
var cGap =  "<tr><td bgcolor='#8C0000' TITLE='Merry Christmas!' height='6'></td></tr>";
var cEnd =  "</a></td></tr>";

var nSide = "<p class='navlefthead'><font color='#FFD700'>COOL STUFF</font></p></td></tr>"+ 
cOn +" 'Read EmailSanta&#39;s Privacy Policy' "+ 
cMid2 +"privacy.htm'>Privacy Policy "+ cEnd +
cOn +" 'A letter to Santa Claus? Yes kids its true!  Jolly Saint Nicholas wants to hear about you!' "+
cMid +"email_santa.asp'>Write a letter to Santa"+ cEnd +
cOn +" 'Check whether you are on Santa&#39;s Naughty or Nice List!' "+ 
cMid0 +"naughty_nice.asp'>Check the &quot;Naughty or Nice&quot; List"+ cEnd +
cOn +" 'Listen to an elf read the Night Before Christmas!' "+ 
cMid0 +"The-Night-Before-Christmas.asp'>Elves read &quot;Night Before Christmas&quot;"+ cEnd +
cOn +" 'Read all about Santa Claus, Christmas and Life at the North Pole!' "+
cMid +"santa-claus-xmas-blog/'>Read Santa&#39;s Blog!"+ cEnd +
cOn +" 'Watch Christmas Webcams around the World!' "+ 
cMid0 +"Christmas_WebCams.asp'>Christmas Webcams"+ cEnd +
cOn +" 'Read emails to Santa as fast as kids send them!' "+ 
cMid0 +"read_Santa_Letters.asp'>Read live emails to Santa"+ cEnd +
cOn +" 'Those silly elves have been busy making more jokes!' "+ 
cMid0 +"jokes_christmas.htm'>Laugh at silly Elf Jokes"+ cEnd +
cOn +" 'See Christmas pictures in Santa&#39;s photo album!' "+ 
cMid0 +"santa_photos.asp'>Santa's Photo Albums"+ cEnd +
cOn +" 'Make it a colourful Christmas!' "+ 
cMid0 +"color_santa.html'>Colouring pages"+ cEnd +
cOn +" 'Find the words to reveal secret messages!' "+ 
cMid0 +"yulesearch.htm'>Play &quot;YuleSearch&quot;"+ cEnd +
cOn +" 'Kid&#39;s Help Hotline Phone Numbers' "+ 
cMid0 +"Childrens_hotlines.htm'>Kid's Help Lines"+ cEnd +
cGap +
cOn +" 'Special page to help Parents keep the magic alive!' "+ 
cMid +"parent-page.asp'>Parent&#39;s Christmas Magic Page"+ cEnd +
cGap +
cOn +" 'Help keep Santa flying by donating to emailSanta.com' "+ 
cMid0 +"thankyouEVE.asp'>Help Keep Santa Flying!"+ cEnd +
cGap;
return nSide;
}

/* DISABLE RM CLICK ON IMAGES ONLY*/
var clickmsg = "Sorry, the elves have disabled the 'right mouse click'\n"+
"due to abuse by some people of Santa's bandwidth.\n"+
"Please email the Head_Elf@EmailSanta.com\n"+
"if there is a picture that you would like\n"+
"instead of 'deep linking' to it.  Thank You!";

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmsg);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmsg);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmsg)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()

// TJ ensures file loaded
var TJ=1;
