// JavaScript Document
//initialise

	noof = 11;
	initialised = false
	var iArr=new Array()
	var breadcrumb=new Array("&gt; <a href='industry.html'>Industry Coverage</a>&gt; Asset Management Companies", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Banks", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Other Lending Institutions", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Depository Participants & Broking Houses", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Insurance", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Education", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Government Bodies", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; NGOs", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Online Retail Merchants", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Telecom & Utilities", "&gt; <a href='industry.html'>Industry Coverage</a>&gt; Travel")
	for(x=0; x<11; x++){
		//itemp = new Image()
		//itemp.src = "images/titles/Ind" + (x+1) + ".gif"
		iArr[x] = "images/titles/Ind" + (x+1) + ".gif";
	}
	for(x=0; x<iArr.length;x++){// alert(iArr[x])
	}

//window.onload(document.getElementById("ind_tab").style.display = "none")
function parseGetVars() {
	var getVars = new Array();
	var qString = unescape(top.location.search.substring(1));
	var pairs = qString.split(/\&/);
		for (var i in pairs) {
			var nameVal = pairs[i].split(/\=/);
			getVars[nameVal[0]] = nameVal[1];
		}	
	return getVars;
}

var g = parseGetVars();

function show_bylink(){
	for (var i in g){
		//document.writeln(i+'='+g[i]+'<br>');
		if(i=="openid"){ 
		   //alert(g[i])
			showme(g[i]); 
			return;
		}
	}
	me = "n"+0;
	document.getElementById(me).style.display = "block";
	document.getElementById("ind_tab").style.display = "none"
}

function init(){
	noof = 11;
	//hidall(0);
	
	initialised = true
	//document.getElementById("industrymain").style.display = "block";
	document.getElementById("space").style.height = "188px";
}

function hidall(start){
	for(c=start; c<=noof; c++){
		me = "n"+c;
		document.getElementById(me).style.display = "none";
		if(c>0){
			document.getElementById("a"+c).style.background = "url(images/arrowbullet_acc.gif) no-repeat 12px 5px";
			document.getElementById("a"+c).style.color = "#666";
		}
	}
}

function showme(idno){
	if(!initialised){
		init();
	}
	hidall(0);
	
	me = "n"+idno;
	var xref = document.getElementById(me);
	xref.style.display = "block";
	document.getElementById("ind_tab").style.display = "block";
	document.getElementById("a"+idno).style.background = "url(images/arrowbullet_acc_cur.gif) no-repeat 12px 5px";
	document.getElementById("a"+idno).style.color = "#346AA8";
	document.getElementById("heading_div").style.display = "block";
	document.getElementById("heading_div").style.marginBottom = "5px";
	document.getElementById("head_img").src = iArr[idno-1];
	document.getElementById("bc").innerHTML = breadcrumb[idno-1];
	document.getElementById("pagetop").focus();
}

//shows the selected link table
