// JavaScript Document
//2nd level nav display control
var nav_display=0;

function hover(id,change){
var color='';

if(change==1){
	color='#e5e5e5';
}else{
	color='#ffffff';
}

id.style.backgroundColor=color;	

}

function getDSIAEmail(){
document.write('dsia.portal@methodbrain.com');
}


function getMethodbrainEmail(){
document.write('contact@methodbrain.com');
}


function highlightNav(id){
	if(id==''){return;}
document.getElementById('nav_'+id).className='selectednavText';
}

function showDiv(id){

	if(document.all['div_'+id].style.display=='none'){
	document.all['div_'+id].style.display='inline';
	document.all['exp_toggle_'+id].innerHTML='[&#8211;]';
	}else{
	document.all['div_'+id].style.display='none';
	document.all['exp_toggle_'+id].innerHTML='[+]';
	}

}


//dsia tab navigation
var portal_nav_array = [['/dsia_portal','DSIA Portal'],['/dsia/about-dsia','About DSIA'],['/dsia/the-basics-of-ia/index','The Basics of IA'],['/dsia/resource/index','Resources'],['/dsia/subject-matter/index','Subject Matter'],['/articles/index','News & Articles']];

//methodbrain tab navigation
var methodbrain_nav_array = [['/index','Methodbrain'],['/about-methodbrain','About Methodbrain'],['/about-nate-davis','About Nathaniel Davis']];


var selectionBgColor="#ffffff";
var numberoftabs=portal_nav_array.length;
var tabcolor="none";

	
function hborder(x){

	if(x=='undefined'){x=0;}
	
var bColor="#cccccc";
var pipe="#ffffff";

		//clear all
		for(i=0;i<numberoftabs;i++){
			if(portal_nav_array[i][1]!=x){//color border
			document.all['i-'+i].style.borderWidth=0;
			//document.all['i-'+i].style.borderLeft=pipe;
			document.all['i-'+i].style.borderStyle='solid';
			document.all['i-'+i].style.borderBottomWidth=2;
			document.all['i-'+i].style.borderBottomColor=bColor;
			document.all['i-'+i].style.background=tabcolor;

			}else{
			//color background of selected cell
			document.all['i-'+i].style.background=selectionBgColor;
			x=i;
			//document.all.tool_data.style.backgroundColor=selectionBgColor;
			}
		}
		
		
			if((x==0) || (x>0)){
			document.all['i-'+x].style.borderLeftColor=bColor;
			document.all['i-'+x].style.borderTopColor=bColor; 
			document.all['i-'+x].style.borderRightColor=bColor;  
			document.all['i-'+x].style.borderWidth=2;
			document.all['i-'+x].style.borderBottomWidth=0;
			document.all['i-'+x].style.borderStyle="solid";
			}
		
	
}


//valid domains and their url
var valid_domain = [['dsia','\/dsia_portal.cfm','DSIA Portal'],['subject-matter','\/dsia\/subject-matter\/index.cfm','Subject Matter'],['the-basics-of-ia','\/dsia\/the-basics-of-ia\/index.cfm','The Basics of IA'],['articles','\/articles\/methodbrain-dsia-news-archive.cfm','News & Articles'],['practice','/dsia\/subject-matter\/practice\/index.cfm','Practice Modeling'],['ors','/dsia\/subject-matter\/ors\/ors.cfm','Organization Role Segmentation'],['about','/dsia\/about-dsia.cfm','About DSIA'],['contributor','/dsia\/contribute/contributing-to-the-dsia-portal.cfm','Contribute'],['resource','/dsia\/resource','Resources']];
var domain_suppression = ['presentation','all','business','general','practitioner','research','theory','ia-theory','segmentation','concept-of-information-architecture','communication','html'];


function writedsiaNav(id,mbid){

//what section
if(id=='methodbrain'){
id=mbid;
portal_nav_array=methodbrain_nav_array;
numberoftabs=portal_nav_array.length;//adjust the number of tabs
}

var rbc='';

if(id!=''){//only right the breadcrumb and nav if dsia portal is active
//init breadcrumb
var breadcrumb=window.location.href;
var sig = breadcrumb.indexOf('.com/');
breadcrumb = breadcrumb.substring(sig+5,breadcrumb.length);
var taxonomy=breadcrumb.split('\/');
taxonomy=taxonomy.slice(0,taxonomy.length-1);
		
breadcrumb ='&nbsp;&nbsp;';

var breadnode=0;
	
	for(i=0;i<taxonomy.length;i++){
	
	//domain suppression----
	var suppress_domain=1;
	
		for(ds=0;ds<domain_suppression.length;ds++){
			if(taxonomy[i].toLowerCase()==domain_suppression[ds]){
			suppress_domain=0;
			break;
			}
		}
		  
		if(suppress_domain==0){
		continue;
		}
	///end domain suppression--------
	
	//determine if valid domain; if so add url
		for(d=0;d<valid_domain.length;d++){
			
			//if there is a page for this item create a link
			if((taxonomy[i]==valid_domain[d][0]) && (valid_domain[d][1]!=0)){
			breadnode='<a href="'+valid_domain[d][1]+'">'+valid_domain[d][2]+'<\/a>';
			break;
			}
		}
		
		
		
		if(breadnode != 0){
		breadcrumb+=breadnode+' : ';
		breadnode=0;
		}else{
			
		var nt=taxonomy[i].split('-');
		var node='';
					//convert to initial caps
					for(c=0;c<nt.length;c++){
					var x = nt[c].substring(0,1).toUpperCase();
					node+=x+nt[c].substring(1,nt[c].length)+" ";
					}
					
			//make sure DSIA is in all caps
			if(node.toLowerCase().indexOf('dsia')!=-1){
			node='DSIA Portal';
			}
		breadcrumb+=node+' : ';
		}
		
		if(breadcrumb.length>5){
		rbc='<br><table><tr><td><img src="/images/breadcrumb_icon.jpg"></td><td><span id="crumb" class="breadcrumb">You are here:'+breadcrumb+'</td></tr></table>';
	
		}
	}
	
	

	if((breadcrumb.indexOf('Practice')!==-1) && (breadcrumb.indexOf('HTML')==-1)){
	rbc+='</td></span></tr>';
	}else if((breadcrumb.indexOf('Contribute')!=-1) || (breadcrumb.indexOf('News')!=-1) || (breadcrumb.indexOf('Subject Matter')!=-1)){
	rbc+='</td></span></tr>';
	}else{
	rbc+='</td></span></tr>';
	}
}

//write the dsia portal navigation container
var dsianav='<table id="dynamicnav" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height=17></td></tr><tr>';

//populate the navigation
if(id!=''){//only right the breadcrumb if dsia portal is active
		for(i=0;i<numberoftabs;i++){

			if(portal_nav_array[i]){
			dsianav +='<td align="center" width="'+eval("portal_nav_array[i][1].length*8")+'" height="34" id="i-'+i+'" class="navText" onClick="location=\''+portal_nav_array[i][0]+'.cfm\'" style="cursor:hand;padding-right:5">'+portal_nav_array[i][1]+'</td>';
			}
		}
}


//dictionary icon and link

dsianav +='<td class="styles" id="filler" style="cursor:none;border-bottom:2px solid #cccccc" align="right"><span style="cursor:hand" onClick="location=\'/dsia/glossary/\'"><img src="/images/glossary.gif"> DSIA Glossary</span>&nbsp;&nbsp;</td></tr></table>'+rbc;

/*
dsianav +='<td class="navText" id="filler" style="cursor:none;border-bottom:2px solid #cccccc">&nbsp;</td></tr></table>'+rbc;*/


document.all.dsia_nav.innerHTML=dsianav;
document.all.filler.style.background=tabcolor;

	if(id!=''){//only right the breadcrumb if dsia portal is active
	
	//highlight tab
	hborder(id);
	}
}

function displayAbbreviationKey(){
	
	
	if(document.all.abbreviation_key.style.display=='none'){
		document.all.abbreviation_key.style.display='inline';
		document.all.abb_toggle.innerHTML='[&#8211;]';
		}else{
		document.all.abbreviation_key.style.display='none';
		document.all.abb_toggle.innerHTML='[+]';
		}
}

function highlightSkill(x){
	
	if(document.all.abbreviation_key.style.display=='none'){
	document.all.abbreviation_key_text.click();
	}
	
	for(i=0;i<9;i++){
	document.all['skill_'+i].style.backgroundColor="#e5e5e5";
	}
	document.all['skill_'+x].style.backgroundColor="#d5d5d5";
	
}

var fieldclearvalue=0;
function clearField(x){
	if(fieldclearvalue==0){
	x.value='';
	}
fieldclearvalue=1;
}

var d_container='<tr id="d_container" style="display:none"><td colspan="3"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td style="border-left:2px solid #cccccc">&nbsp;</td><td colspan="3" valign="top" id="dictionary_container"></td><td style="border-right:2px solid #cccccc">&nbsp;</td></tr></table></td></tr>';
	
	
var dsia_dictionary='<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="55" background="/images/dictionary/header-bg.jpg" class="headerText" style="padding-left:10px">'
  
  +'<table width="100%" border="0"><tr><td width="400"><span class="headerText" style="padding-left:10px">DSIA&#8482;  Glossary of Terms</span></td>'
  +'<td>&nbsp;</td>'
  +'<td style="cursor:hand" width="75" onclick="closeDictionary()"><div align="center" class="formTitleHeader">X</div></td></tr></table></td></tr>'

  +'<tr><td height="27" background="/images/dictionary/row-header-bg.jpg" style="border-top:1px solid #999999;border-bottom:1px solid #ffffff;padding-left:25px"><table width="100%" border="0"><tr><td width="200" class="dictionaryHeader">Term</td><td class="dictionaryHeader">Definition</td><td width="150">&nbsp;</td></tr></table></td></tr><tr><td height="85" bgcolor="dddddd" style="padding-left:25px"><table width="100%" border="0"><tr><td width="200" class="BlackCopy" id="term_container">Practice</td><td class="BlackCopy" id="definition_container">The collective behavior of intentional empirical probing around an area of interest, whereby the contribution of documentation of discovery enables consensus that builds and reinforces discipline around such behaviors.</td><td width="150">&nbsp;</td></tr></table></td></tr><tr><td height="10" bgcolor="dddddd"><div align="center"><img src="/images/dictionary/fading-rule.jpg"></div></td></tr><tr><td height="50" bgcolor="dddddd" style="padding-left:10px"><table width="100%" border="0">'
+'<tr><td width="150" class="BlackCopy">&nbsp;</td><td class="containerText"></td><td width="150">&nbsp;</td></tr></table></td></tr>'

+'<tr><td height="65"><table width="100%" height="65" border="0" cellpadding="0" cellspacing="0"><tr><td width="40" background="/images/dictionary/left-footer.jpg">&nbsp;</td><td background="/images/dictionary/footer-bg.jpg">&nbsp;</td><td width="40" background="/images/dictionary/right-footer.jpg">&nbsp;</td></tr></table></td></tr></table>';

function showDictionary(x){

	
	if(x){
	//
	}else{
	var glossaryTerm=window.location.href;

		if(glossaryTerm.indexOf("?")!=-1){
	
			var glossaryTermStart=glossaryTerm.indexOf("?");
				glossaryTerm=glossaryTerm.substring(glossaryTermStart+1,glossaryTerm.length);
				
			//exception
			if(glossaryTerm.toLowerCase()=='single-domain-information-architecture-strategy'){
			x='Single-Domain Information Architecture';
			}else if(glossaryTerm.toLowerCase()=='multi-domain-information-architecture-strategy'){
			x='Multi-Domain Information Architecture';
			}else if(glossaryTerm.toLowerCase()=='cross-domain-information-architecture-strategy'){
			x='Cross-Domain Information Architecture';
			}else{
			var rp=/-/g;
			x=glossaryTerm.replace(rp,' ');
			}	
		}
	}
	//if the page is called by directory
	if(x==''){return;}
	
scroll(0,0);	

document.all.ribbonContainer.style.display='inline';
var y;
var f=0;

	for(i=0;i<dsia_glossary.length;i++){

		if(x.toLowerCase()==dsia_glossary[i][0].toLowerCase()){
			//hyphen fix
			/*if(dsia_glossary[i].length==3){		
			dsia_glossary[i][0]=dsia_glossary[i][2];
			}*/
		x=dsia_glossary[i][0];
		y=dsia_glossary[i][1];
		f=1;
		break;
		}
	}

	if(f==0){
	y="This term does not exist in the DSIA glossary or is currently unavailable.";	
	}
	
document.all.ribbonBanner.innerHTML=dsia_dictionary;
document.all.term_container.innerHTML=x;
document.all.definition_container.innerHTML=y;
}

function closeDictionary(){
document.all.ribbonContainer.style.display='none';
}


function getContributor(){
var contributorName=window.location.href;
	if(contributorName.indexOf("?")!=-1){
		var contributorNameStart=contributorName.indexOf("?");
		contributorName=contributorName.substring(contributorNameStart+1,contributorName.length);
		document.getElementById(contributorName).style.display='inline';
		document.title='About : DSIA Contributor: '+contributorName.replace('-',' ');
	}
}
	

function loadArticle(){
	var autoload=window.location.href;
	if(autoload.indexOf("?")!=-1){
		var pageStart=autoload.indexOf("?");
		autoload=autoload.substring(pageStart+1,autoload.length);
		document.location=autoload;
	}
}

function sortGlossary(){
	
	dsia_glossary=dsia_glossary.sort();
	for(i=0;i<dsia_glossary.length;i++){
	document.all.gList.innerHTML+='<a href="javascript:showDictionary(\''+dsia_glossary[i][0]+'\')">'+dsia_glossary[i][0]+'</a><br>';	
	}
}



function glossarySpotlight(){

document.all.glossary_spotlight_List.innerHTML='';

var glossary_spotlight=dsia_glossary;
var g_spotlight_array=[];
var check=0;
var fail=0;

	//randomly select a term
	for(i=0;i<100;i++){
		//randomly pick a term 
		var term_index = Math.floor(Math.random()*glossary_spotlight.length);
		if(g_spotlight_array.length==0){
		g_spotlight_array.push(glossary_spotlight[term_index]);
		check++;
		}else{
			for(tc=0;tc<g_spotlight_array.length;tc++){
				if(g_spotlight_array[tc][0]==glossary_spotlight[term_index][0]){
				fail=1;
				break;
				}
			}
			if(fail==0){
			g_spotlight_array.push(glossary_spotlight[term_index]);
			check++;
				if(check==3){break;}
			}else{
			fail=0;
			}
		}

		//remove the term from the list
		//glossary_spotlight.splice(term_index,1);
	}
		
	g_spotlight_array=g_spotlight_array.sort();
	for(i=0;i<g_spotlight_array.length;i++){
	document.all.glossary_spotlight_List.innerHTML+=''+g_spotlight_array[i][0]+'<br>'+g_spotlight_array[i][1]+'<br><br>';	
	}
}

var dsia_glossary=[['Practice','The collective behavior of intentional empirical probing around an <a href="javascript:showDictionary(\'Area of Interest\')">area of interest</a>, whereby the contribution of documentation of discovery enables consensus that builds and reinforces discipline around such behaviors.'],['Single-Domain Information Architecture','A <a href="javascript:showDictionary(\'Site Information Architecture\')">site information architecture</a> that does not share its <a href="javascript:showDictionary(\'abstract construct\')">abstract</a> or <a href="javascript:showDictionary(\'Physical Construct\')">physical</a> construct with other information sources with intention','Single-Domain Information Architecture'],['Subject Domain','The collective behaviors and vocabulary, of an individual or group, that directly relate to a unique <a href="javascript:showDictionary(\'Subject Matter\')">subject matter</a> or function within a business, organization or other social context'],['Physical Construct','The interactive sequence and dependent nodes for a single or all directed paths to information within a domain; navigation'],['Mode','The physical container and its inherent properties by which information is consumed on a <a href="javascript:showDictionary(\'Device\')">device</a>'],['Device','Equipment or a mechanism designed to serve a special purpose or perform a special function -- Source: Merriam-Webster'],['Multi-Domain Information Architecture','A <a href="javascript:showDictionary(\'Site Information Architecture\')">site information architecture</a> that accommodates and enables multiple <a href="javascript:showDictionary(\'Abstract Construct\')">abstract</a> and <a href="javascript:showDictionary(\'Physical Construct\')">physical constructs</a> of multiple sites within a single <a href="javascript:showDictionary(\'Subject Domain\')">subject domain</a>','Multi-Domain Information Architecture'],['Macro Information Overload','Where the abundance of information becomes a quantitative obstruction to an underlying intention of a system'],['Micro Information Overload','Where the abundance of information becomes an obstruction to an underlying intention of an agent interacting with a system'],['Cross-Domain Information Architecture','A <a href="javascript:showDictionary(\'Site Information Architecture\')">site information architecture</a> that serves as the canonical model for accommodating and enabling multiple <a href="javascript:showDictionary(\'Abstract Construct\')">abstract</a> and <a href="javascript:showDictionary(\'Physical Construct\')">physical constructs</a> across multiple <a href="javascript:showDictionary(\'Subject Domain\')">subject domains</a>'],['Natural Domain','The nature of a domain of information that is architected for a single <a href="javascript:showDictionary(\'Mode\')">mode</a> of information interaction and consumption'],['Complex Domain','Where the variety of diverse modes of information interactions force the need for two or more <a href="javascript:showDictionary(\'Physical Construct\')">physical constructs</a> for a single base use case'],['Abstract Construct','A conceptual relationship such as a taxonomy, domain model or ontology'],['Quartet Compression','A co-dependent relationship between a technology platform, applications, information and an individual or group of people'],['Reactionary Propogation','A perpetual cycle of increasing volatility and volume of use, adoption and performance encouraged by a <a href="javascript:showDictionary(\'Quartet Compression\')">quartet compression</a>'],['Information Architect','A practitioner who designates the <a href="/dsia/the-basics-of-ia/The-Basic-Function-of-IA.cfm">function of information architecture</a> as their core competency or primary functional responsibility within a business organization'],['Tier','A child domain of a <a href="javascript:showDictionary(\'Subject Domain\')">subject domain</a> within an <a href="javascript:showDictionary(\'Order Grid\')">order grid</a>'],['Practice Tier','A single <a href="javascript:showDictionary(\'Area of Interest\')">area of interest</a> of a <a href="javascript:showDictionary(\'Practice Vertical\')">practice vertical</a>'],['Practice Vertical','A set of <a href="javascript:showDictionary(\'Practice Tier\')">practice tiers</a> that represents the primary <a href="javascript:showDictionary(\'Area of Interest\')">areas of interest</a> of a single professional <a href="javascript:showDictionary(\'Practice\')">practice</a>'],['T-model','A concept that argues how a multi-disciplinary <a href="javascript:showDictionary(\'Practice\')">practice</a> is a set of shared <a href="javascript:showDictionary(\'Subject Matter\')">subject matter</a> from other unique practices, and how a practitioner\'s added focus in a given <a href="javascript:showDictionary(\'Practice Vertical\')">practice vertical</a> creates a "T" shape when graphically plotted'],['First Order','An informational pattern that is the symmetrical grouping of multiple <a href="javascript:showDictionary(\'Subject Domain\')">subject domains</a> and their primary tiers'],['Order Grid','The <a href="javascript:showDictionary(\'First Order\')">first order</a> mapping of a <a href="javascript:showDictionary(\'Segmentation\')">segmentation</a>'],['Segmentation','A proposal for a <a href="javascript:showDictionary(\'Primary Information Architecture\')">primary information architecture</a>'],['Subject Matter','A topic of inquiry and discussion of a single or multiple subject domains; <a href="javascript:showDictionary(\'Area of Interest\')">area of interest</a>'],['Area of Interest','See <a href="javascript:showDictionary(\'Subject Matter\')">Subject Matter</a>; relates to <a href="javascript:showDictionary(\'Practice Tier\')">Practice Tier</a>'],['Assertion','A loosely supported concept that claims theoretical or practical relevance to the field of information architecture'],['Feedback','Undesirable human performance or behavioral responses as a consequence of information overload'],['Utility Gap','The amount of unusable information that is stored within a domain'],['Filter Failure','A signature of information overload by way ineffective controls for determining content quality and relevance'],['Abundance','Excessive amounts of information or content'],['Volatility','An increased rate of information flow within a domain'],['Digital Literacy Gap','The degree of education that a user needs to effectively use and contribute to a knowledge system and information architecture'],['Search Engine Optimization','A practice of improving the relevant findability of information for search engines']];


var recently_added_terms_count=6;
