/* ---------------------------------------------
  supress errors
-----------------------------------------------*/

function stopError() {
  return true;
}
window.onerror = stopError;



/* BROWSER SNIFFER */
  bName = navigator.appName;
  bVer = parseInt(navigator.appVersion);
  if(bName == "Netscape" && bVer >= 4)br = "n4";
  else if(bName == "Netscape" && bVer == 3)br = "n3";
  else if(bName == "Microsoft Internet Explorer" && bVer == 4)br = "e4";
  else if(bName == "Microsoft Internet Explorer")br = "e3";
  else br="n2";


// =============================================================================

var barcolor="aqua";

// ===================================================================



  /* if Explorer 4 or higher = FULL PromotionBar */
    if(br =="e4"){
      document.write('<form action="http://coolanimalproducts.com/pb/recommend.cgi" method="get" name="recommend"><input type=hidden name="page_title" value="'+top.document.title+'">');
      document.write('<table width=100% bgcolor=navy border=0 cellpadding=0 cellspacing=0><tr><td id=slidearea style=font:8pt,arial;color:white onmouseover=slidearea.style.backgroundColor="blue" onmouseout=slidearea.style.backgroundColor="navy"><marquee id=slider behavior=slide direction=left height=1 scrollamount=5 scrolldelay=100 hspace=0 vspace=0 style=cursor:default><b>&nbsp;&nbsp;'+top.document.title.toUpperCase()+'</b></marquee><td align=right width=25%><a style=font:8pt,arial;color:white;cursor:hand;background:black;text-decoration:none onmouseover=event.srcElement.style.backgroundColor="red" onmouseout=event.srcElement.style.backgroundColor="black" href=http://coolanimalproducts.com/pb/ target=_blank><font style=font:10pt,wingdings>*</font><u>&nbsp;Get Your Promotion Bar&nbsp;</u></a></td>');
      document.write('<tr onmouseover=event.srcElement.style.backgroundColor="00ffff";window.status="SuccessPub" onmouseout=event.srcElement.style.backgroundColor="'+barcolor+'">');
      document.write('<td id=mainbar colspan=2 align=center style=color:black;font:8pt,arial;cursor:help;background:'+barcolor+'><span id=addfav1 style=cursor:hand onclick=window.external.AddFavorite(top.location.href,top.document.title);><span id=addfav2 style=font:14pt,wingdings;color:red>1</span> <span id=addfav3 style=color:black;font:8pt,arial;cursor:hand;background:'+barcolor+'>Add this page to Favorites</span></span> &nbsp; <span id=recommend1 style=cursor:hand onClick="javascript:document.recommend.submit();"><span id=recommend2 style=font:14pt,wingdings;color:red>*</span> <span id=recommend3 style=color:black;font:8pt,arial;cursor:hand;background:'+barcolor+'>Share it with a Friend</span></span> &nbsp; <span id=sethome1 style=cursor:hand onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(top.location.href)"><span id=sethome2 style=font:14pt,wingdings;color:red>:</span> <span id=sethome3 style=color:black;font:8pt,arial;cursor:hand;background:'+barcolor+'>Make&nbsp;it&nbsp;your&nbsp;Homepage!</span></span></td></tr></table>');
      document.write('</form>');
    }

  /* if Netscape 4 or higher = partial PromotionBar (no add2favs) */
    else if(br =="n4"){
      document.write('<form action="http://coolanimalproducts.com/pb/recommend.cgi" method="get"><input type=hidden name="page_title" value="'+top.document.title+'"><table width=100% bgcolor=navy border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=navy><font face=arial color=white size=2><b> &nbsp;'+top.document.title+'</b></font></td><td align=right width=25%><a href=http://coolanimalproducts.com/pb/ target=_blank><font face=wingdings size=2 color=white>*</font><font face=arial size=2 color=white><b><u>&nbsp;Get Your Promotion Bar&nbsp;</u></b></font></a></td>');
      document.write('</tr><tr bgcolor=aqua>');
      document.write('<td colspan=2 align=center bgcolor=aqua><input type=submit value="Click here to share this page with a friend !"></td></tr></table><br></form>');
    }

  /* if Netscape 3 = partial PromotionBar (no add2favs) */
    else if(br =="n3"){
      document.write('<form action="http://coolanimalproducts.com/pb/recommend.cgi" method="get"><input type=hidden name="page_title" value="'+top.document.title+'"><table width=100% bgcolor=navy border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=navy><font face=arial color=white size=2><b> &nbsp;'+top.document.title+'</b></font></td><td align=right width=25%><a href=http://coolanimalproducts.com/pb/ target=_blank><font face=wingdings size=2 color=white>*</font><font face=arial size=2 color=white><b><u>&nbsp;Get Your Promotion Bar&nbsp;</u></b></font></a></td>');
      document.write('</tr><tr bgcolor=aqua>');
      document.write('<td colspan=2 align=center bgcolor=aqua><input type=submit value="Click here to share this page with a friend !"></td></tr></table><br></form>');
    }

  /* if Explorer 3 = partial PromotionBar (no add2favs) */
    else if(br =="e3"){
      document.write('<form action="http://coolanimalproducts.com/pb/recommend.cgi" method="get"><input type=hidden name="page_title" value="'+top.document.title+'"><table width=100% bgcolor=navy border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=navy><font face=arial color=white size=2><b> &nbsp;'+top.document.title+'</b></font></td><td align=right width=25%><a href=http://coolanimalproducts.com/pb/ target=_blank><font face=wingdings size=2 color=white>*</font><font face=arial size=2 color=white><b><u>&nbsp;Get Your Promotion Bar&nbsp;</u></b></font></a></td>');
      document.write('</tr><tr bgcolor=aqua>');
      document.write('<td colspan=2 align=center bgcolor=aqua><input type=submit value="Click here to share this page with a friend !"></td></tr></table><br></form>');
    }

  /* if other browser = ??? */
    else{
      alert ('You are using a browser other than NS & IE.  if you want to see the SuccessPub PromotionBar in action, you should get IE5'); 
      document.write('unable to display Promotion Bar');
    }

/* Color Cycler */

CycleCount=0;

CO = new Array(10);
CO[0]="#ffffff";
CO[1]="#ffcc66";
CO[2]="#00ffff";
CO[3]="#ffff00";

function ColorCycler(){
  slider.style.color=CO[CycleCount++];
    if(CycleCount>3){
  CycleCount=0;
}

setTimeout("ColorCycler()",1000);
  }

ColorCycler();
