if (location.href.indexOf("http://www.adur.gov.uk") != -1){
document.write('<ul>');
document.write('<li><a href="http://del.icio.us/post?url=' + document.location + "&amp;title=" + document.title + '" title="External Link - Post to Delicious"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/delicious.gif" alt="External Link - Post to Delicious"  height="16" width="16" />Delicious</a></li>');
document.write('<li><a href="http://digg.com/submit?url=' + document.location + "&amp;title=" + document.title + '" title="External Link - Post to Digg"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/digg.gif" alt="External Link - Post to Digg"  height="16" width="16" />Digg</a></li>');
document.write('<li><a href="http://reddit.com/submit?url=' + document.location + "&amp;title=" + document.title + '" title="External Link - Post to reddit"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/reddit.gif" alt="External Link - Post to reddit"  height="16" width="16" />reddit</a></li>');
document.write('<li><a href="http://www.stumbleupon.com/submit?url=' + document.location + "&amp;title=" + document.title + '" title="External Link - post to StumbleUpon"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/stumbleupon.gif" alt="External Link - Post to StumbleUpon" height="16" width="16" />StumbleUpon</a></li>');
document.write('<li><a href="http://www.newsvine.com/_tools/seed&amp;save?u=' + document.location + "&amp;h=" + document.title + '" title="External Link - Post to Newsvine"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/newsvine.gif" alt="External Link - Post to Newsvine"  height="16" width="16" />Newsvine</a></li>');
document.write('<li><a href="http://www.facebook.com/sharer.php?u=' + document.location + '" title="External Link - Post to Facebook"><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/facebook.gif" alt="External Link - Post to Facebook"  height="16" width="16" />Facebook</a></li>');
document.write('<li><br /><a href="mailto:?subject=Useful webpage on the Adur District Council website&body=I saw this webpage on the Adur District Council website and thought it might be of interest you: ' + document.location + ' "><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/e-mail.gif" alt="e-mail this page to a friend"  height="11" width="16" />e-mail this page to a friend using your computer’s e-mail package (eg MS Outlook)</a></li>');
document.write('</ul>');
document.write('<p><a href="http://www.adur.gov.uk/web-gadgets/social-bookmarking-about.htm">What are these for?</a></p>');
}

else if (location.href.indexOf("http://www.adurdc.gov.uk") != -1){
var str = location.href.substr(location.href.indexOf("http://www.adurdc.gov.uk/")+25);
document.write('<p>Oops, you are using www.adurdc.gov.uk (which is no longer used) you should be using www.adur.gov.uk instead!</p>');
document.write('<p><a href="http://www.adur.gov.uk/'+str+'">Click here to go the www.adur.gov.uk version of this page (correct base URL) and bookmark that instead.</a></p>');
}

else if (location.href.indexOf("http://82.109.189.2/") != -1){
var str = location.href.substr(location.href.indexOf("http://82.109.189.2/")+20);
document.write('<p>Oops, you are using http://82.109.189.2/ you should be using www.adur.gov.uk instead!</p>');
document.write('<p><a href="http://www.adur.gov.uk/'+str+'">Click here to go the www.adur.gov.uk version of this page (correct base URL) and bookmark that instead.</a></p>');
}

else if (location.href.indexOf("http://62.252.54.98/") != -1){
var str = location.href.substr(location.href.indexOf("http://62.252.54.98/")+20);
document.write('<p>Oops, you are using http://62.252.54.98/ you should be using www.adur.gov.uk instead!</p>');
document.write('<p><a href="http://www.adur.gov.uk/'+str+'">Click here to go the www.adur.gov.uk version of this page (correct base URL) and bookmark that instead.</a></p>');
}

else if (location.href.indexOf("http://62.254.5.83/") != -1){
var str = location.href.substr(location.href.indexOf("http://62.254.5.83/")+19);
document.write('<p>Oops, you are using http://62.254.5.83/ you should be using www.adur.gov.uk instead!</p>');
document.write('<p><a href="http://www.adur.gov.uk/'+str+'">Click here to go the www.adur.gov.uk version of this page (correct base URL) and bookmark that instead.</a></p>');
}

else if (location.href.indexOf("intranet") != -1){
document.write('<p>Sorry the social bookmarking function is not available on the Adur DC staff intranet.</p>');
document.write('<p>But you could <a href="mailto:?subject=Useful webpage on the Adur District Council staff intranet&body=I saw this webpage on the Adur District Council staff intranet and thought it might be of interest you: ' + document.location + ' "><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/e-mail.gif" alt="e-mail this page to a colleague who works at Adur DC or Worthing BC"  height="11" width="16" />e-mail this page to a colleague who works at Adur DC or Worthing BC using your computer’s e-mail package (eg MS Outlook)</a>.</p>');
document.write('<p>or <a href="http://www.adur.gov.uk/web-gadgets/social-bookmarking-about.htm">click here to find out about sharing and social bookmarking</a>.</p>');
}

else {
document.write('<p>Oops - sharing and social bookmarking is not available from this webpage ...</p>');
document.write('<p><a href="mailto:webmaster@adur.gov.uk?subject=Social bookmarking link error&body=This page was viewed at : ' + document.location + ' "><img  class="sbm" src="http://www.adur.gov.uk/web-gadgets/img/e-mail.gif" alt="e-mail this page to a friend"  height="11" width="16" />Please click here to e-mail the Adur DC webmaster to let us know where you are hitting this page from so it can be sorted out if necessary using your computer’s e-mail package (eg MS Outlook)</a>.</p>');
}

if (location.href.indexOf("http://adc/intranet/") != -1){
var str = location.href.substr(location.href.indexOf("http://adc/intranet/")+20);
document.write('<p>or <a href="http://www.adur.gov.uk/'+str+'">go to the public version of this page and bookmark that instead (ADC)</a>.</p>');
}

else if (location.href.indexOf("http://intranet.adur.jug/intranet/") != -1){
var str = location.href.substr(location.href.indexOf("http://intranet.adur.jug/intranet/")+34);
document.write('<p>or <a href="http://www.adur.gov.uk/'+str+'">go to the public version of this page and bookmark that instead (JUG)</a>.</p>');
}

else if (location.href.indexOf("http://adcintranet/intranet/") != -1){
var str = location.href.substr(location.href.indexOf("http://adcintranet/intranet/")+28);
document.write('<p>or <a href="http://www.adur.gov.uk/'+str+'">go to the public version of this page and bookmark that instead (ADC DMZ)</a>.</p>');
}

else if (location.href.indexOf("https://intranet.adur.gov.uk/intranet/") != -1){
var str = location.href.substr(location.href.indexOf("https://intranet.adur.gov.uk/intranet/")+38);
document.write('<p>or <a href="http://www.adur.gov.uk/'+str+'">go to the public version of this page and bookmark that instead (DMZ)</a>.</p>');
}

else if (location.href.indexOf("http://adc/intranet/adc") != -1){
document.write('<p>This is a staff only page - there is not a public version to bookmark - sorry!</p>');
}