function displaylink() 
{document.getElementById('sociallinks').style.display='block';
document.getElementById('sociallinks').style.position='absolute';
document.getElementById('sociallinks').style.top='0';
document.getElementById('sociallinks').style.left='0';
document.getElementById('feedback').removeAttribute('class');}

var thenewlia = document.createElement('li');
var thenewlib = document.createElement('li');
var thenewanchorpr = document.createElement('a');
var thenewanchorsh = document.createElement('a');
thenewanchorpr.setAttribute('id','printlink');
thenewanchorsh.setAttribute('id','sharelink');
thenewanchorpr.className = 'print';
thenewanchorsh.className = 'share';
var printtext = document.createTextNode('Print');
var sharetext = document.createTextNode('Share');
thenewanchorpr.appendChild(printtext);
thenewlia.appendChild(thenewanchorpr);
thenewanchorsh.appendChild(sharetext);
thenewlib.appendChild(thenewanchorsh);
document.getElementById('printbox').appendChild(thenewlia);
document.getElementById('printbox').appendChild(thenewlib);
var printpage = document.getElementById('printlink');
if( printpage.addEventListener ) {
  printpage.addEventListener('click',function (e){print();},true);
} else if( printpage.attachEvent ) {
  printpage.attachEvent('onclick',function (e){print();});
}
var sharepage = document.getElementById('sharelink');
if( sharepage.addEventListener ) {
  sharepage.addEventListener('click',function (e){displaylink();},true);
} else if( sharepage.attachEvent ) {
  sharepage.attachEvent('onclick',function (e){displaylink();});
}

