// -*- java -*-
// KewlWebRingNaviHack(tm) code by Weyfour WWWWolf
// Freely used, distributed and modified, as long as you keep this
// copyright notice intact! No warranty expressed or implied.

path = "kuvat/ring/";

// Since MSIE's DOM is quite ... different from Netscape's, I decided
// to just refuse to do the glitz in MSIE, plain and simple...

// Hmm, I decided to say "Yeah, werks"...

if(navigator.appName == "Netscape" || navigator.appName == "Mozilla") {
    okDom = true;
    // window.status = "Hooray!";
} else {
    okDom = true;
    // window.status = "Warning: Your DOM is not my DOM.";
}

function logo() {
  if(okDom) {
    document.ringlogo.src = "kuvat/ring/big/webring.png";
  }
}

function setlogo(name) {
  if(okDom) {
    document.ringlogo.src = "kuvat/ring/big/" + name;
  }
}

function setllogo(name) {
  if(okDom) {
    document.ringlogo.src = "kuvat/ring/linkimages/" + name;
  }
}

// Following are used to print out some tags.

function dotag(tag, attribstring) {
  str = "<" + tag;
  if(attribstring) {
     str += " " + attribstring;
  }
  str += ">";
  document.write(str);
}
function doendtag(tag) {
  document.write("</"+ tag + ">");
}
