// JavaScript Document

/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/various/tabbed_pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */



function start() {
	
	
}
window.onload = start;

function sh(id) { 
   
   var which = document.getElementById(id); 
   
   if (which.className=="show") { 
      which.className="hide"; 
   } 
   else { 
      if (which.className=="hide") { 
      which.className="show"; 
      } 
   } 
} 


function jumpto(x){

if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}

//Date used for the copyright
var now = new Date();
var year = now.getFullYear();



// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'london.jpg'
theImages[1] = 'shanghai.jpg'
theImages[2] = '2008 AR Cover.jpg'
theImages[3] = 'boston.jpg'
theImages[4] = 'NYSE.jpg'
theImages[5] = 'ny.jpg'
theImages[6] = '08scroll.jpg'

//theImages[2] = '07trader.jpg'





//theImages[9] = 'eu1.jpg'
//theImages[10] = 'eu2.jpg'
//theImages[11] = 'france.jpg'
//theImages[12] = 'goldengate.jpg'
//theImages[13] = 'madrid.jpg'
//theImages[14] = 'paris.jpg'
//theImages[15] = 'rome.jpg'
//theImages[16] = 'seoul.jpg'
//theImages[17] = 'singapore.jpg'
//theImages[18] = 'sydney.jpg'
//theImages[19] = 'zurich.jpg'



// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="http://media.corporate-ir.net/media_files/irol/95/95364/images/'+theImages[whichImage]+'">');
}

// Images for Desktop Solutions Page Rotation

var theDesktopImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theDesktopImages[0] = 'about.jpg'
theDesktopImages[1] = 'france2.jpg'

// do not edit anything below this line

var j = 0
var p = theDesktopImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theDesktopImages[i]
}
var DesktopImage = Math.round(Math.random()*(p-1));


function showDesktopImage(){
document.write('<img src="../images/'+theDesktopImages[DesktopImage]+'">');
}

// Images for the Pricing Services & Fair Value Information Services Rotations

var thePricingImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

thePricingImages[0] = 'german2.jpg'
thePricingImages[1] = 'flags2.jpg'
thePricingImages[2] = 'nyse2.jpg'

// do not edit anything below this line

var j = 0
var p = thePricingImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = thePricingImages[i]
}
var PricingImage = Math.round(Math.random()*(p-1));


function showPricingImage(){
document.write('<img src="../images/'+thePricingImages[PricingImage]+'">');
}

var theFairValueImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theFairValueImages[0] = 'german2.jpg'
theFairValueImages[1] = 'flags2.jpg'
theFairValueImages[2] = 'nyse2.jpg'

// do not edit anything below this line

var j = 0
var p = theFairValueImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theFairValueImages[i]
}
var FairValueImage = Math.round(Math.random()*(p-1));


function showFairValueImage(){
document.write('<img src="images/'+theFairValueImages[FairValueImage]+'">');
}

// Derivatives Services Rotation

var theDerivativesImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theDerivativesImages[0] = 'madrid2.jpg'
theDerivativesImages[1] = 'london2.jpg'
theDerivativesImages[2] = 'france2.jpg'

// do not edit anything below this line

var j = 0
var p = theDerivativesImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theDerivativesImages[i]
}
var DerivativesImage = Math.round(Math.random()*(p-1));


function showDerivativesImage(){
document.write('<img src="../images/'+theDerivativesImages[DerivativesImage]+'">');
}

//Support Dynamic Dropdowns

function setOptions(chosen) {
var selbox = document.myform.opttwo;
 
selbox.options.length = 0;
if (chosen == " ") {
  selbox.options[selbox.options.length] = new Option('Please select one of the options above first',' ');
 
}
if (chosen == "1") {
  selbox.options[selbox.options.length] = new Option('U.S. and Canada','americas_pricing.html');
  selbox.options[selbox.options.length] = new Option('Europe','europe_pricing.html');
  selbox.options[selbox.options.length] = new Option('Asia Pacific','asia_pricing.html');
}
if (chosen == "2") {
  selbox.options[selbox.options.length] = new Option('U.S. and Canada','americas_services.html');
  selbox.options[selbox.options.length] = new Option('Europe','europe_services.html');
  selbox.options[selbox.options.length] = new Option('Asia Pacific','asia_services.html');
}
if (chosen == "3") {
  selbox.options[selbox.options.length] = new Option('Region:','managed_solutions.html');
}
if (chosen == "4") {
  selbox.options[selbox.options.length] = new Option('U.S. and Canada','americas_fixed_income.html');
}

}
