function writeJS(){

var urlPieces = window.location.href.split('/');
var currentFolder = urlPieces[3];

var str='';
str+='  <ul>';
str+='    <li class="parent-cat"><a href="\/reviews" onmouseout="swapImgRestore()" onmouseover="swapImage(\'Reviews\',\'/images/navigation/reviews_on.gif\')">';
if(currentFolder == 'reviews') {
str+='    <img src="/images/navigation/reviews_on.gif"  border="0" alt="Reviews" name="Reviews" /> ';
} else {
str+='    <img src="/images/navigation/reviews_off.gif"  border="0" alt="Reviews" name="Reviews" /> ';
}
str+='      <!--[if gt IE 6]><!-->';
str+='      </a> ';
str+='      <!--<![endif]-->';
str+='      <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='      <ul class="skinny" onmouseout="swapImgRestore()" onmouseover="swapImage(\'Reviews\',\'/images/navigation/reviews_on.gif\')">';
str+='        <li><a href="/reviews/online-bingo"><span class="drop"><span>Online Bingo</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/reviews/online-bingo/gala-bingo-review">Gala Bingo Review</a></li>';
str+='            <li><a href="/reviews/online-bingo/jackpot-joy-review">Jackpot Joy Review</a></li>';
str+='            <li><a href="/reviews/online-bingo/mecca-bingo-review">Mecca Bingo Review</a></li>';
str+='            <li><a href="/reviews/online-bingo/ladbrokes-bingo-review">Ladbrokes Bingo Review</a></li>';
str+='            <li><a href="/reviews/online-bingo/virgin-bingo-review">Virgin Bingo Review</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='        <li><a href="/reviews/online-casinos"><span class="drop"><span>Online ';
str+='          Casinos</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/reviews/online-casinos/32red-casino-review">32 Red Casino Review</a></li>';
str+='            <li><a href="/reviews/online-casinos/ladbrokes-casino-review">Ladbrokes Casino Review</a></li>';
str+='            <li><a href="/reviews/online-casinos/paddy-power-casino-review">Paddy Power Casino Review</a></li>';
str+='            <li><a href="/reviews/online-casinos/888com-review">888 Casino Review</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='        <li><a href="/reviews/online-poker"><span class="drop"><span>Online Poker</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/reviews/online-poker/pkr-review">PKR Review</a></li>';
str+='            <li><a href="/reviews/online-poker/poker-stars-review">Poker ';
str+='              Stars Review</a></li>';
str+='            <li><a href="/reviews/online-poker/poker-room-review">Poker ';
str+='              Room Review</a></li>';
str+='            <li><a href="/reviews/online-poker/sky-poker-review">Sky Poker ';
str+='              Review</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='      </ul>';
str+='      <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='    </li>';
str+='  </ul>';
str+='  <ul>';
str+='    <li class="parent-cat"><a href="\/news" onmouseout="swapImgRestore()" onmouseover="swapImage(\'News\',\'/images/navigation/news_on.gif\')">';
if(currentFolder == 'news') {
str+='    <img src="/images/navigation/news_on.gif"  border="0" alt="Latest News" name="News" \/> ';
} else {
str+='    <img src="/images/navigation/news_off.gif"  border="0" alt="Latest News" name="News" \/> ';
}
str+='      <!--[if gt IE 6]><!-->';
str+='      </a> ';
str+='      <!--<![endif]-->';
str+='      <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='      <ul onmouseout="swapImgRestore()" onmouseover="swapImage(\'News\',\'/images/navigation/news_on.gif\')">';
str+='        <li><a href="/news/bingo">Bingo News</a></li>';
str+='        <li><a href="/news/casino">Casino News</a></li>';
str+='        <li><a href="/news/poker">Poker News</a></li>';
str+='        <li><a href="/news/archives">Archives</a></li>';
str+='      </ul>';
str+='      <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='    </li>';
str+='  </ul>';
str+='  <ul>';
str+='    <li class="parent-cat"><a href="\/resources" onmouseout="swapImgRestore()" onmouseover="swapImage(\'Resources\',\'/images/navigation/resources_on.gif\')">'; 
if(currentFolder == 'resources') {
str+='    <img src="/images/navigation/resources_on.gif" alt="Resources"  width="136" height="29" border="0" name="Resources" /> ';
} else {
str+='    <img src="/images/navigation/resources_off.gif" alt="Resources"  width="136" height="29" border="0" name="Resources" /> ';
}
str+='      <!--[if gt IE 6]><!-->';
str+='      </a> ';
str+='      <!--<![endif]-->';
str+='      <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='      <ul class="skinny" onmouseout="swapImgRestore()" onmouseover="swapImage(\'Resources\',\'/images/navigation/resources_on.gif\')">';
str+='        <li><a href="/resources/bingo-resources"><span class="drop"><span>Bingo Resources</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/resources/bingo-resources/getting-started">Getting Started</a></li>';
str+='            <li><a href="/resources/bingo-resources/history-bingo">History of Bingo</a></li>';
str+='            <li><a href="/resources/bingo-resources/types-bingo">Types of Bingo</a></li>';
str+='            <li><a href="/resources/bingo-resources/tips-winning-bingo">Tips for winning Bingo</a></li>';
str+='            <li><a href="/resources/bingo-resources/bingo-card-creator">Bingo Card Creator</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='        <li><a href="/resources/poker-resources"><span class="drop"><span>Poker Resources</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/resources/poker-resources/texas-holdem-guide">Texas ';
str+='              Holdem Players Guide</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='  	  <li><a href="/resources/general-information"><span class="drop"><span>General Information</span>&raquo;</span> ';
str+='          <!--[if gt IE 6]><!-->';
str+='          </a> ';
str+='          <!--<![endif]-->';
str+='          <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='          <ul>';
str+='            <li><a href="/resources/general-information/responsible-gambling">Responsible Gambling</a></li>';
str+='          </ul>';
str+='          <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='        </li>';
str+='      </ul>';
str+='      <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='    </li>';
str+='  </ul>';
str+='  <ul>';
str+='    <li class="parent-cat"><a href="/community/membership" onmouseout="swapImgRestore()" onmouseover="swapImage(\'Community\',\'/images/navigation/community_on.gif\')">'; 
if(currentFolder == 'community') {
str+='    <img src="/images/navigation/community_on.gif" alt="Community"  width="136" height="29" border="0" name="Community" /> ';
} else {
str+='    <img src="/images/navigation/community_off.gif" alt="Community"  width="136" height="29" border="0" name="Community" /> ';
}
str+='      <!--[if gt IE 6]><!-->';
str+='      </a> ';
str+='      <!--<![endif]-->';
str+='      <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='      <ul onmouseout="swapImgRestore()" onmouseover="swapImage(\'Community\',\'/images/navigation/community_on.gif\')">';
str+='        <li><a href="/community/forums">Forums</a></li>';
str+='        <li><a href="/community/membership">Membership Details</a></li>';
str+='      </ul>';
str+='      <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='    </li>';
str+='  </ul>';
str+='<ul>';
str+='    <li class="parent-cat"><a href="/about-us" onmouseout="swapImgRestore()" onmouseover="swapImage(\'About\',\'/images/navigation/about_us_on.gif\')">';
if(currentFolder == 'about') {
str+='    <img src="/images/navigation/about_us_on.gif" border="0" alt="About Us" name="About" /> ';
} else {
str+='    <img src="/images/navigation/about_us_off.gif" border="0" alt="About Us" name="About" /> ';
}
str+='      <!--[if gt IE 6]><!-->';
str+='      </a> ';
str+='      <!--<![endif]-->';
str+='      <!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
str+='      <ul onmouseout="swapImgRestore()" onmouseover="swapImage(\'About\',\'/images/navigation/about_us_on.gif\')">';
str+='        <li><a href="/community/membership">Membership Details</a></li>';
str+='        <li><a href="/contact">Contact</a></li>';
str+='      </ul>';
str+='      <!--[if lte IE 6]></td></tr></table></a><![endif]-->';
str+='    </li>';
str+='  </ul>';

document.write(str);
}
writeJS();