// File: public/pg_curr_map.js
// Created 1/5/08
// JS for curric map page 
// Revision History

function toggleVis(divname)
{
	var x=MM_findObj(divname), a=toggleVis.arguments;
		
	if (x!=null) {
		if (document.all || document.getElementById) {	// IE & Gecko & Opera
			if ((x.style.display=="none" && a.length == 1) || (a.length > 1 && a[1] == "show")) // none means show, "" means hide
				x.style.display=""; // hide
			else
				x.style.display="none"; // show
		}
		else {	// Netscape 4
			if ((x.display=="show" && a.length == 1) || (a.length > 1 && a[1] == "show"))
				x.display="hide";
			else
				x.display="show";
		}
	}
} // end of the 'toggleVis()' function

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MyTagToTip(id,style,title_text)
{
	switch(style)
	{
	case 1:
		TagToTip(id,TITLE,title_text,BGCOLOR,'#BEFACA',TITLEBGCOLOR,'#008000',BORDERCOLOR,'#008000');
		break;    
	case 2:
		TagToTip(id,TITLE,title_text,BGCOLOR,'#FEFFDD',TITLEBGCOLOR,'#8E900C',BORDERCOLOR,'#8E900C');
		break;    
	case 3:	
		TagToTip(id,TITLE,title_text,BGCOLOR,'#E8E8FF',TITLEBGCOLOR,'#18429C',BORDERCOLOR,'#18429C');
		break;    
	case 4:	
		TagToTip(id,TITLE,title_text,BGCOLOR,'#FFFFFF',TITLEBGCOLOR,'#000000',BORDERCOLOR,'#000000');
		break;    
	case 5:	
		TagToTip(id,TITLE,title_text,BGCOLOR,'#F6E43A',TITLEBGCOLOR,'#000000',BORDERCOLOR,'#000000');
		break;    		
	} 	
}





