if (top == self) self.location.href="index.html";
preview = null;
function Thumbnail(TITLE, URL, WIDTH, HEIGHT) {
  previewClose();
  windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
  text = "<html><head ><META HTTP-EQUIV='Refresh' CONTENT='1200'><title>" + TITLE + "</title></head><body  bgcolor='white'";
  text += "><center><img src='" + URL + "' width='" + WIDTH + "' height='" + HEIGHT + "'>";
  text += "</center></body></html>";
  preview = window.open("", "preview", windowprops);
  preview.document.open();
  preview.document.write(text);
  preview.document.close();
}
function previewClose() {
  try {
    if (preview && !preview.closed) {
      preview.close();
    }
  }  catch(err) {
  }
}
function setPreviewNull() {
  preview = null;
}
function Popup(TITLE, URL, WIDTH, HEIGHT) {
  previewClose();
  windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
  preview = window.open("", "preview", windowprops);
  preview.location.href(URL);
}
if (document.images) {
}
function swap_image(id,name){
  if (document.images) document.images[id].src=eval(name+".src");
}
var bodyfooterFrame;
function loadframes () {
  if (top != self) {
    bodyfooterFrame = parent.bodyfooter.window;
    pnarray = bodyfooterFrame.location.pathname.split(/[\/\\]/);
    if (bodyfooterFrame && (pnarray[pnarray.length - 1] != "blankcopyright.html")) {
      bodyfooterFrame.location="blankcopyright.html";
    }
  }
}

