// JNavSide.js
/* WRITE SIDE NAVBAR  */

google_ad_client = "pub-8422358169526200";
google_alternate_ad_url = "http://www.emailsanta.com/images/stamp_Santa.jpg";
google_ad_width = 120;
google_ad_height = 90;
google_ad_format = "120x90_0ads_al_s";
//2007-10-04: sidebar
google_ad_channel = "5361621974";
google_color_border = "FFFFFF";
google_color_bg = "004900";
google_color_link = "FFFFFF";
google_color_text = "000000";
google_color_url = "004900";


function navSide(dirlevel) {

var dirLvl = dirlevel;
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.emailsanta.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 +" '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 +" 'Follow the tweets of everyone at the North Pole!' "+ 
cMid0 +"Santa Claus Tweets.asp'>Santa Tweets"+ cEnd +
cOn +" 'Find out where Santa is &amp; what he is doing right now!' "+ 
cMid0 +"Santa Claus Tracker.asp'>Track Santa Claus"+ cEnd +
cOn +" 'Get a personally signed photo from Santa Claus!' "+ 
cMid0 +"santa_autograph.asp'>Get Santa's Autograph"+ 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 +" '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 +" 'Christmas songs, carols, hymns, downloads and fun facts!' "+ 
cMid0 +"Christmas Songs/index.asp'>Listen to Christmas Music"+ 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://www.emailsanta.com/search.asp' id='cse-search-box'>" +
"  <div><p class='navin'>Search EmailSanta<br>" +
"    <input type='hidden' name='cx' value='partner-pub-8422358169526200:to0p1b-pb5y' />" +
"    <input type='hidden' name='cof' value='FORID:10' />" +
"    <input type='hidden' name='ie' value='ISO-8859-1' />" +
"    <input type='text' name='q' size='15' /><br>" +
"    <input type='submit' name='sa' value='Search' />" +
"  </p></div>" +
"</form>" +
"<script type='text/javascript' src='http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en'></script>" +
cEnd +
cOn +" 'Everything there is to see and do at EmailSanta!' "+ 
cMid +"contents.asp'>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;
