
	function onArrow(sImg) {
	    //document.images['arrow'+arrow].src='images/index/BarArrow-over.gif'
		var img = document.images[sImg];
		var imgo = document.images[sImg + 'o'];
		var imgOn = document.images[sImg + 'On'];
		var imgOff = document.images[sImg + 'Off'];
		if (img.style) {
		  img.style.display='none';
		  imgo.style.display='block';
		} else if (img.display) {
		  img.display='none';
		  imgo.display='block';
		} else {
		  if (sImg.substring(0,5)=='arrow') {
	        document.images[sImg].src=document.images.arrowOn.src;
		  } else {
	        document.images[sImg].src=document.images[sImg + 'On'].src;
		  }	
		}				
	}
	function offArrow(sImg) {
	    //document.images['arrow'+arrow].src='images/index/BarArrow.gif'
		var img = document.images[sImg];
		var imgo = document.images[sImg + 'o'];
		var imgOn = document.images[sImg + 'On'];
		var imgOff = document.images[sImg + 'Off'];
		if (img.style) {
		  img.style.display='block';
		  imgo.style.display='none';
		} else if (img.display) {
		  img.display='block';
		  imgo.display='none';
		} else {
		  if (sImg.substring(0,5)=='arrow') {
	        document.images[sImg].src=document.images.arrowOff.src;
		  } else {
	        document.images[sImg].src=document.images[sImg + 'Off'].src;
		  }	
		}			
	}
	  
	  
function showLinkLocal(page) {
  var menuFrame='menu';
  var headerFrame='header';
  var fr;
  var frHead;
  var d;
  var ls;
  var l;
  
  for (var i=0; i<top.frames.length; i++) {
    if (top.frames[i].name==menuFrame){
	    fr=top.frames[i];
	    break;
	  }
  }
  
  for (var i=0; i<top.frames.length; i++) {
    if (top.frames[i].name==headerFrame){
	    frHead=top.frames[i];
	    break;
	  }
  }
  
  if(fr){
    d=fr.document;
	  ls=d.anchors;
    for (var i=0; i<ls.length;i++) {
	    l=ls[i];
	    if (l.style) {
	      if (l.name.indexOf('On')>=0) {
	        if (l.name.indexOf(page)>=0) {
	          l.style.display='inline';
		      } else {
	          l.style.display='none';
		      }
	      } else {
	        if (l.name.indexOf(page)>=0) {
	          l.style.display='none';
		      } else {
	          l.style.display='inline';
		      }	    
	      }
	    }  
    }
	  if (page=='NewstoNote') {
	    fr.showThing('n2n','showSubMenu');
	  } else if (page=='FraudLawUpdates') {
	    fr.showThing('fl','showSubMenu');
	  } else if (page=='Products') {
	    fr.showThing('pr','showSubMenu');
	  } else if (page=='MembersOnly') {
	    fr.showThing('mo','showSubMenu');
	  } else if (page=='Levitts') {
	    fr.showThing('lc','showSubMenu');
	  } else if (page=='ChapterNews') {
	    fr.showThing('cn','showSubMenu');
	  }
	
	  if(frHead){
	    if (page=='Conference') {
	      frHead.showThing('sponsors');
	    } else {
	      frHead.showThing('sponsors','hide');
	    }
	  }  
  }
}    


    function findObj(nm){
      var o;
      d=document;
      if(d.getElementById) {
            o=d.getElementById(nm);
      } else {
            if (d.Layers) {
              o=d.Layers[nm];
            } else {
              o=d[nm];
            }
      }
      return o;
    }
	
	
	function showThing(thing,hide) {
  	  var o=findObj(thing);
	  if(hide) {
        if(o) { 
  	      if(o.style) {
  		    o=o.style;
			if (hide=='special') {
			  if (o.display=='none') {
			    dp='block';
			  } else {
			    dp='none';
			  }
			} else if (hide=='showSubMenu') {
			  dp='block';
			} else {
			  dp='none';
			} 
			o.display=dp;
  		  } else {
			if (hide=='special') {
			  if (o.display=='none') {
			    dp='block';
			  } else if (hide=='showSubMenu') {
			    dp='block';
			  } else {
			    dp='none';
			  }
			} else {
			  dp='none';
			}  
			o.display=dp;
  		  }
  	    }
	  } else {
        if(o) { 
  	      if(o.style) {
  		    o=o.style;
			o.display='block';
  		  } else {
			o.display='block';
  		  }
  	    }
	  }	
	}


function writeE(a,b,c,d) {
  var eA = a + b + c + d;
  var eL = "mailto:" + eA;
  document.write('<a href="' + eL + '">' + eA + '</a>');
}
function writeEL(emLink,a,b,c,d) {
  var eA = a + b + c + d;
  var eL = "mailto:" + eA;
  document.write('<a href="' + eL + '">' + emLink + '</a>');
}
function writeA(a,b,c,d) {
  var eA = a + b + c + d;
  var eL = "http://" + eA;
  document.write('<a target="_new" href="' + eL + '">' + eA + '</a>');
}

function popUpWindow(url, windowName, width, height) {
    var winprops = '';
	var rSize = 'no';
	var sBars = 'no';	
	
	
    if (screen.height < height - 10) {
	  height = screen.height -10;
	  rSize = 'yes'
	  sBars = 'yes';
    }
	
	
    if (screen.width < width - 10) {
	  width = screen.width - 10;
	  rSize = 'yes'
	  sBars = 'yes';
    }
	  
    var wLeft = (screen.width - width) / 2;
    var wTop = (screen.height - height) / 2;
	
	winprops = 'width=' + width +
	           ',height=' + height +  
	           ',left=' + wLeft +  
	           ',top=' + wTop +   
	           ',scrollbars=' + sBars + 
	           ',toolbars=no' + 
	           ',resizable=' + rSize + 
	           ',location=no' + 
	           ',menubars=no';
  
    window.open(url,windowName,winprops);
  
  }
  
function getImageStr(str) {
  
  alert('getImageStr');
  theleft = str.indexOf('/images/') + 8;
  theright = str.length; //str.lastIndexOf('.');

  //alert(str.substring(theleft, theright));
  return(str.substring(theleft, theright));

}
