/* * @filename replace_localtools.js * @programmer Sothea Nim, info@sotheanim.com; snim@alcor.concordia.ca * @date August 27, 2009 * @description replacing the sharethis and printing tool */ function replace_localtools(hostname, uri, pagetitle, theSiteRoot, printLegacy) { var sroot = theSiteRoot ? theSiteRoot : ''; sroot = sroot[0]==='/'?sroot:'/'+sroot; var reqHost = window.location.href.split('?'); if( reqHost[1] ) print_link = reqHost[0]+'?'+reqHost[1]+'&print=1'; else print_link = reqHost[0]+'?print=1'; var tools = '
 
'; //ie delivers an error if var is null -- this is a fix for print pages var test = document.getElementById('localtools_wrapper'); if (test != null) { document.getElementById('localtools_wrapper').innerHTML=tools; } }