// for symbol lookup
/*

                        var name;
                        var value;
                        var href = document.location.href;
                        if ( href.indexOf( "?") != -1)
                        {
                                var params = href.split( "?")[1];
                                var param = params.split("&");
                                for (var i = 0; i < param.length; ++i)
                                {
                                        name = param[i].split( "=")[0];
                                        value = param[i].split( "=")[1];
                                }
                        }
                       
                        function UpdateIFrameSource()
                        {
                                var url="http://www.showcase.idmanagedsolutions.com/markets/demo/rts/snapshot.html?SYMBOL=" + value;
                                document.getElementById("IDMS_IFRAME").src = url;
                        } 
*/



function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

// JavaScript Documentonload = function() {
	function tabs() {
	var e, i = 0;
	while (e = document.getElementById('gallery').getElementsByTagName ('DIV') [i++]) {
		if (e.className == 'tab_on' || e.className == 'tab_off') {
		e.onclick = function () {
			var getEls = document.getElementsByTagName('DIV');
				for (var z=0; z<getEls.length; z++) {
				getEls[z].className=getEls[z].className.replace('tab_show', 'tab_hide');
				getEls[z].className=getEls[z].className.replace('tab_on', 'tab_off');
				}
			this.className = 'tab_on';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "tab_show";
			}
		}
	}
}

function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


function start() {
	tabs();
	montre();
	
}
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();


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// 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] = '7.jpg'
theImages[1] = 'BKBridge.jpg'
theImages[2] = 'chicago.jpg'
theImages[3] = 'france.jpg'
theImages[4] = 'eu2.jpg'
theImages[5] = 'eu1.jpg'
theImages[6] = 'goldengate.jpg'
theImages[7] = 'london.jpg'
theImages[8] = 'madrid.jpg'
theImages[9] = 'ny.jpg'
theImages[10] = 'paris.jpg'
theImages[11] = 'rome.jpg'
theImages[12] = 'seoul.jpg'
theImages[13] = 'shanghai.jpg'
theImages[14] = 'singapore.jpg'
theImages[15] = 'sydney.jpg'
theImages[16] = 'zurich.jpg'
theImages[17] = 'boston.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="/images/centerpiece/'+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/centerpiece/'+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]+'">');
}

//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('','managed_solutions.html');
}
if (chosen == "4") {
  selbox.options[selbox.options.length] = new Option('U.S. and Canada','americas_fixed_income.html');
}

}

