File: /home/mykensington.co.uk/public_html/java/myvillage_national.txt.js
<!--
// breadcrumbs
//alert(domainID);
var breadArea = domainID.substring(domainID.indexOf("my")+2, domainID.length);
//alert(breadArea);
var capital = breadArea.charAt(0);
capital = capital.toUpperCase();
var chopbreadArea = breadArea.substring(1,breadArea.length);
var capbreadArea = capital + chopbreadArea;
//alert(capbreadArea);
document.write('<font face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<a href="http://www.myvillage.com">MyVillage</a>');
document.write(' > ');
document.write(' <a href="http://'+ backlink +'">'+capbreadArea+'</a>');
var pather = location.pathname;
if(pather.indexOf("/"+folder+"/") != -1){
//alert("we are in a category");
var pageTitle = document.title;
var choppageTitle = pageTitle.substring(0, 40);
var segpageTitle = choppageTitle.substring(0, choppageTitle.lastIndexOf(" "));
if(pather.indexOf("/restaurants") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/restaurants.htm">Restaurants</a>');
if(pather.indexOf("/restaurants.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/arts") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/arts.htm">What's on</a>');
if(pather.indexOf("/arts.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if((pather.indexOf("/bars&music") != -1)||(pather.indexOf("/bars&Music") != -1)){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/bars&Music.htm">Bars & Music</a>');
if((pather.indexOf("/bars&music.htm") == -1)||(pather.indexOf("/bars&Music.htm") == -1)){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/fashion") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/fashion.htm">Lifestyle</a>');
if(pather.indexOf("/fashion.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/health") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/health.htm">Health & Beauty</a>');
if(pather.indexOf("/health.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/celebs") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/celebs&gossip.htm">Celebs & Gossip</a>');
if(pather.indexOf("/celebs&gossip.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/competitions") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/competitions.htm">Competitions</a>');
if(pather.indexOf("/competitions.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/jobs") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/jobs.htm">Jobs</a>');
if(pather.indexOf("/jobs.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/property") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/property.html">Flats & Houses</a>');
if(pather.indexOf("/property.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/community") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/community.shtml">Community</a>');
if(pather.indexOf("/community.shtm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/business") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/businesszone.htm">Business & Services</a>');
if(pather.indexOf("/businesszone.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/kids") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/kids.htm">Kids & Youth</a>');
if(pather.indexOf("/kids.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/dating") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/dating.htm">Dating</a>');
if(pather.indexOf("/dating.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
if(pather.indexOf("/services") != -1){
document.write(' > ');
document.write(' <a href="http://'+ backlink +'/'+ folder +'/services.htm">Classifieds</a>');
if(pather.indexOf("/services.htm") == -1){
document.write(' > ');
document.write(segpageTitle);
}
}
}
document.write('</font>');
//-->