quotes = [ 
'"Florentis combines first class development skills with excellent market knowledge.  This, along with their \
commitment to the project and hands-on approach make them a pleasure to do business with. " \
 ( Julie Lester Project Manager, Business Improvement Team at Nationwide Building Society ) ',

'"As the recognised global leader in biometric signature verification and e-signature technologies, CIC is\
selective in the relationships that we establish with third party software vendors.\
Florentis has proven to be extremely knowledgeable in our technological field, highly capable as a\
development partner and equally professional. " \
( Russ Davis, VP Product Development & Support at Communication Intelligence Corp )',

'"MotionTouch have partnered with Florentis because they are the unrivalled leaders in signature capture software development and have the in-house knowledge to help us develop next generation signature solutions" \
( Henry Powell, Director at MotionTouch Ltd )',

'"Florentis has an excellent reputation for providing top quality electronic signature software, services and customer support.  Wacom are delighted to be partnering with Florentis to provide the hardware required for signature capture." \
( Rolf Schroder, Manager EMEA at Wacom Europe GmbH )'
]

// Not to be modified

function attachEvent( item, evt, func ) {
  if( !item ) return;
  if( item.addEventListener ) {
    document.addEventListener( evt, func, false );
  } else if( item.attachEvent ) {
    document.attachEvent( "on" + evt, func );
  } else {
    // Could not attach event
  }
}

function attachLoadEvent( func ) {
  if( document && document.addEventListener ) {
    document.addEventListener( "DOMContentLoaded", func, false );
  } else if( document && document.attachEvent ) {
    document.attachEvent( "onreadystatechange", func );
  } else if( window && window.addEventListener ) {
    window.addEventListener( "onload", func, false );
  } else {
    // Could not attach event
  }
}

function replaceQuote( ) {
  if( !document.readyState || ( document.readyState && document.readyState == "complete" ) ) {
    var x = document.getElementById( 'quote' );
    x.innerHTML = quotes[ Math.floor( Math.random()* quotes.length ) ];
  }
}

 function exp(loc){
  if(document.getElementById) {
    var foc = loc.firstChild;
    foc = loc.firstChild.innerHTML?loc.firstChild:loc.firstChild.nextSibling;
    var sym = foc.innerHTML = foc.innerHTML == '+'?'-':'+';
    foc = loc.nextSibling.style?loc.nextSibling:loc.nextSibling.nextSibling;
    foc.style.display = ( sym == '+' ) ? 'none' : 'block';
  }
}

function cls( loc ) {
  var ch = document.getElementById( 'content' ).firstChild;
  while( ch ) {
    if( ch.className && ch.className == "Collapsible" ) {
      var e = ch.getElementsByTagName( "span" )[0];
      if ( e.innerHTML == '-' ) {
        e = ch.firstChild.className? ch.firstChild:ch.firstChild.nextSibling;
        if( e != loc ) {
          exp( e );
        }
      }
    }
    ch = ch.nextSibling;
  }
}

function clear( ) {
  var btn = document.getElementById( 'buttonrow' ).firstChild;
  var col = document.getElementById( 'content' ).firstChild;
  while( col || btn ) {
    if( col ) {
      if( col.className.search( /Collapsible/i ) != -1 ) col.className = "Collapsible Hidden";
      col = col.nextSibling;
    }
    if( btn ) {
      btn.className = "";
      btn = btn.nextSibling;
    }    
  }
}

function sw( selbtn, loc ) {
  var btn = document.getElementById( 'buttonrow' ).firstChild;
  var col = document.getElementById( 'content' ).firstChild;
  while( col || btn ) {
    if( col ) {
      if( col.className && col.className.search( /Collapsible/i ) != -1 ) {
        if( col.id == loc ) {
          col.className = "Collapsible Shown";
        }
        else {
          col.className = "Collapsible Hidden";
        }
      }
      col = col.nextSibling;
    }
    if( btn ) {
      if( btn.nodeName.toLowerCase() == "a" && btn.className ) {
        btn.className = "";
      }
      btn = btn.nextSibling;
    }
  }
  selbtn.className = "selected";
}

function swImg( item ) {
  var img = document.getElementById( 'img' );
  img.className = "img " + item;
}

//attachLoadEvent( replaceQuote );