var home = 0;
var imgs = document.getElementsByTagName('img');

//determine if this is the homepage //

for (i=0;i<imgs.length;i++) {
var imsrc = imgs[i].src.split('/');
for (j=0;j<imsrc.length;j++) {
if (imsrc[j] == 'corporate_12.jpg') {
home = "1";
}
}
}

if (home == "1") {

// hide the feature links //

document.getElementById('paw').style.display = 'none';
document.getElementById('jaws').style.display = 'none';


// append the custom links //

var tabs = document.getElementsByTagName('table');
var count = 0;

for (i=0;i<tabs.length;i++) {

if (tabs[i].getAttribute('width') == '171') {

if (count == '1') {
var cserv = tabs[i].parentNode;
}

// paw link //
if (count == '2') {
var wnew = tabs[i].parentNode;
}
count++
}
}

// create the custom jaws link //

var jawsgraphic = document.createElement('img');
var jawslink = document.createElement('a');

// set the custom jaws link attributes //

jawsgraphic.setAttribute('src','2557Marcam/jaws_home.gif');
jawsgraphic.style.border = '0';
jawslink.setAttribute('href','index.iml?mdl=Jaws_PDF/instructions.mdl');
jawslink.style.display = 'block';
jawslink.style.margin = '20px 0 0 22px';


// append the custom jaws link to the document //

jawslink.appendChild(jawsgraphic);
//cserv.appendChild(jawslink);


// create the custom paw link //

var pawgraphic = document.createElement('img');
var pawlink = document.createElement('a');


// set the custom paw link attributes //

pawgraphic.setAttribute('src','2557Marcam/paw_home.gif');
pawgraphic.style.border = '0';
pawlink.setAttribute('href','printer_at_work.iml?mdl=PrinterAtWork/paw_subscribe.mdl');
pawlink.setAttribute('target','_blank');
pawlink.style.display = 'block';
pawlink.style.margin = '20px 0 0 22px';

// append the custom paw link to the document //

pawlink.appendChild(pawgraphic);
wnew.appendChild(pawlink);

}

if (home == "0") {

document.getElementById('paw').style.display = 'block';
document.getElementById('jaws').style.display = 'block';
}