// JNavR.js
/* WRITE SIDE NAVBAR  */
function navSide(dirlevel) {

var dirLvl = dirlevel;
var uLvl = "";

var cOn = "<tr><td align='center' bgcolor='#008000' TITLE=";
var cMid = "height='18'><a class='nav' href='http://www.christmassantaclaus.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.christmassantaclaus.com/";
var cGap =  "<tr><td bgcolor='#FF0000' TITLE='Merry Christmas!' height='6'></td></tr>";
var cEnd =  "</a></td></tr>";

var nSide = "<p class='navlefthead'><font color='#FFFF00'>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 +" 'Read all about Santa Claus, Christmas and Life at the North Pole!' "+
cMid +"santa-claus-xmas-blog/'>Read Santa&#39;s Blog!"+ 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 +" 'See how much time is left until Christmas!' "+ 
cMid0 +"clock.asp'>Count down to Christmas"+ cEnd +
cOn +" 'Get a personally signed photo from Santa Claus!' "+ 
cMid0 +"santa_autograph.asp'>Get Santa's Autograph"+ cEnd +
cOn +" 'Email your pet&#39;s letter to Rudolph!  (After all, pets are family too!)' "+ 
cMid +"reindeer.asp'>Send your pet's email to Rudolph"+ cEnd +
cOn +" 'Play Christmas Trivia Games for all Ages!' "+ 
cMid +"Christmas_Trivia.htm'>Play Rudolph's Christmas Trivia"+ cEnd +
cOn +" 'Vote for your favourite reindeer! (&amp; maybe they&#39;ll guide Santa&#39;s sleigh this year!)' "+ 
cMid0 +"north_poll.asp'>Vote for who'll guide Santa's sleigh"+ cEnd +
cOn +" 'Watch Christmas Webcams around the World!' "+ 
cMid0 +"Christmas_WebCams.asp'>Watch 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 +" 'Click on a new Internet treat everyday!' "+ 
cMid0 +"advent.asp'>Try out Santa's Advent Calendar"+ cEnd +
cOn +" 'Those silly elves have been busy making more jokes!' "+ 
cMid0 +"jokes_christmas.htm'>Laugh at silly Elf Jokes"+ cEnd +
cOn +" 'Watch video from the world famous Rudolph Nose Cam!' "+ 
cMid0 +"rudolph-video.asp'>Watch the 'Rudolph cam'"+ cEnd +
cOn +" 'Santa&#39;s favourite emails in your inbox daily!' "+ 
cMid0 +"SantasTop10.asp'>Sign up for 'Santas Top 10'"+ cEnd +
cOn +" 'See Christmas pictures in Santa&#39;s photo album!' "+ 
cMid0 +"santa_photos.asp'>See Santa's Magic Photo Albums"+ cEnd +
cOn +" 'Make it a colourful Christmas!' "+ 
cMid0 +"color_santa.html'>Colour these Christmas pages"+ cEnd +
cOn +" 'Find the words to reveal secret messages!' "+ 
cMid0 +"yulesearch.htm'>Play &quot;YuleSearch&quot;"+ cEnd +
cOn +" 'Kewl Christmas and Santa stuff for your computer!' "+ 
cMid0 +"Christmas_software.htm'>Download Christmas Software"+ cEnd +
cOn +" 'Kid&#39;s Help Hotline Phone Numbers' "+ 
cMid0 +"Childrens_hotlines.htm'>Kid's Help Lines"+ cEnd +
cOn +" 'Important note to Parents about safety and privacy' "+ 
cMid +"privacy.htm'>For Parents"+ cEnd +
cGap + 
cOn +" 'Search the EmailSanta Website'><form method='get' action='http://search.atomz.com/search/'>" +
"<p class='navin'>Search EmailSanta<br><input type='text' size='15' name='sp-q'><br>" +
"<input type=submit value='Search!'><input type=hidden name='sp-a' value='sp100241eb'>" +
"<input type=hidden name='sp-f' value='ISO-8859-1'></p></form>" + cEnd +
cOn +" 'Everything there is to see and do at EmailSanta!' "+ 
cMid +"contents.html'>Visit EmailSanta's Site Map"+ cEnd +
cOn +" 'Go To EmailSanta&#39;s Ho Ho Home Page' "+ 
cMid +"'>Go to EmailSanta's Home Page"+ cEnd +
cGap;
return nSide;
}



/* DISABLE RIGHT MOUSE CLICK */
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;