﻿<!---
var slideNames = new Array("business", "technology", "value", "customers", "results");
var slidePitch = new Array(slideNames.length);

var galleryHandle;
function nextGallerySlide (HandleID, path)
{
   var currentSlide;
   
   currentSlide = galleryHandle.getCurrentSlide() - 1;
   
   crossfade(HandleID, path, '3', slideNames[currentSlide]);
   document.getElementById("pr-title").innerHTML = slideNames[currentSlide].toUpperCase();
   document.getElementById("pr-pitch").innerHTML = slidePitch[slideNames[currentSlide]];   
}
   
function setupGallery(divName)
{
   var d = new Array(5);
   
   slidePitch["business"] = "It's About<br/> Revenue.<br/>Profit.<br/>Growth.<br/>Investment Return.";
   slidePitch["technology"] = "Deployed for Business Goals.<br/>To Add Value.<br/>Not for it's Own Sake.<br/><br/><span style='color:black'>We Get That.</span>";
   slidePitch["value"] = "More than Technology.<br/>It's About Process.<br/>Integration.<br/>Solutions.<br/><br/>Fitting the Pieces Together.";
   slidePitch["customers"] = "And It's About<br/>Reaching Your Customers.<br/><br/>Getting Your Message Across.<br/>Aquisition & Retention.";
   slidePitch["results"] = "Internet Experts<br/>That Speak Business.<br/><br/>Talk to Us.<br/><br/><span style='color:black; line-height: 15px'>(888) 4-Z-BRAND</span><span style='font-size:2px'><br/></span><span style='font-size: 14px'>(888) 492-7263</span>";
   
   d[0] = 'images';
   d[1] = new Array ("business-slide.jpg", "technology-slide.jpg", "value-slide.jpg", "customers-slide.jpg", "results-slide.jpg");
   d[2] = divName;
   d[3] = 5000;
   d[4] = 1;
   d[5] = null;
   d[6] = 1;
   d[7] = nextGallerySlide; 
   d[8] = null;    
   galleryHandle = new imageSlideShow(d);
   galleryHandle.startSlideShow();
}

function setupGalleryWithButtons(divName)
{
   var d = new Array(5);
   
   d[0] = 'Images/gallery';
   d[1] = new Array ("smba1.jpg", "smba3.jpg", "smba4.jpg", "smba5.jpg", "smba6.jpg", "smba7.jpg", "smba8.jpg", "smba9.jpg", "smba10.jpg");
   d[2] = divName;
   d[3] = 4000;
   d[4] = 1;
   d[5] = null;
   d[6] = 1;
   d[7] = null; 
   d[8] = activateStopButton;    
   galleryHandle = new imageSlideShow(d);
   galleryHandle.startSlideShow();
}

   function activatePlayButton()
   {
      addClassName("gallery-button-play-link", "gallery-active-button");
      removeClassName("gallery-button-stop-link", "gallery-active-button");
   }
   
   function activateStopButton()
   {
      addClassName("gallery-button-stop-link", "gallery-active-button");
      removeClassName("gallery-button-play-link", "gallery-active-button");
   }

   function addClassName(e,t)
   {
      if (typeof e == "string")
         e = document.getElementById(e);

      // code to change and replace strings
      // regular expression dumps leading/trailing spaces
      var ec = ' ' + e.className.replace(/^s*|s*$/g, '') + ' ';
      var nc = ec;
      t = t.replace(/^s*|s*$/g, '');

      // check if not already there
      if (ec.indexOf(' ' + t + ' ') == -1)
         nc = ec + t;     // not found, add it

      // return the changed text!
      e.className = nc.replace(/^s*|s*$/g, ''); // trimmed whitespace
      return true;
   }
   
   function removeClassName(e,t)
   {
      if (typeof e == "string")
        e = document.getElementById(e);
 
      // code to change and replace strings
      // regular expression dumps leading/trailing spaces      
      var ec = ' ' + e.className.replace(/^s*|s*$/g, '') + ' ';
      var nc = ec;
      t = t.replace(/^s*|s*$/g,'');
      
      // check if not already there
      if (ec.indexOf(' ' + t + ' ') != -1)      
         nc = ec.replace(' ' + t.replace(/^s*|s*$/g, '') + ' ', ' ');  //found, so lets remove it

      // return the changed text!
      e.className = nc.replace(/^s*|s*$/g,''); //trimmed whitespace
      return true;
   }
-->
