function sm()
{
      var s00 = "lto\x3A";
      var s5 = "\x63a";
      var s4 = "\x2E";
      var s1 = "nihonto";
      var s3 = "nihonto";
      var s2 = "\x40";
      var s0 = "mai";
      window.open(s0 + s00 + s1 + s2 + s3 + s4 + s5);
}

function isNetscape(v) {
  /*
  ** Check if the browser is Netscape compatible
  **    v  version number
  ** returns  true if Netscape and version equals or greater
  */
  return isBrowser("Netscape", v);
  }

function isMicrosoft(v) {
  /*
  ** Check if the browser is Microsoft Internet Explorer compatible
  **    v  version number
  ** returns  true if MSIE and version equals or greater
  */
  return isBrowser("Microsoft", v);
  }

function isBrowser(b,v) {
  /*
  ** Check if the current browser is compatible
  **  b  browser name
  **  v  version number (if 0 don't check version)
  ** returns true if browser equals and version equals or greater
  */
  browserOk = false;
  versionOk = false;

  browserOk = (navigator.appName.indexOf(b) != -1);
  if (v == 0) versionOk = true;
  else  versionOk = (v <= parseInt(navigator.appVersion));
  return browserOk && versionOk;
  }

function isBrowser1(b,v) {
  browserOk = false;
  versionOk = false;
  alert('hi');
  browserOk = (navigator.appName.indexOf(b) != -1);
  if (v == 0) versionOk = true;
  else  versionOk = (v <= parseInt(navigator.appVersion));
  return browserOk && versionOk;
  }



function copyright() {
   if (isNetscape(4)) {
      document.write('<IMG SRC="/fade.png" id="fade">');
   }
   document.write('<DIV id="copy" class="copy">Original content Copyright &#169; 2004 D. Brockbank</DIV>');

}

function embedcss(){
   document.write('<LINK REL=StyleSheet HREF="/style/style.css" TYPE="text/css" MEDIA="screen,print">');
   if (isNetscape(0)){
    document.write('<LINK REL=StyleSheet HREF="/style/ns.css" TYPE="text/css" MEDIA="screen,print">');

   } else {
    document.write('<LINK REL=StyleSheet HREF="/style/ie.css" TYPE="text/css" MEDIA="screen,print">');
   }
}


function jpg(url,title) {
     //document.open('text/html');
     isNetscape = 0;
     document.write('<HTML>\n<HEAD>\n');
     document.write('<TITLE>' + title + '</TITLE>\n');

     document.write('<LINK REL=StyleSheet HREF="/style/style.css" TYPE="text/css" MEDIA="screen,print">');

     if (navigator.appName.indexOf("Netscape") != -1){
        isNetscape = 1;
        document.write('<LINK REL=StyleSheet HREF="/style/ns.css" TYPE="text/css" MEDIA="screen,print">');
     } else {
        isNetscape = 0;
        document.write('<LINK REL=StyleSheet HREF="/style/ie.css" TYPE="text/css" MEDIA="screen,print">');
     }

     document.write('</HEAD>\n');
     document.write('<BODY class="floater">\n');     

     document.write('<A HREF="/index.html" id="home" class="hot">home</A>\n');
     document.write('<A HREF="javascript:sm()" id="email" class="hot">email</A>\n');
     document.write('<A HREF="index.html" id="top3" class="hot">back</A>\n');
     if (title != "") {
         document.write('<H2 id="float">' + title + '</H2>\n');
     }    
     if (isNetscape) {
      document.write('<IMG SRC="/fade.png" id="fade">');
     }
     document.write('<DIV id="copy" class="copy">Original content Copyright &#169; 2008 D. Brockbank</DIV>');
     
     document.write('<DIV class="content" id="scrollproblem">\n');


     document.write('<P><CENTER><IMG SRC="' + url + '"></CENTER></P>\n');
     document.write('</DIV>\n');
     document.write('</BODY>\n');
     document.write('</HTML>\n');
     document.write('\n');
     document.close();
}



embedcss();

