var image1 = new Image();
image1.src = "img/menu_hov.gif";
var image2 = new Image();
image2.src = "img/menu_sel.gif";
 
function btnHover(id){
 var el = document.getElementById(id);
 var bgi = el.style.backgroundImage;
 
 if(bgi=="url(img/spacer.gif)"){
  el.style.backgroundImage="url(img/menu_hov.gif)";
  el.style.color="#0E2D90";
 }else if(bgi=="url(img/menu_sel.gif)"){
  return;
 }else{
  el.style.backgroundImage="url(img/spacer.gif)";
  el.style.color="#5B70B2";
 }
}
 
function startPolling(){
 setInterval("poll()",500);
}
 
function poll(){
 var docheight = document.body.clientHeight - 184;
 var elheight = document.getElementById("test").offsetHeight;
 var el = document.getElementById("rule");
 if(docheight < elheight){
  el.style.display = "block";
 }else{
  el.style.display = "none";
 }
 
 return true;
}


var newWindow = null;

function closeWin(){
if (newWindow != null){
if(!newWindow.closed)
newWindow.close();
}
}

function popUpWin(url, type, strWidth, strHeight){

closeWin();

if (type == "fullScreen"){

strWidth = screen.availWidth - 700;
strHeight = screen.availHeight - 550;
}

var tools="";
if (type == "standard" || type == "fullScreen") tools = "toolbar=no,location=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight +",top=0,left=0";
if (type == "console") tools = "toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0 ";
newWindow = window.open(url, 'newWin', tools);
newWindow.focus();
}

function start() {
	startPolling();
	altercontent();
}

function openpage()
{
window.open('img/seerecall_img2.png','jav','width=725,height=515 0,resizable=no,left=0,top=0');
}  

    var mycontent=new Array()
    mycontent[0]='<div id="one" class="menutestimonial">&#034;Brevium has helped us bring back several thousand patients for far less than we would have spent to develop this process on our own.&#034;<span class="signature">Suzanne Bruno<br><span class="signature2"> Horizon Eye Care<br> Margate, NJ</span></span></div>'
    mycontent[1]='<div id="two" class="menutestimonial">&#034;Results are instantaneous! ... reporting is amazing... refreshingly innovative and long overdue.&#034;<span class="signature"> Roxanne Sekula<br><span class="signature2"> St. Luke&#039;s Cataract & Laser Institute<br> Tarpon Springs, FL</span></span></div>'
    mycontent[2]='<div id="three" class="menutestimonial">&#034;The most efficient use of marketing dollars I&#039;ve seen in my 10 years of ophthalmology management.&#034;<span class="signature"> Rod Roeser<br><span class="signature2"> Horizon Eye Care<br> Charlotte, NC</span></span></div>'
    mycontent[3]='<div id="four" class="menutestimonial">&#034;To date... we have a 2900&#043;&#037; ROI with this program. Can&#039;t say that about too many things.&#034;<span class="signature"> Christina Kennelley<br><span class="signature2"> Shepherd Eye Center<br> Las Vegas, NV</span></span></div>'
    mycontent[4]='<div id="five" class="menutestimonial">&#034;Instant return on investment... low start-up and overhead cost... exceptional customer service... one of the best business decisions we&#039;ve made.&#034;<span class="signature"> Mike Wyrick<br><span class="signature2"> Discover Vision Center<br> Kansas City, MO</span></span></div>'
    var i=0
  
function altercontent(){
  if (document.all)
    testimonial.innerHTML=mycontent[i];
  else if (document.getElementById){
    rng = document.createRange();
    el = document.getElementById("testimonial");
    rng.setStartBefore(el);
    htmlFrag = rng.createContextualFragment(mycontent[i]);
  while (el.hasChildNodes()) el.removeChild(el.lastChild);
    el.appendChild(htmlFrag);
    }

  i=(i==mycontent.length-1)? 0 : i+1
  setTimeout("altercontent()", 6000)

}