<!--
function openWindow(theURL,winName,w,h,settings){
 options = 'height='+h+',width='+w+','+settings
 myWin = window.open(theURL,winName,options);
 myWin.focus();
}

function GetCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}


function setCookie (name,value,days,path,domain,secure) {
  var expyear = new Date();
  expyear = new Date(expyear.getTime()+(days*24*60*60*1000));
  document.cookie = name + "=" + escape (value) +
    ((days) ? "; expires=" + expyear.toGMTString() : "") + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function getCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return GetCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}

function deleteCookie (name,path,domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

function fixCookieDate (date) {
  var base = new Date(0);
  var skew = base.getTime(); // dawn of (Unix) time - should be 0
  if (skew > 0)  // Except on the Mac - ahead of its time
    date.setTime (date.getTime() - skew);
}


function save_thumb_state (value,cookie_domain) {
    setCookie("slimage",value,365,"/",cookie_domain,false);
    location.reload();
}


var qpv = '[View Links]';
var cpv = '[Close This Window]';
var psize = '385';

function pv(url, id, pwidth) {
  if(document.all || document.getElementById) {
    document.write('<a title="Link Sponsors" class="newwindow" id="link'+id+'" href="'+url+'" onClick="pview(this, '+pwidth+');return false">'+qpv+'</a>');
  }
}

function pview(link, pwidth) {
// Testing for IE 4, since IE4 does not recognize document.getElementById
  var ie4 = (document.all && !document.getElementById) ? true : false;
// If it is IE 4, we set document.all. If we are not IE 4 then we use the standard getElementById
  if (ie4 == 1) {
    var iframe = document.all['if'+link.id];
  }
  else {
    var iframe = document.getElementById('if'+link.id);
  }
  if(link.innerHTML == qpv) {
    if(iframe) {
      // Reuses the IFrame if open already
      iframe.src = link.href;
      iframe.style.height = psize;
      iframe.style.visibility = 'visible';
    } else {
      // Build the Frame and Load the URL
      myBR = document.createElement('br');
      myBR.setAttribute('id','br'+link.id);
      link.parentNode.appendChild(myBR);
      myIframe = document.createElement('iframe');
      myIframe.setAttribute('id','if'+link.id);
      myIframe.setAttribute('width',pwidth);
      myIframe.setAttribute('height',psize);
      myIframe.setAttribute('class','pframe');
      myIframe.setAttribute('src',link.href);
      link.parentNode.appendChild(myIframe);
    }
    link.innerHTML = cpv;
  } else if(iframe) {
    if (ie4 == 1) {
      myBR = document.all['br'+link.id];
    } else {
      myBR = document.getElementById('br'+link.id);
    }
    link.innerHTML = qpv;
    link.parentNode.removeChild(iframe);
    link.parentNode.removeChild(myBR);
  }
}

function resizeRSBox() {
 if (document.getElementById('toolboxTop').style.height != "auto") {
  document.getElementById('toolboxTop').style.height = "auto";
  document.getElementById('tbButtonClose').style.display = "block";
  document.getElementById('tbButtonOpen').style.display = "none";
 } else {
  document.getElementById('toolboxTop').style.height = 80;
  document.getElementById('tbButtonOpen').style.display = "block";
  document.getElementById('tbButtonClose').style.display = "none";
 }
}

function ga(o,e){
 if (document.getElementById){
     a=o.id.substring(1);
     p = "";
     g = e.target;
     if (g) 
     {
         t = g.id;
         f = g.parentNode;
         if (f) {
             p = f.id;
             h = f.parentNode;
                 if (h) r = h.id;
         }
      } else{
          h = e.srcElement;
          f = h.parentNode;
              if (f) p = f.id;
               t = h.id;
      }
      if (t==a || p==a)return true;
      location.href=document.getElementById(a).href
 }
}

//-->
