// JavaScript Document

<!--
	// Function to find the browser and return the ID
	function fnFindBrowserID(theID)
	{
		if (document.layers)// for Mozila
		{
			theID = document.layers[theID];
		}
		else if (document.all)// IE
		{
			theID = document.all[theID];
		}
		else // Others
		{
			theID = document.getElementById(theID);
		}
		return theID;	
	}
	
	// This function swaps an image for another in a given id
	function fnSwapImage(theID, theImage)
	{
		// Function to change an image to another image.
		theID = fnFindBrowserID(theID);		
		theID.src=theImage;		
	}
	
	// This function will take in an ID and class and change the id to the class
	function fnChnageClass(theID, theClass)
	{	
		theID = fnFindBrowserID(theID);
		
		if (document.layers)// for Mozila
		{
			theID.setAttribute("class", theClass);
		}
		else if (document.all)// IE
		{
			theID.setAttribute("className", theClass); // IE being funny and uses className not class
		}
		else // Others
		{
			theID.setAttribute("class", theClass);
		}		
		
		return;	
	}
	
	// Function to change the size of the font to 12pt for easier reading
	function fnChnageFontSize14()
	{
		document.body.style.font = 14 +'pt';
		document.body.font.style.font = 14 +'pt';
		document.body.span.style.font = 14 +'pt';
		document.body.div.style.font = 14 +'pt';
		document.div.style.font = 14 +'pt';
		document.span.style.font = 14 +'pt';
		document.p.style.font = 14 +'pt';
		document.a.style.font = 14 +'pt';
		document.font.style.font = 14 +'pt';
		document.font.size.style.font = 14 +'pt';
		document.li.style.font = 14 +'pt';
		document.body.li.style.font = 14 +'pt';
	}
	
	// Function to change the size of the font to 10pt to look better
	function fnChnageFontSize10()
	{
		document.body.style.font = 10 +'pt';
		document.body.font.style.font = 10 +'pt';
		document.body.span.style.font = 10 +'pt';
		document.body.div.style.font = 10 +'pt';
		document.div.style.font = 10 +'pt';
		document.span.style.font = 10 +'pt';
		document.p.style.font = 10 +'pt';
		document.a.style.font = 10 +'pt';
		document.font.style.font = 10 +'pt';
		document.font.size.style.font = 10 +'pt';
		document.li.style.font = 10 +'pt';
		document.body.li.style.font = 10 +'pt';
	}
	
	/*var tags = new Array('div','td','tr','p','b','span','table','strong','emphasis','a','h1', 
						 'h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');*/
	var tags = new Array('div','td','tr','p','b','span','table','strong','emphasis','a'
						 ,'pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
	var pixelArray = new Array('9','10','12','14','18','24','30','40');
	var emArray = new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
	
	var initSize = 3; 
	
	function fontSizer(inc,unit)
	{
		if (!document.getElementById)
		return;
		
		var size = initSize;
		size += inc;
		
		if (size < 0 )
		{
			size = 0;
		}
		if (size > 6 )
		{
			size = 6;
		}
		initSize = size;
		
		getBody = document.getElementsByTagName('body')[0];
		for (i = 0 ; i < tags.length ; i++ )
		{
			getallTags = getBody.getElementsByTagName(tags[i]);
			for (k = 0 ; k < getallTags.length ; k++)
			getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
		}
	}



//--------------------------------------------------------------------------------------------------------------------------------
/* 
** Script to find the center of the screen
**
** To use type the function name and what object you are trying to center
** followed by the number of px you wish to minus or if you wish to add px
** on type '-' then the number (two minuses make a plus) so these two 
** lines of cod will work:
** 		fnCenterObject('idTheFirst', 100);
** 		fnCenterObject('idTheSecond', -200);
*/

windowCenter = 0;


if (self.innerHeight) // all except Explorer
{
	windowCenter = self.innerWidth/2;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	windowCenter = document.documentElement.clientWidth/2;
}
else if (document.body) // other Explorers
{
	windowCenter = document.body.clientWidth/2;
}

//--------------------------------------------------------------------------------------------------------------------------------

function fnCenterObject(theObj, theMin)
{
	if(document.getElementById(theObj))
	{
		document.getElementById(theObj).style.left = (windowCenter - theMin) + "px";
	}
}

// center the main part of the screen
function fnCenterMain()
{
	if(self.innerHeight) // This will center the main part only if it is mozilla
	{
		theID = 'idToCenterContent';
		theID = fnFindBrowserID(theID);
		theID.style.position='absolute';
		
		fnCenterObject('idToCenterContent', '500');
		fnCenterObject('idRightLinks', '-200');
		fnCenterObject('idRightLinksBack', '-200');		
	}
	else
	{
		fnCenterObject('idRightLinks', '-200');
		fnCenterObject('idRightLinksBack', '-200');
	}
	theID = 'idRightLinks';
	theID = fnFindBrowserID(theID);
	theID.style.zIndex='30';
}

//-----------------------------------------------------------------------------------------------------------------------------------

// Hitslink script
wa_account="bu5inesscard5"; wa_location=214;
wa_pageName=location.pathname;  // you can customize the page name here
document.cookie='__support_check=1';wa_hp='http';
wa_rf=document.referrer;wa_sr=window.location.search;
wa_tz=new Date();if(location.href.substr(0,6).toLowerCase()=='https:')
wa_hp='https';wa_data='&an='+escape(navigator.appName)+ 
'&sr='+escape(wa_sr)+'&ck='+document.cookie.length+
'&rf='+escape(wa_rf)+'&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+'&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+'&pg='+escape(wa_pageName);
wa_data=wa_data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&tz='+wa_tz.getTimezoneOffset()+'&je='+ navigator.javaEnabled();
wa_img=new Image();wa_img.src=wa_hp+'://counter.hitslink.com/statistics.asp'+
'?v=1&s='+wa_location+'&acct='+wa_account+wa_data+'&tks='+wa_tz.getTime();
document.getElementById('wa_u').src=wa_hp+'://counter.hitslink.com/track.js';
-->