/*---------------------------------------------------------------------*/
/* Testimonials fade effect */
/*---------------------------------------------------------------------*/
var t;
var t1;
 function setMessage(ele) {
  var slide = new Array();
  // Below are the sequence testimonials . You can change the description , name ,company name and also the link for the company name. 
  // To add more testimonials just copy the first testimonial (slide[0]) and paste it in last and change the index and contents.
  slide[0]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> Webmasterdiscounts.com opened quite some doors for the webmaster community so we thank you for that. </p><p class=\"name\"><strong><a target=_blank href='http://www.avatarsearch.com'>AvatarSearch.com</a></strong></p>" ;
  slide[1]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> I especially love your special offers part. :-) Discounts are great too. I had to pay more for the submissions before. </p><p class=\"name\"><strong><a rel='nofollow' target=_blank href='http://www.lawyeraddresses.com'>LawyerAddresses.com</a></strong></p>" ;
  slide[2]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> This site is amazing! I can't stop coming back here every single day! </p><p class=\"name\"><strong><a target=_blank href='http://www.templateboost.com'>TemplateBoost.com</a></strong></p>" ;
  slide[3]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> We were surprised you give away so much just to attract members. Right on! </p><p class=\"name\"><strong><a target=_blank href='http://www.archicentral.com'>archiCentral.com</a></strong></p>" ;
  slide[4]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> Thanks for your discounts. We are making more money now because we could cut our expenses a bit. </p><p class=\"name\"><strong><a target=_blank href='http://www.reciprocalmanager.com'>ReciprocalManager.com</a></strong></p>" ;
  slide[5]="<p><img src=\"temp_img/ql.jpg\" alt=\"\" width=\"20\" height=\"20\" /> I am glad I don't need to look for the latest anymore, you guys really deliver! </p><p class=\"name\"><strong><a rel='nofollow' target=_blank href='http://www.allseasonlimos.com'>AllSeasonLimos.com</a></strong></p>" ;

  if(ele==6)
    ele=0;
    
  callme(slide[ele]);  
  $("testimonial1").appear(1000); // Here 1000 = 1 second. To change the fade effect time for testimonials.  
  
  ele++;
  t=setTimeout('setMessage('+ele+')',7000); // Here 10000 = 10 seconds. To change the interval between testimonials.  
}

function callme(ele){
  document.getElementById('testimonial1').innerHTML=ele;
  document.getElementById('testimonial1').style.display="none";
}

/*---------------------------------------------------------------------*/
/* Banner fade effect */
/*---------------------------------------------------------------------*/
 function setImags(ele) {
  var banner = new Array();
  // Below are the sequence of banners. To add more banners just copy the first banner and paste it in last and change the index and image name .
  banner[0]="<a target=_blank href='http://www.mobilestorm.com'><img src=\"temp_img/0mobilestorm.gif\" alt=\"Mobile Marketing\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[1]="<a target=_blank href='http://www.htmlarea.com'><img src=\"temp_img/1htmlarea.gif\" alt=\"Wisiwyg Editors\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[2]="<a target=_blank href='http://www.alternativeenergy.com'><img src=\"temp_img/2ae.gif\" alt=\"Alternative Energy\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[3]="<a target=_blank href='http://www.ddir.org'><img src=\"temp_img/2ddir.gif\" alt=\"Designers Directory\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[4]="<a target=_blank href='http://www.dilorom.com'><img src=\"temp_img/3dilorom.gif\" alt=\"Handmade Jewelry\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[5]="<a target=_blank href='http://www.paiddirectorylist.com'><img src=\"temp_img/4pdl.gif\" alt=\"Paid Directories\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[6]="<a target=_blank href='http://www.tutorialdash.com'><img src=\"temp_img/5td.gif\" alt=\"Webmaster Tutorials\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[7]="<a target=_blank href='http://www.mobilemarketingwatch.com'><img src=\"temp_img/6mmw.gif\" alt=\"Mobile Marketing Watch\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[8]="<a target=_blank href='http://www.bizfive.com'><img src=\"temp_img/7bizfive.gif\" alt=\"Business Directory\" width=\"241\" height=\"52\" border=\"0\" /></a>";
  banner[9]="<a href='/case-studies.html'><img src=\"temp_img/7others.gif\" alt=\"SEO Consulting Case Studies\" width=\"241\" height=\"52\" border=\"0\" /></a>";  
  
  if(ele==10)
    ele=0;
    
  callImg(banner[ele]);  
  $("cbanner").appear(1000); // Here 1000 = 1 second. To change the fade effect time for banner. 
  
  ele++;
  t1=setTimeout('setImags('+ele+')',4000); // Here 10000 = 10 seconds. To change the interval between banners.
}

function callImg(ele){
  document.getElementById('cbanner').innerHTML=ele;
  document.getElementById('cbanner').style.display="none";
}

function startMessage(){
   setMessage(0);
   setImags(0);
}
