if (document.images) { 
var btoff = new Image(); // for the inactive image
btoff.src = "ixbtikvah.gif";
var bton = new Image(); // for the active image
bton.src = "iybtikvah.gif"; }
function act() {
if (document.images) document.images.btikvah.src = bton.src; }
function inact() {
if (document.images) document.images.btikvah.src = btoff.src; }

function ById(id){return document.getElementById(id)}
function t_i(id){
var hlp=ById('Tp'+id);
if (hlp){
 hlp.innerHTML+=' '
hlp.style.visibility='visible';
}}
function t_o(id){
var hlp=ById('Tp'+id);
if(hlp) hlp.style.visibility='hidden';}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}

function LinkList() {
var myheader = "<head><title>Links In "+document.title+"</title></head>";
myheader = myheader + "<body>";
var myfont = "<font style=\"font: 8pt Verdana, Arial, Helvetica, Sans-serif; line-height:18pt;\" face=\"verdana, tahoma, geneva\" size=\"-1\" >";
var mytext = "<center><b>Links in " + document.title + "</b><ol></center>";
var myendfont = "</font>";
var myendheader = "</body>";
var topof = /top of/
windowprops = "menubars=no,location=no,toolbars=no,scrollbars=yes,"+"width=350,height=400,top=50,left=50";
self.name = "main";
if(document.all) {
for (i=0; i<document.links.length; i++) {
if(document.links[i].innerText)

if(document.links[i].innerText != /top of/ )
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].innerText+"</a><br>";
else
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i]+"</a>BLANK<br>" ;
}} else { for (i=0; i<document.links.length; i++) {
if(document.links[i].text) {
if(((document.links[i].text).indexOf("javascript:")) == -1) {
mytext += "<li><a target='_new' href="+document.links[i]+">"+document.links[i].text+"</a>TEXT<br>" ;
}} else { }}}
mytext = mytext + "</ol><center><a href='javascript:window.close()'>close</a></center><br>";
linkswin = window.open("","",windowprops);
with (linkswin.document) { open();
write(myheader + myfont + mytext + myendfont + myendheader);
close(); }}

/*
Copyright Justin Whitford 2006.
  http://www.whitford.id.au/
Perpetual, non-exclusive license to use this code is granted
on the condition that this notice is left in tact.
*/
var delim = '|';
var trailLength = 5;
var chunks;
var DAY = 24 * 60 * 60 * 1000;

function doCrumbs(){
  if(cookieTest('xxx')){
    crumbList = new CrumbList();
    if(getCookie('trailLinks')){
      var staleLinkCrumbs = getCookie('trailLinks').split(delim);
      var staleTextCrumbs = getCookie('trailText').split(delim);
      var startPos=
        (staleTextCrumbs.length<trailLength ||
        document.location==staleLinkCrumbs[staleLinkCrumbs.length-1])
        ?0:1;
      for(i=startPos;i<staleLinkCrumbs.length;i++){
        crumbList.add(staleLinkCrumbs[i],staleTextCrumbs[i]);
}}
    if(document.location!=crumbList.links[crumbList.links.length-1]){
      crumbList.add(document.location,document.title);
}
    setCookie('trailLinks',crumbList.links.join(delim),1);
    setCookie('trailText',crumbList.text.join(delim),1);
    crumbList.output();
}}

function CrumbList(){
  this.links=new Array();
  this.text=new Array();
  this.add = crumbListAdd;
  this.output = crumbListShow;
}
  function crumbListAdd(href,text){
    this.links[this.links.length]=href;
    this.text[this.text.length]=text;
  }
  function crumbListShow(){
    for(var i in this.links){
      if(i==this.links.length-1){
        document.write( ((i==0)?"":" | ") + this.text[i] );
      }else{
        document.write(
          ((i==0)?"":" | ")

+"<a href='" + this.links[i] + "'><font size='-2' color='#c0c0c0'>"
          + this.text[i] + "</font></a>");
} } }


function cookieTest(name){
  try{
    setCookie(name,'true',1);
    chunks = document.cookie.split("; ");
    return (getCookie(name)=='true');
  }catch(e){
    return false;
  }
}

function getCookie(name) {
  var returnVal = null;
  for (var i in chunks) {
    var chunk = chunks[i].split("=");
    returnVal = (chunk[0] == name)
      ?unescape(chunk[1])
      :returnVal;
}
  return returnVal;
}

function setCookie(name, value, days) {
  if (value != null && value != "" && days > 0){
    var expiry=
      new Date(new Date().getTime() + days * DAY);
    document.cookie=
      name +"="+ escape(value) +"; expires="
      + expiry.toGMTString();
    chunks = document.cookie.split("; ");
 }}

document.write('<style fprolloverstyle>A:hover {color: black; }</style>');
document.write('<style> .hint {background-color:oldlace;border:1px solid black;color:black;font-family:Arial;font-size:1em;font-size-adjust:none;margin-left:6px;padding:2px;position:absolute;text-align:left;visibility:hidden;width:300px;}</style>');

