var domain = window.location.hostname;
domain = domain.replace('www.', '');
var css = 'http:\/\/prosebeforehos.com\/pbhbar.css';
var pbnurl = "http:\/\/pbh-network.com";
var suurl = "http:\/\/www.stumbleupon.com\/to\/stumble\/stumblethru:prosebeforehos.com?utm_source=PBH&utm_medium=StumbleThru&utm_campaign=StumbleThruButton";
var fburl = "http:\/\/facebook.com\/pbhnetwork";
var twurl = "http:\/\/twitter.com\/pbhnetwork";
var pbhlink = "http:\/\/prosebeforehos.com";
var aslink = "http:\/\/alligator-sunglasses.com";
var rotwlink = "http:\/\/runt-of-the-web.com";
var atiilink = "http:\/\/all-that-is-interesting.com";
var pbh2link = "http:\/\/pbh2.com";
var styles = document.createElement('link');
styles.rel = 'stylesheet';
styles.href = css;
var pbn = document.createElement('a');
pbn.className = 'pbnet';
pbn.id = 'pbn';
pbn.href = pbnurl;
var su = document.createElement('a');
su.className = 'social';
su.id = 'stumble';
su.href = suurl;
var fbook = document.createElement('a');  
fbook.className = 'social';
fbook.id = 'fb';
fbook.href = fburl;
var twit = document.createElement('a');  
twit.className = 'social';
twit.id = 'tw';
twit.href = twurl;
var linkbtns = document.createElement('ul');
linkbtns.id = 'link-btns';
var li1 = document.createElement('li');
if (domain == 'prosebeforehos.com') {
    li1.className = 'active'
}
var li2 = document.createElement('li');
if (domain == 'alligator-sunglasses.com') {
    li2.className = 'active'
}
var li3 = document.createElement('li');
if (domain == 'runt-of-the-web.com') {
    li3.className = 'active'
}
var li4 = document.createElement('li');
if (domain == 'all-that-is-interesting.com') {
    li4.className = 'active'
}
var li5 = document.createElement('li');
if (domain == 'pbh2.com') {
    li5.className = 'active'
}
var pbh = document.createElement('a');
pbh.className = 'pbh';
pbh.href = pbhlink;
var as = document.createElement('a');
as.className = 'as';
as.href = aslink;
var rotw = document.createElement('a');
rotw.className = 'rotw';
rotw.href = rotwlink;
var atii = document.createElement('a');
atii.className = 'atii';
atii.href = atiilink;
var pbh2 = document.createElement('a');
pbh2.className = 'pbh2';
pbh2.href = pbh2link;
linkbtns.appendChild(li1);
li1.appendChild(pbh);
linkbtns.appendChild(li2);
li2.appendChild(as);
linkbtns.appendChild(li3);
li3.appendChild(rotw);
linkbtns.appendChild(li4);
li4.appendChild(atii);
linkbtns.appendChild(li5);
li5.appendChild(pbh2);
var scr = document.getElementById('network-bar');
scr.appendChild(styles);
scr.appendChild(pbn);
scr.appendChild(su);
scr.appendChild(fbook);
scr.appendChild(twit);
scr.appendChild(linkbtns);
