/* Write additional links */

//whether this is cd edition (cd==true) or web edition (cd==false)
var cd=false;

function olink( strURL , strText, blnList) {
/* strURL is partial URL
    strText is Optional link text (if undefined or not a string just open link) 
    blnList is true if this should have a LI tag  */
  //only if local version (not internet)
  if (location.host=="") {
   strURL='<a href="'+ strURL+'">';
   if (blnList==true) strURL='<li>'+strURL;
   if (typeof strText == "string") strURL+=strText+'</a>';
   document.writeln(strURL);
   }
}

function cdlink( strURL , strText, blnList) {
/* strURL is partial URL
    strText is Optional link text (if undefined or not a string just open link) 
    blnList is true if this should have a LI tag  */
  //only if web edition (not cd)
  if (cd==false) {
   strURL='<a href="'+ strURL+'">';
   if (blnList==true) strURL='<li>'+strURL;
   if (typeof strText == "string") strURL+=strText+'</a>';
   document.writeln(strURL);
   }
}

function cdpiclink( strURL , width, height, strDestURL) {
/* draws a thumbnail image pointing to a large image  */
  //only if web edition (not cd)
  if (cd==false) {
   html='<a href="'+ strDestURL+'">';
   html+='<img src="'+strURL+'" width="'+width+'" height="'+height+'" alt="Click for larger view" border=0></a>';
   document.writeln(html);
   }
}


