function getRandom(max) {return (Math.floor(Math.random()*max))+1;}

//  Determine depth
     if (DepthOfPage == 0) { depth = ""; }
else if (DepthOfPage == 1) { depth = "../"; }
else if (DepthOfPage == 2) { depth = "../../"; }
else if (DepthOfPage == 3) { depth = "../../../"; }
else if (DepthOfPage == 4) { depth = "../../../../"; }
else if (DepthOfPage == 5) { depth = "../../../../../"; }
else if (DepthOfPage == 6) { depth = "../../../../../../"; }

BannerLine = new Array();
BannerLine[1]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=58046.10000069&type=4&subid=0\"><IMG  width=\"468\" height=\"60\" alt=\"Banner 10000069\" border=\"0\" src=\"http://www.ringingphone.com/banners/ls/468x60B11.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=58046.10000069&type=4&subid=0\">";
BannerLine[2]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=58046.10000069&type=4&subid=0\"><IMG  width=\"468\" height=\"60\" alt=\"Banner 10000069\" border=\"0\" src=\"http://www.ringingphone.com/banners/ls/468x60B11.jpg\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=58046.10000069&type=4&subid=0\">";
BannerLine[3]  = "<A HREF=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=32404.10000236&type=4&subid=0\"><img src=\"http://www.musicaffiliatenetwork.com/images/artist/artist1_468x60.gif\" WIDTH=468 HEIGHT=60  border=0></A><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=32404.10000236&type=4&subid=0\">";
BannerLine[4]  = "<A HREF=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=32404.10000264&type=4&subid=0\"><img src=\"http://www.musicaffiliatenetwork.com/images/artist/artist5_468x60.gif\" WIDTH=468 HEIGHT=60  border=0></A><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=32404.10000264&type=4&subid=0\">";
BannerLine[5]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=64951.10001177&subid=0&type=4\"><IMG border=\"0\"  width=\"120\" height=\"90\"   alt=\"vday_flwrs_120X90\" src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=64951.10001177&subid=0&type=4&gridnum=-1\"></a>";
BannerLine[6]  = "<A HREF=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=32404.10000282&type=4&subid=0\"><img src=\"http://www.musicaffiliatenetwork.com/images/artist/artist8_468x60.gif\" WIDTH=468 HEIGHT=60  border=0></A><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=32404.10000282&type=4&subid=0\">";
BannerLine[7]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=64951&subid=0\"><IMG alt=\"\" border=\"0\" src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=64951&gridnum=-1&catid=-1&subid=0\"></a>";
BannerLine[8]  = "<A HREF=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=32404.10000228&type=4&subid=0\"><img src=\"http://www.musicaffiliatenetwork.com/images/home/home_468x60.gif\" WIDTH=468 HEIGHT=60  border=0></A><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=32404.10000228&type=4&subid=0\">";
BannerLine[9]  = "<IMG SRC=\"http://service.bfast.com/bfast/serve?bfmid=35212156&siteid=41345471&bfpage=shoesbfree0302b\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" NOSAVE ><A HREF=\"http://service.bfast.com/bfast/click?bfmid=35212156&siteid=41345471&bfpage=shoesbfree0302b\" TARGET=\"_top\"><IMG SRC=\"http://www.smartbargains.com/img/affiliate/banners/030104/SP_EV_468x60_1.gif\" BORDER=\"0\" WIDTH=\"468\" HEIGHT=\"60\" ALT=\"Smartbargains\"></A>";
BannerLine[10]  ="<IMG SRC=\"http://service.bfast.com/bfast/serve?bfmid=35212156&siteid=41345471&bfpage=bse0302f\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" NOSAVE ><A HREF=\"http://service.bfast.com/bfast/click?bfmid=35212156&siteid=41345471&bfpage=bse0302f\" TARGET=\"_top\"><IMG SRC=\"http://www.smartbargains.com/img/affiliate/banners/030104/BSE_468x60_1.gif\" BORDER=\"0\" WIDTH=\"468\" HEIGHT=\"60\" ALT=\"Smartbargains\"></A>";
BannerLine[11]  = "<IMG SRC=\"http://service.bfast.com/bfast/serve?bfmid=2181&sourceid=41345471&categoryid=harrypotter6\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" NOSAVE ><A HREF=\"http://service.bfast.com/bfast/click?bfmid=2181&sourceid=41345471&categoryid=harrypotter6\" TARGET=\"_top\"><IMG SRC=\"http://a1204.g.akamai.net/f/1204/1181/24h/www.affiliate.net/affnet/images/HP6Presell_468x60.gif\" BORDER=\"0\" WIDTH=\"468\" HEIGHT=\"60\" ALT=\"Harry Potter and the Half-Blood Prince\"></A>";
BannerLine[12]  = "<IMG SRC=\"http://service.bfast.com/bfast/serve?bfmid=2181&sourceid=41345471&categoryid=bestsellers\" BORDER=\"0\" WIDTH=\"1\" HEIGHT=\"1\" NOSAVE ><A HREF=\"http://service.bfast.com/bfast/click?bfmid=2181&sourceid=41345471&categoryid=bestsellers\" TARGET=\"_top\"><IMG SRC=\"http://a1204.g.akamai.net/f/1204/1181/24h/www.affiliate.net/affnet/images/bestsellers_468x60.gif\" BORDER=\"0\" WIDTH=\"468\" HEIGHT=\"60\" ALT=\"Best Sellers\"></A>";
BannerLine[13]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=64951.3420693&type=2&subid=0\" ><IMG border=0 src=\"http://i.walmart.com/i/p/00/78/69/36/24/0078693624425_100X100.jpg\" ></a><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=64951.3420693&type=2&subid=0\">";
BannerLine[14]  = "pppppppppppppppppppppp";
BannerLine[15]  = "oooooooooooooooooooooooo";
BannerLine[16]  = "0000000000000000000";
BannerLine[17]  = "";
BannerLine[18]  = "";
BannerLine[19] = "";
BannerLine[20]  = "";
BannerLine[21]  = "";
BannerLine[22]  = "";
BannerLine[23]  = "";




GifartLine = new Array();
GifartLine[1]  = "<!-- gifart --><a href=\"http://www.gifart.com/cgi-bin/affiliate/clickthru.cgi/jbarta\"><img src=\"" + depth + "tack/adpics/gifart1.gif\" border=\"0\" WIDTH=\"120\" HEIGHT=\"240\" ALT=\"Click here for Clipart!\"></a>";
GifartLine[2]  = "<!-- gifart --><a href=\"http://www.gifart.com/cgi-bin/affiliate/clickthru.cgi/jbarta\"><img src=\"" + depth + "tack/adpics/gifart2.gif\" border=\"0\" WIDTH=\"120\" HEIGHT=\"240\" ALT=\"Click here for Clipart!\"></a>";
GifartLine[3]  = "<!-- gifart --><a href=\"http://www.gifart.com/cgi-bin/affiliate/clickthru.cgi/jbarta\"><img src=\"" + depth + "tack/adpics/gifart3.gif\" border=\"0\" WIDTH=\"120\" HEIGHT=\"240\" ALT=\"Click here for Clipart!\"></a>";
GifartLine[4]  = "<!-- gifart --><a href=\"http://www.gifart.com/cgi-bin/affiliate/clickthru.cgi/jbarta\"><img src=\"" + depth + "tack/adpics/gifart4.gif\"  border=\"0\" WIDTH=\"120\" HEIGHT=\"90\"  ALT=\"Click here for Clipart!\"></a>";






LongAds = new Array();
LongAds[1]  = "<IFRAME name=\"apciframe\" id=\"apciframe\" style=\"width:129;height:498;\" marginwidth=\"0\" marginheight=\"0\" src=\"http://affiliates.allposters.com/PosterStore/335214_PosterStore.htm\" scrolling=\"no\" frameborder=\"0\"><A class=\"APCAnchor\" HREF=\"http://affiliates.allposters.com/link/redirect.asp?AID=1801558040&PSTID=4&LTID=16\">Buy Posters at AllPosters.com </A></IFRAME>"
LongAds[2]  = "<a href=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=58046.10000001&type=4&subid=0\"><IMG  width=\"120\" height=\"600\" alt=\"Cool Ringtones\" border=\"0\" src=\"http://www.ringingphone.com/banners/ls/120x600B1.gif\"></a><IMG border=\"0\" width=\"1\" height=\"1\" src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=58046.10000001&type=4&subid=0\">"
LongAds[3]  = "<IFRAME name=\"apciframe\" id=\"apciframe\" style=\"width:129;height:498;\" marginwidth=\"0\" marginheight=\"0\" src=\"http://affiliates.allposters.com/PosterStore/335216_PosterStore.htm\" scrolling=\"no\" frameborder=\"0\"><A class=\"APCAnchor\" HREF=\"http://affiliates.allposters.com/link/redirect.asp?AID=1801558040&PSTID=4&LTID=16\">Buy Posters at AllPosters.com </A></IFRAME>"
LongAds[4]  = "<IFRAME name=\"apciframe\" id=\"apciframe\" style=\"width:129;height:498;\" marginwidth=\"0\" marginheight=\"0\" src=\"http://affiliates.allposters.com/PosterStore/335218_PosterStore.htm\" scrolling=\"no\" frameborder=\"0\"><A class=\"APCAnchor\" HREF=\"http://affiliates.allposters.com/link/redirect.asp?AID=1801558040&PSTID=4&LTID=16\">Buy Posters at AllPosters.com </A></IFRAME>"
LongAds[5]  = "<A HREF=\"http://click.linksynergy.com/fs-bin/click?id=DtEsQ4Mqzvw&offerid=32404.10000275&type=4&subid=0\"><img src=\"http://www.musicaffiliatenetwork.com/images/artist/artist6_120x600.gif\" WIDTH=120 HEIGHT=600  border=0></A><IMG border=0 width=1 height=1 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&bids=32404.10000275&type=4&subid=0\">"
LongAds[6]  = "<IFRAME name=\"apciframe\" id=\"apciframe\" style=\"width:125;height:195;\" marginwidth=\"0\" marginheight=\"0\" src=\"http://affiliates.allposters.com/PosterStore/335222_PosterStore.asp\" scrolling=\"no\" frameborder=\"0\"><A class=\"APCAnchor\" HREF=\"http://affiliates.allposters.com/link/redirect.asp?AID=1801558040&PSTID=5&LTID=16\">Buy Posters at AllPosters.com </A></IFRAME>"
LongAds[7]  = "<IFRAME name=\"apciframe\" id=\"apciframe\" style=\"width:125;height:249;\" marginwidth=\"0\" marginheight=\"0\" src=\"http://affiliates.allposters.com/PosterStore/335224_PosterStore.asp\" scrolling=\"no\" frameborder=\"0\"><A class=\"APCAnchor\" HREF=\"http://affiliates.allposters.com/link/redirect.asp?AID=1801558040&PSTID=5&LTID=16\">Buy Posters at AllPosters.com </A></IFRAME>"
LongAds[8]  = "<a href=\"http://click.linksynergy.com/fs-bin/stat?id=DtEsQ4Mqzvw&subid=0\"><IMG alt=icon border=0  width=392 height=72 src=\"http://ad.linksynergy.com/fs-bin/show?id=DtEsQ4Mqzvw&gridnum=2&subid=0\"></a>"




function grabAd(adtype)
{
   if (adtype == "randad")
   {
      adline = BannerLine[getRandom(13)];
      document.write("<P ALIGN=\"center\">" + adline + "</P>");
   }

   else if (adtype == "inlineb")
   {
      adline = BannerLine[getRandom(23)];
      document.write("<P ALIGN=\"center\"><FONT SIZE=\"1\" FACE=\"verdana,arial,helvetica\" COLOR=\"#BBBBBB\">Advertisement</FONT><BR>" + adline + "</P>");
   }

   else if (adtype == "gifart")
   {
      adline = GifartLine[getRandom(8)];
      document.write(adline);
   }
   else if (adtype == "longad")
   {
      adline = LongAds[getRandom(8)];
      document.write("<P ALIGN=\"center\">" + adline + "</P>");
   }
}





/*
Highlight menu effect script: By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

function borderize(what,color){
what.style.borderColor=color
}

function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"black")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"black")
}
}
}

function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"white")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"white")
}
}
}


/*
Highlight menu effect script: By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

function borderize(what,color){
what.style.borderColor=color
}

function borderize_on(e){
if (document.all)
source3=event.srcElement
else if (document.getElementById)
source3=e.target
if (source3.className=="menulines"){
borderize(source3,"black")
}
else{
while(source3.tagName!="TABLE"){
source3=document.getElementById? source3.parentNode : source3.parentElement
if (source3.className=="menulines")
borderize(source3,"black")
}
}
}

function borderize_off(e){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
borderize(source4,"white")
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
borderize(source4,"white")
}
}
}