/**********************************************************
 * fn: sectionselect.js
 * dt: 20OCT06@1332h
 * by: dan concepcion
 * -----------------------------------------------------------
 * This code takes a variable brought into the page at request
 * time and loads the proper section.
 *
 ***********************************************************/
 function showPageSection(){
	var qsParm = new Array();
	
	var query = window.location.search.substring(1);
	var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParm[key] = val;
		}
	}
			
	if (qsParm['page'] == "products") {
		switch(qsParm['showsection']){
			case 'default':curSection = 'content1';break;
			//case 'sm':curSection = 'content2';break;
			case 'sf':curSection = 'content2';break;
			
		}			
	}

	if (qsParm['page'] == "services") {
		switch(qsParm['showsection']){
			case 'default':curSection = 'content1';break;
			
		}			
	}

	if (qsParm['page'] == "industry") {
		switch(qsParm['showsection']){
			case 'default':curSection = 'content1';break;
			case 'mcp':curSection = 'content2';break;
			case 'baa':curSection = 'content1';break;
			case 'maop':curSection = 'content4';break;
		}			
	}
		
	thepage = qsParm['page'];

	//alert("The \'" + qsParm['page'] + "\' page is calling the function and the show par is set to " + qsParm['showsection'] + ".");
 }
 
 showPageSection();




//  page 
