
	 ValidationToolTipAnimation=true;
	 ValidationToolTipAnimationDelay=300;
	 OverlayAnimation=true;
	 OverlayAnimationDelay=500;
	 OverlayOpacity=0.4;
	 DefaultSize=62.5;
	 FontResizeSteps=5;
/*
	Vendor Glossary Functions v 1.0
	by Matt Cannon <mcannon@epierce.com>

*/
		
function openGlossary(context, term){
	var winFeatures = "";
	if ((context != "info") || (context != "hcp")){context = "info";}
	winFeatures += "height=200,width=525,top=10,left=10,";				  //window size
	winFeatures += "scrollbars,titlebar" //which chrome?
	//winFeatures += "resizable"	
	window.open(buiContextPath+"/jsp/utils/glossary/"+context+"/glossary_term.jsp?term="+term,"glossary_win",winFeatures)
}

function termSelectedNS(term){
	document.glossary_form.term_selected.value = term;
	document.glossary_form.submit();
}

function letterSelected(letter){
	document.glossary_form.letter.value = letter;
	document.glossary_form.submit();
}

//==================================================================================
	
function getObj(id){

	var o = null;
		if (document.getElementById) {
		o = document.getElementById(id);
		}
		else if(document.all) {
		o = eval('document.all["'+id+'"]');			
		}
		else if(document.layers) {
		o = document.layers[id];		
		}	
	return o;
}

function termSelected(i) {
	if (i != 0){		
		
		var c = getObj('content_div');
		if (c != null) {setText(c,i);}	
	}
}

function setText(c,i){
	c.innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0" background="">\n'+terms[i]+'\n</table>';
}



function setActiveStyleSheet(title) 
{   
    
	var small, medium, large; 
	small = Get("small");
	medium = Get("medium");
	large = Get("large");
    
   
	
	if(small.getAttribute("rel").indexOf("style") != -1 && small.getAttribute("title")) { 
		if(small.getAttribute("title") == title) 
			small.disabled = false; 
		else
			small.disabled = true; 
	}
	
	
	
	if(medium.getAttribute("rel").indexOf("style") != -1 && medium.getAttribute("title")) { 
		if(medium.getAttribute("title") == title) 
			medium.disabled = false; 
		else
			medium.disabled = true; 
	} 
	
	
	
	if(large.getAttribute("rel").indexOf("style") != -1 && large.getAttribute("title")) { 
		if(large.getAttribute("title") == title) 
			large.disabled = false; 
		else
			large.disabled = true; 
    } 
        
    
    cdeleteCookie("title"); csetCookie("title",title,100); 
 }
 function csetCookie(name, value, days){
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}
function cdeleteCookie(name){
	csetCookie(name, "", -1);
}
function cgetCookie(name) {
  
  var ca = document.cookie.split(';');  
  var nameEQ = name + "=";
  for(var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
  return null;
}
var title = 'small'; 
if(cgetCookie("title")!=null){
	title = cgetCookie("title");
}	

if(title != null) {
  	if (!((title=='small')||(title=='medium')||(title=='large'))){		
		title='small';
	}
} else {
    title='small';    
} 

