// 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'

var altText = new Array() //do not change this
//add alt tag content for new images by following the pattern below
//make sure the sequence number of the altText[] array matches its
//corresponding image in the theImages[] array
altText[0]= 'Frankfurt'
altText[1]= 'Brooklyn Bridge, New York'
altText[2]= 'Chicago'
altText[3]= 'Viaduc de Millau, France'
altText[4]= 'European Parliament, Strasbourg'
altText[5]= 'European Parliament, Strasbourg'
altText[6]= 'Golden Gate Bridge, San Francisco'
altText[7]= 'London'
altText[8]= 'Madrid'
altText[9]= 'New York'
altText[10]= 'Paris'
altText[11]= 'Rome'
altText[12]= 'Seoul'
altText[13]= 'Shanghai'
altText[14]= 'Singapore'
altText[15]= 'Sydney'
altText[16]= 'Zurich'
altText[17]= 'Boston'

// 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/'+theImages[whichImage]+'" alt="'+altText[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]+'">');
}


// Images for the Alliance Rotations
var theAllianceImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theAllianceImages[0] = 'kintai470x250.jpg'
theAllianceImages[1] = 'towerBr470x250.jpg'
theAllianceImages[2] = 'BrooklnBr470x250.jpg'
// do not edit anything below this line
var j = 0
var p = theAllianceImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theAllianceImages[i]
}
var AllianceImage = Math.round(Math.random()*(p-1));
function showAllianceImages(){
document.write('<img src="/images/'+theAllianceImages[AllianceImage]+'">');
}


// Images for the Derivative Rotations
var theDerivativeImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.
theDerivativeImages[0] = 'about.jpg'
theDerivativeImages[1] = 'france2.jpg'
theDerivativeImages[2] = 'flags2.jpg'
// do not edit anything below this line
var j = 0
var p = theDerivativeImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theDerivativeImages[i]
}
var DerivativeImage = Math.round(Math.random()*(p-1));
function showDerivativesImage(){
document.write('<img src="/images/'+theDerivativeImages[DerivativeImage]+'">');
}





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]+'">');
}


//Open window to external site
function openLink(url) {
	var newwin;
	newwin = window.open('/privacy_policy_notice.html?' + url,'openlink','width=300,height=150,screenX=100,screenY=100,top=100,left=100,resizable=yes,toolbar=no,scrollbars=yes')
	newwin.focus();
	
}


//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');
}

}

function getsupport(selectedtype)
{
  document.supportform.value = selectedtype ;
  document.supportform.submit() ;
}

function submitform()
{
  document.thisform.submit();
}

function newWin(link,w,h,s,r) {
  var winFeatures = 'width=' + w + ',height=' + h + ',scrollbars=' + s + ',resizable=' + r;
  var bookWindow = window.open(link, "", winFeatures);
}

