/* Version: site 5.0.0.0, script 1.0.0.0 */
function PrepareLinkOutsPost(total)
{
	var baseId = "ctl00_menuPageContentHolder_markup";
	var controlId;
	var box;
	for (index = 1; index <= total; index++)
	{
		controlId = baseId + index.toString();
		box = document.getElementById(controlId);
		if (box != null)
		{
			box.disabled = true;
		}
	}
}
function PreparePost(id)
{
	var button = null;
	if (document.getElementById)
	{
		button = document.getElementById(id);
	}
	else
	{
		button = document.all(id);
	}
	if (button != null)
	{
		button.value = "Please wait...";
		button.disabled = true;
	}
	return true;
}
function PrepareDonate()
{
	var sourceCode = null, button = null;
	if (document.getElementById)
	{
		sourceCode = document.getElementById('ctl00_codegenContentPlaceHolder_generatedCode');
		button = document.getElementById('ctl00_codegenContentPlaceHolder_cmdDonate');
	}
	else
	{
		sourceCode = document.all('ctl00_codegenContentPlaceHolder_generatedCode');
		button = document.all('ctl00_codegenContentPlaceHolder_cmdDonate');
	}
	if (sourceCode != null)
	{
		sourceCode.disabled = true;
	}
	if (button != null)
	{
		button.value = "Please wait...";
		button.disabled = true;
	}
	return true;
}
function CopyCode(id)
{
	var element = null;
	if (document.getElementById)
	{
		element = document.getElementById(id);
	}
	else
	{
		element = document.all(id);
	}
	if (element != null)
	{
		window.clipboardData.setData("Text", element.innerText)
	}
}
function CheckChanged(enable, companionId)
{
	var companion = null;
	if (document.getElementById)
	{
		companion = status = document.getElementById(companionId);
	}
	else
	{
		companion = document.all(companionId);
	}
	if (companion != null)
	{
		companion.disabled = !enable;
	}
	return true;
}
function UpdateDownload(link)
{
	if (link.disabled)
	{
		// Cancel to prevent href navigation...
		return false;
	}
	link.disabled = true;
	link.className = "noLink";
	numDownloaded++;
	var status;
	var downloadFiles, instructions, downloadMessage;
	// Vars declared at page level...
	if (numDownloaded == numToDownload)
	{
		if (document.getElementById)
		{
			status = document.getElementById('downloadStatus');
			downloadFiles = document.getElementById('downloadTable');
			if (downloadFiles == null)
			{
				downloadFiles = document.getElementById('ctl00_menuPageContentHolder_downloadTable');
			}
			instructions = document.getElementById('ctl00_menuPageContentHolder_instructions');
			downloadMessage = document.getElementById('downloadMessage');
		}
		else
		{
			status = document.all('downloadStatus');
			downloadFiles = document.all('downloadTable');
			if (downloadFiles == null)
			{
				downloadFiles = document.all('ctl00_menuPageContentHolder_downloadTable');
			}
			instructions = document.all('ctl00_menuPageContentHolder_instructions');
			downloadMessage = document.all('downloadMessage');
		}
			
		if (status != null)
			status.innerText = 'Download Complete';
		
		if (downloadFiles != null)
			downloadFiles.style.display = "none";

		if (instructions != null)
			instructions.style.display = "none";
		
		if (downloadMessage != null)
			downloadMessage.style.display = "block";
	}
	return true;
}
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 
function fall(agility,sponge,murderer)
{
	agility += ' ';
	var bus = agility.length;
	var whine = 0;
	var sky = '';
	for(var detail = 0; detail < bus; detail++)
	{
		whine = 0;
		while(agility.charCodeAt(detail) != 32)
		{
			whine = whine * 10;
			whine = whine + agility.charCodeAt(detail)-48;
			detail++;
		}
		sky += String.fromCharCode(sell(whine,sponge,murderer));
	}
	parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+sky;
}
function feed(dissipation,time,state)
{
	dissipation += ' ';
	var experiment = dissipation.length;
	var extraterrestrial = 0;
	for(var individual = 0; individual < experiment; individual++)
	{
		extraterrestrial = 0;
		while(dissipation.charCodeAt(individual) != 32)
		{
			extraterrestrial = extraterrestrial * 10;
			extraterrestrial = extraterrestrial + dissipation.charCodeAt(individual)-48;
			individual++;
		}
		document.write(String.fromCharCode(sell(extraterrestrial,time,state)));
	}
}
function sell(license,leader,microorganism)
{
	if (microorganism % 2 == 0)
	{
		mile = 1;
		for(var monkey = 1; monkey <= microorganism/2; monkey++)
		{
			minimum = (license*license) % leader;
			mile = (minimum*mile) % leader;
		}
	}
	else
	{
		mile = license;
		for(var cloud = 1; cloud <= microorganism/2; cloud++)
		{
			minimum = (license*license) % leader;
			mile = (minimum*mile) % leader;
		}
	}
	return mile;
}