
//VARIABLES ARE ESTABLISHED IN GLOBALVARS.JS


if (
currurl.indexOf("aspe") != -1 || currurl.indexOf("rock") != -1 || myPage.toLowerCase().indexOf("aspenhill") != -1 || myPage.toLowerCase().indexOf("rockville") != -1
)
{
leadercode="211290";
bigboxcode="204226";
rrskycode="204200";
storyboxcode="211292";
storyleftcode="211291";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211292";
}
}



if (
(currurl.indexOf("mont") != -1 || currurl.indexOf("gait") != -1 || currurl.indexOf("montnew") != -1 || myPage.toLowerCase().indexOf("montgomeryvillage") != -1 || myPage.toLowerCase().indexOf("gaithersburg") != -1) && myPage.toLowerCase() != "montgomeryhome"
)
{
leadercode="211279";
bigboxcode="204217";
rrskycode="204200";
storyboxcode="211278";
storyleftcode="211280";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211278";
}
}



if (
currurl.indexOf("bowi") != -1 || myPage.toLowerCase().indexOf("bowie") != -1
)
{
leadercode="211282";
bigboxcode="204219";
rrskycode="204200";
storyleftcode="211283";
storyboxcode="211281";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211281";
}
}

if (
currurl.indexOf("beth") != -1 || currurl.indexOf("chev") != -1 || currurl.indexOf("kens") != -1 || myPage.toLowerCase().indexOf("bethesda") != -1 || myPage.toLowerCase().indexOf("chevychase") != -1  || myPage.toLowerCase().indexOf("kensington") != -1
)
{
leadercode="211276";
bigboxcode="204221";
rrskycode="204200";
storyleftcode="211277";
storyboxcode="211275";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211275";
}
}


if (
(currurl.indexOf("fred") != -1 || myPage.toLowerCase().indexOf("frederick") != -1) && currurl.indexOf("frederickcounty") == -1 && myPage.toLowerCase().indexOf("frederickcounty") == -1
)
{
leadercode="211302";
bigboxcode="204235";
rrskycode="204200";
storyleftcode="211304";
storyboxcode="211303";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211303";
}
}

if (
currurl.indexOf("germ") != -1 || currurl.indexOf("pool") != -1 || myPage.toLowerCase().indexOf("germantown") != -1 || myPage.toLowerCase().indexOf("poolesville") != -1
)
{
leadercode="211284";
bigboxcode="204222";
rrskycode="204200";
storyleftcode="211286";
storyboxcode="211285";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211285";
}
}

if (
currurl.indexOf("silv") != -1 || currurl.indexOf("tako") != -1 || currurl.indexOf("whea") != -1 || myPage.toLowerCase().indexOf("silverspring") != -1 || myPage.toLowerCase().indexOf("takoma") != -1 || myPage.toLowerCase().indexOf("wheaton") != -1
)
{
leadercode="211289";
bigboxcode="204225";
rrskycode="204200";
storyleftcode="211288";
storyboxcode="211287";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211287";
}
}

if (
currurl.indexOf("dama") != -1 || myPage.toLowerCase().indexOf("damascus") != -1
)
{
leadercode="211293";
bigboxcode="204229";
rrskycode="204200";
storyleftcode="211295";
storyboxcode="211294";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211294";
}
}

if (
(currurl.indexOf("olne") != -1 && currurl.indexOf("pool") == -1) || myPage.toLowerCase().indexOf("olney") != -1
)
{
leadercode="211296";
bigboxcode="204230";
rrskycode="204200";
storyleftcode="211298";
storyboxcode="211297";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211297";
}
}

if (
currurl.indexOf("moun") != -1 || myPage.toLowerCase().indexOf("mountairy") != -1
)
{
leadercode="211299";
bigboxcode="204232";
rrskycode="204200";
storyleftcode="211301";
storyboxcode="211300";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211300";
}
}

if (
currurl.indexOf("walk") != -1 || currurl.indexOf("thur") != -1 || myPage.toLowerCase().indexOf("walkersville") != -1 || myPage.toLowerCase().indexOf("thurmont") != -1
)
{
leadercode="211306";
bigboxcode="204237";
rrskycode="204200";
storyleftcode="211307";
storyboxcode="211305";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211305";
}
}

if (
currurl.indexOf("midd") != -1 || currurl.indexOf("brun") != -1 || myPage.toLowerCase().indexOf("middletown") != -1 || myPage.toLowerCase().indexOf("brunswick") != -1
)
{
leadercode="211308";
bigboxcode="204239";
rrskycode="204200";
storyleftcode="211309";
storyboxcode="211310";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211310";
}
}

if (
currurl.indexOf("burt") != -1 || myPage.toLowerCase().indexOf("burtonsville") != -1
)
{
leadercode="211311";
bigboxcode="204241";
rrskycode="204200";
storyleftcode="211313";
storyboxcode="211312";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211312";
}
}

if (
currurl.indexOf("poto") != -1 || currurl.indexOf("nort") != -1 || myPage.toLowerCase().indexOf("potomac") != -1
)
{
leadercode="211314";
bigboxcode="204243";
rrskycode="204200";
storyleftcode="211316";
storyboxcode="211315";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211315";
}
}

if (
currurl.indexOf("laur") != -1 || currurl.indexOf("coll") != -1 || currurl.indexOf("gree") != -1 || myPage.toLowerCase().indexOf("laurel") != -1 || myPage.toLowerCase().indexOf("collegepark") != -1 || myPage.toLowerCase().indexOf("greenbelt") != -1
)
{
leadercode="211488";
bigboxcode="204245";
rrskycode="204200";
storyleftcode="211492";
storyboxcode="211491";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211491";
}
}

if (
currurl.indexOf("hyat") != -1 || currurl.indexOf("port") != -1 || myPage.toLowerCase().indexOf("hyattsville") != -1 || myPage.toLowerCase().indexOf("porttowns") != -1
)
{
leadercode="211495";
bigboxcode="204247";
rrskycode="204200";
storyboxcode="211493";
storyleftcode="211494";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211493";
}
}


if (
currurl.indexOf("newc") != -1 || currurl.indexOf("land") != -1 || myPage.toLowerCase().indexOf("newcarrollton") != -1 || myPage.toLowerCase().indexOf("landover") != -1
)
{
leadercode="211505";
bigboxcode="204250";
rrskycode="204200";
storyleftcode="211504";
storyboxcode="211502";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211502";
}
}

if (
currurl.indexOf("clin") != -1 || currurl.indexOf("uppe") != -1 || currurl.indexOf("fort") != -1 || myPage.toLowerCase().indexOf("clinton") != -1 || myPage.toLowerCase().indexOf("uppermarlboro") != -1 || myPage.toLowerCase().indexOf("fortwashington") != -1
)
{
leadercode="211508";
bigboxcode="204253";
rrskycode="204200";
storyleftcode="211507";
storyboxcode="211506";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211506";
}
}

if (
currurl.indexOf("newm") != -1 || currurl.indexOf("urba") != -1 || myPage.toLowerCase().indexOf("newmarket") != -1 || myPage.toLowerCase().indexOf("urbana") != -1
)
{
leadercode="211516";
bigboxcode="204256";
rrskycode="204200";
storyleftcode="211514";
storyboxcode="211513";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211513";
}
}

if (
currurl.indexOf("larg") != -1 || currurl.indexOf("lanh") != -1 || myPage.toLowerCase().indexOf("largo") != -1 || myPage.toLowerCase().indexOf("lanham") != -1
)
{
leadercode="211511";
bigboxcode="204255";
rrskycode="204200";
storyleftcode="211509";
storyboxcode="211510";
if (currurl.indexOf("stories") != -1 || currurl.indexOf("archives") != -1) {
	bigboxcode="211510";
}
}



if (
currurl.indexOf("fredlet") != -1 || currurl.indexOf("montlet") != -1 || currurl.indexOf("prinlet") != -1 || currurl.indexOf("carrlet") != -1  || currurl.indexOf("carrcol") != -1 || currurl.indexOf("princol") != -1 || currurl.indexOf("montcol") != -1 || currurl.indexOf("fredcol") != -1 || currurl.indexOf("carrnew") != -1 || currurl.indexOf("prinnew") != -1 || currurl.indexOf("montpol") != -1 || currurl.indexOf("prinpol") != -1 || currurl.indexOf("carrpol") != -1 || currurl.indexOf("fredpol") != -1 || currurl.indexOf("polinew") != -1 || currurl.indexOf("carredi") != -1 || currurl.indexOf("montedi") != -1 || currurl.indexOf("frededi") != -1 || currurl.indexOf("prinedi") != -1 || currurl.indexOf("prineng") != -1 || currurl.indexOf("monteng") != -1 || currurl.indexOf("carreng") != -1 || currurl.indexOf("fredeng") != -1 || currurl.indexOf("prinwed") != -1 || currurl.indexOf("montwed") != -1 || currurl.indexOf("fredwed") != -1 || currurl.indexOf("carrwed") != -1 || currurl.indexOf("prinobi") != -1 || currurl.indexOf("montobi") != -1 || currurl.indexOf("carrobi") != -1 || currurl.indexOf("fredobi") != -1 || currurl.indexOf("prinreu") != -1 || currurl.indexOf("carrreu") != -1 || currurl.indexOf("montreu") != -1 || currurl.indexOf("fredreu") != -1 || currurl.indexOf("fredsch") != -1 || currurl.indexOf("montsch") != -1 || currurl.indexOf("prinsch") != -1 || currurl.indexOf("carrsch") != -1 || currurl.indexOf("fredspo") != -1 || currurl.indexOf("carrspo") != -1 || currurl.indexOf("montspo") != -1 || currurl.indexOf("prinspo") != -1 || currurl.indexOf("fredpol") != -1 || currurl.indexOf("carrpol") != -1 || currurl.indexOf("prinpol") != -1 || currurl.indexOf("montpol") != -1
)
{
leadercode="204260";
bigboxcode="204260";
rrskycode="204200";
storyleftcode="204259";
storyboxcode="204260";
}


if (
currurl.indexOf("classifieds-bin") != -1 || currurl.indexOf("kaango.com") != -1 || myPage.toLowerCase()=="placead"
)
{
	leadercode="216694";
	classcode="190773";
}

if (
currurl.indexOf("=Autos") != -1
)
{
	leadercode="216680";
	classcode="190766";
}

if (
currurl.indexOf("=Homes") != -1
)
{
	leadercode="216685";
	classcode="190772";
}


if (
currurl.indexOf("=Jobs") != -1
)
{
	leadercode="216693";
	classcode="190770";
}

if (myPage.toLowerCase() == "montgomeryhome")
{leadercode="204206";}

if (myPage.toLowerCase() == "princegeorgeshome")
{leadercode="204208";
earcode="326204";}

if (myPage.toLowerCase() == "frederickcountyhome")
{leadercode="204207";}

if (myPage.toLowerCase() == "businesshome")
{leadercode="204214";
earcode="304424";}

if (myPage.toLowerCase() == "entertainmenthome")
{leadercode="204198";}

if (myPage.toLowerCase() == "politicshome")
{leadercode="204214";
earcode="304424";}

if (myPage.toLowerCase() == "speakout")
{
	//USES HOME PAGE CODE
	}

if (myPage.toLowerCase() == "teacher")
{leadercode="412383";}

if (myPage.toLowerCase() == "frederickcountysports" || myPage.toLowerCase() == "montgomerysports" || myPage.toLowerCase() == "princegeorgessports")
{leadercode="204204";}



//alert(leadercode);

leader="<iframe width='728' height='90' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/" + leadercode + "/0/vh?z=gazette&dim=108623'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/" + leadercode + "/0/vj?z=gazette&dim=108623&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/" + leadercode + "/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/" + leadercode + "/0/vc?z=gazette&dim=108623&abr=$imginiframe' width='728' height='90' border='0'></a></noscript></iframe>";

classad="<iframe width='120' height='600' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/" + classcode + "/0/vh?z=gazette&dim=204261'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/" + classcode + "/0/vj?z=gazette&dim=204261&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/" + classcode + "/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/" + classcode + "/0/vc?z=gazette&dim=204261&abr=$imginiframe' width='120' height='600' border='0'></a></noscript></iframe>";

bigbox="<iframe width='300' height='250' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/" + bigboxcode + "/0/vh?z=gazette&dim=163124'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/" + bigboxcode + "/0/vj?z=gazette&dim=163124&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/" + bigboxcode + "/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/" + bigboxcode + "/0/vc?z=gazette&dim=163124&abr=$imginiframe' width='300' height='250' border='0'></a></noscript></iframe>";

rrsky="<iframe width='160' height='600' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/"+rrskycode+"/0/vh?z=gazette&dim=124173'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/"+rrskycode+"/0/vj?z=gazette&dim=124173&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/"+rrskycode+"/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/"+rrskycode+"/0/vc?z=gazette&dim=124173&abr=$imginiframe' width='160' height='600' border='0'></a></noscript></iframe>";

storyleftad="<iframe width='120' height='600' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyleftcode + "/0/vh?z=gazette&dim=204261'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyleftcode + "/0/vj?z=gazette&dim=204261&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/" + storyleftcode + "/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyleftcode + "/0/vc?z=gazette&dim=204261&abr=$imginiframe' width='120' height='600' border='0'></a></noscript></iframe>";

storyboxad="<iframe width='300' height='250' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyboxcode + "/0/vh?z=gazette&dim=163124'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyboxcode + "/0/vj?z=gazette&dim=163124&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/" + storyboxcode + "/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/" + storyboxcode + "/0/vc?z=gazette&dim=163124&abr=$imginiframe' width='300' height='250' border='0'></a></noscript></iframe>";

cliffsear="<iframe width='252' height='112' noresize scrolling=No frameborder=0 marginheight=0 marginwidth=0 src='http://rotator.adjuggler.com/servlet/ajrotator/"+earcode+"/0/vh?z=gazette&dim=230973'><script language=JavaScript src='http://rotator.adjuggler.com/servlet/ajrotator/"+earcode+"/0/vj?z=gazette&dim=230973&abr=$scriptiniframe'></script><noscript><a href='http://rotator.adjuggler.com/servlet/ajrotator/"+earcode+"/0/cc?z=gazette'><img src='http://rotator.adjuggler.com/servlet/ajrotator/230972/0/vc?z=gazette&dim=230973&abr=$imginiframe' width='252' height='112' border='0'></a></noscript></iframe>";

//alert ("leadercode="+leadercode+"\nbigboxcode="+bigboxcode+"\nrrskycode="+rrskycode+"\nstoryboxcode="+storyboxcode+"\nstoryleftcode="+storyleftcode);

var writeclassad=classad;

