window.name = "markstrub";
if (document.all || document.getElementById){ //if IE4 or NS6+
document.write('<style type="text/css">\n')
document.write('.testimonial, #quote .testimonial { display:none; width:150px; height:100px; }')
document.write('</style>')
}

var curcontentindex=0
var messages=new Array()

function getElementByClass(classname){
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
messages[inc++]=alltags[i]
}
}

/*
<!-- Original: Craig Lumley -->
<!-- Distributed by http://www.hypergurl.com 
Begin ie4 = ((navigator.appVersion.indexOf("MSIE")>0) && 
(parseInt(navigator.appVersion) >= 4));
var count = 0, count2 = 0, add1 = 3, 
add2 = 10, timerID;
function show() {
  if (ie4) { 
    count += add1; count2 += add2; 
    delay = 30; if(count2 > 100) count2 = 100;
    if(count > 100) {
        count = 100; 
        add1 = -10;
        add2 = -3;
        delay = 350;
   }
   if(count < 0) count = 0;
   if(count2 < 0) { 
        count2 = 0;
        add1 = 3;
        add2 = 10;
        delay = 200;
   } 
   return "Alpha(Opacity="+count2+",FinishOpacity="+count+",style=2)"; 
   timerID = setTimeout("show()", delay);
  }
}
*/

function rotatecontent(){
//get current message index (to show it):
curcontentindex=(curcontentindex<messages.length-1)? curcontentindex+1 : 0
//get previous message index (to hide it):
prevcontentindex=(curcontentindex==0)? messages.length-1 : curcontentindex-1
messages[prevcontentindex].style.display="none" //hide previous message
messages[curcontentindex].style.display="block" //show current message
// messages[curcontentindex].style.filter=show() //fade current message
}


window.onload=function(){
if (document.all || document.getElementById){
getElementByClass("testimonial")
setInterval("rotatecontent()", 15000)
}
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 }
}