function emsTweak()
{
	if ((document.createElement) && (document.createTextNode))
	{
		var h=999;
		if (document.getElementById('emsTest').clientHeight) h=parseInt(document.getElementById('emsTest').clientHeight);
		else if (document.getElementById('emsTest').offsetHeight) h=parseInt(document.getElementById('emsTest').offsetHeight);

		if (h < 90) document.body.style.fontSize=Math.round(9000/h)+"%";
	}
}



var ns4=false;
if ((parseInt(navigator.appVersion)==4) && (navigator.appName=="Netscape")) ns4=true;
var winie=false;
if ((navigator.appName=="Microsoft Internet Explorer") && (navigator.platform=="Win32")) winie=true;
var dom=(document.getElementById)?true:false;


document.writeln('<style type="text/css">');
document.writeln('td.content{background-image:url("'+strPathRoot+'img/bg_content.gif"); background-repeat:repeat;}');
document.writeln('ul.body{list-style-image:url("'+strPathRoot+'img/bullet_list.gif");}');
if (ns4 || winie)
{
	
	if (winie)
	{
		document.writeln('body, html{scrollbar-base-color:#BDA1D5; scrollbar-track-color:#9B6CC0; scrollbar-arrow-color:#ffffff}');
	}
	else if (ns4)
	{
		document.writeln('a.crumb:link, a.crumb:visited, a.crumb:active{color:#6A36A0;}');
	}
}
document.writeln('</style>');

if (dom)
{
	var bull0=new Image();
	bull0.src=strPathRoot+"img/bullet_blue.gif";
	var bull1=new Image();
	bull1.src=strPathRoot+"img/bullet_white.gif";
	var bull2=new Image();
	bull2.src=strPathRoot+"img/bullet_crumbtrail.gif";
	var bull3=new Image();
	bull3.src=strPathRoot+"img/bullet_crumbtrail_over.gif";
}

function bullOn(num)
{
	if (dom){
		document.getElementById('bull'+num).setAttribute('src',bull1.src);
		document.getElementById('tdNav'+num).style.backgroundColor = '#707BA0';
	}
}

function bullOff(num)
{
	if (dom){
		document.getElementById('bull'+num).setAttribute('src',bull0.src);
		document.getElementById('tdNav'+num).style.backgroundColor = '#1D2F68';
	}
}

function crumbOn(num)
{
	if (dom){
		document.getElementById('crumbBull'+num).setAttribute('src',bull3.src);
		document.getElementById('crumb'+num).style.backgroundColor = '#BFA3D7';
	}
}

function crumbOff(num)
{
	if (dom){
		document.getElementById('crumbBull'+num).setAttribute('src',bull2.src);
		document.getElementById('crumb'+num).style.backgroundColor = '#976DBA';
	}
}

