// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/ic-info/images/foundation/index/rotate/sswed-rot1.gif'
Pic[1] = '/ic-info/images/foundation/index/rotate/sswed-rot2.gif'
Pic[2] = '/ic-info/images/foundation/index/rotate/sswed-rot3.gif'
Pic[3] = '/ic-info/images/foundation/index/rotate/sswed-rot4.gif'
Pic[4] = '/ic-info/images/foundation/index/rotate/sswed-rot5.gif'


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

// Other index functions
if (document.images) {
    homebuttonup       = new Image();
    homebuttonup.src   = "/ic-info/images/foundation/become-member/index-home.gif";
    homebuttondown     = new Image() ;
    homebuttondown.src = "/ic-info/images/foundation/become-member/index-home-over.gif";
    viewdemobuttonup       = new Image();
    viewdemobuttonup.src   = "/ic-info/images/foundation/become-member/index-viewdemo.gif";
    viewdemobuttondown     = new Image() ;
    viewdemobuttondown.src = "/ic-info/images/foundation/become-member/index-viewdemo-over.gif";
    whatweofferbuttonup       = new Image();
    whatweofferbuttonup.src   = "/ic-info/images/foundation/become-member/index-whatweoffer.gif";
    whatweofferbuttondown     = new Image() ;
    whatweofferbuttondown.src = "/ic-info/images/foundation/become-member/index-whatweoffer-over.gif";
    viewpricesbuttonup       = new Image();
    viewpricesbuttonup.src   = "/ic-info/images/foundation/become-member/index-viewprices.gif";
    viewpricesbuttondown     = new Image() ;
    viewpricesbuttondown.src = "/ic-info/images/foundation/become-member/index-viewprices-over.gif";
    signupbuttonup       = new Image();
    signupbuttonup.src   = "/ic-info/images/foundation/become-member/index-signup.gif";
    signupbuttondown     = new Image() ;
    signupbuttondown.src = "/ic-info/images/foundation/become-member/index-signup-over.gif";
    benefitsbuttonup       = new Image();
    benefitsbuttonup.src   = "/ic-info/images/foundation/become-member/index-benefits.gif";
    benefitsbuttondown     = new Image() ;
    benefitsbuttondown.src = "/ic-info/images/foundation/become-member/index-benefits-over.gif";
    labfulfillmentbuttonup       = new Image();
    labfulfillmentbuttonup.src   = "/ic-info/images/foundation/become-member/index-labfulfillment.gif";
    labfulfillmentbuttondown     = new Image() ;
    labfulfillmentbuttondown.src = "/ic-info/images/foundation/become-member/index-labfulfillment-over.gif";
    partnersbuttonup       = new Image();
    partnersbuttonup.src   = "/ic-info/images/foundation/become-member/index-partners.gif";
    partnersbuttondown     = new Image() ;
    partnersbuttondown.src = "/ic-info/images/foundation/become-member/index-partners-over.gif";
    newsbuttonup       = new Image();
    newsbuttonup.src   = "/ic-info/images/foundation/become-member/index-news.gif";
    newsbuttondown     = new Image() ;
    newsbuttondown.src = "/ic-info/images/foundation/become-member/index-news-over.gif";
    findphotogbuttonup       = new Image();
    findphotogbuttonup.src   = "/ic-info/images/foundation/become-member/index-findphotog.gif";
    findphotogbuttondown     = new Image() ;
    findphotogbuttondown.src = "/ic-info/images/foundation/become-member/index-findphotog-over.gif";
    aboutusbuttonup       = new Image();
    aboutusbuttonup.src   = "/ic-info/images/foundation/become-member/index-aboutus.gif";
    aboutusbuttondown     = new Image() ;
    aboutusbuttondown.src = "/ic-info/images/foundation/become-member/index-aboutus-over.gif";
    testimonialsbuttonup       = new Image();
    testimonialsbuttonup.src   = "/ic-info/images/foundation/become-member/index-testimonials.gif";
    testimonialsbuttondown     = new Image() ;
    testimonialsbuttondown.src = "/ic-info/images/foundation/become-member/index-testimonials-over.gif";
    contactusbuttonup       = new Image();
    contactusbuttonup.src   = "/ic-info/images/foundation/become-member/index-contactus.gif";
    contactusbuttondown     = new Image() ;
    contactusbuttondown.src = "/ic-info/images/foundation/become-member/index-contactus-over.gif";
}
function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}

// Photographer testimonials
function changeText (photographer) {
    var markQuote1 = '"I shoot for Magazines each month and SEEYOURPHOTOS.net allows me to send the editors there for review purposes."<br> - Mark Baltzley';
    var charlesQuote1 = '"SEEYOURPHOTOS.net is helping me reach people I could never reach before at a reasonable price."<br> - Charles Fisher';
    var leslieQuote1 = '"I appreciate the fast upload speed that SYPN provides - this gives me more time for other areas of my business."<br> - Leslie Bush';
    var cindyQuote1 = '"I am so excited about this website. It is so user friendly and easy to understand. Thank all of you so much for designing such a great website. I know my sales are going to sky rocket."<br> - Cindy Drawhorn';

    var quoteHTML = document.getElementById('photogQuote');
    if (photographer == 'charles1') {
	quoteHTML.innerHTML = charlesQuote1;
    } else if (photographer == 'mark1') {
	quoteHTML.innerHTML = markQuote1;
    } else if (photographer == 'leslie1') {
	quoteHTML.innerHTML = leslieQuote1;
    } else if (photographer == 'cindy1') {
	quoteHTML.innerHTML = cindyQuote1;
    }
}

