/* Eric Swanson  - August 6, 2008 Produced for BeatingDebt.org.  BeatingDebt.org is a 501(c)3 non profit organization dedicated to educating individuals on the joy and freedom experienced from beating debt using Biblical principles.*/



var zFontSize;
var zFontColor;
var zBackColor;
var zBorderColor;
var zWidth;
var zHeight;
var zSpeed;

var zDefault;

var zQS = "?";
//var zFullFrame;

zDefault = 1;		

zFontColor = def(zFontColor, "white");
zBackColor = def(zBackColor, "");
zBorderColor = def(zBorderColor, "#CCC");
zFontSize = def(zFontSize, 14);
zWidth = def(zWidth, zFontSize * 10);
zHeight = def(zHeight,Math.floor(zFontSize*1.3));
zSpeed = def(zSpeed, 8);
//zFullFrame = def(zFullFrame, 0);

var zBeatDebtBox = document.getElementById('zBeatDebtBox');
if (zBeatDebtBox != null) 
{
	zBeatDebtBox.cellPadding = "0";
	zBeatDebtBox.cellSpacing = "0";
	zBeatDebtBox.border = "0";
}

function def(val, def)
{
	//alert("val=" + val + ".");
	if (val === "" || val == null) 
		return def; 
	else
	{
		zDefault = 0;
		return val;
	}
}



zQS = zQS + "zWidth=" + escape(zWidth) + "&";
zQS = zQS + "zHeight=" + escape(zHeight) + "&";
zQS = zQS + "zSpeed=" + escape(zSpeed) + "&";
zQS = zQS + "zFontSize=" + escape(zFontSize) + "&";
zQS = zQS + "zFontColor=" + escape(zFontColor) + "&";
zQS = zQS + "zBorderColor=" + escape(zBorderColor) + "&";
zQS = zQS + "zBackColor=" + escape(zBackColor) + "&";
//zQS = zQS + "zOops=" + escape(zOops) + "&";
//zQS = zQS + "zFullFrame=" + escape(zFullFrame) + "&";

document.write(" <style type='text/css'><!--");
document.write(" #zBeatDebtBox td { padding: 0px 0px 0px 0px; }");
document.write(" #zBeatDebtBox { font-family:arial;}");
document.write(" #zBeatDebtBox { border:0" + zBorderColor + ";}\n");
document.write(" #zBeatDebtBox a { color:inherit; text-decoration:none; }\n");	
document.write(" #zBeatDebtBox a:link {text-decoration:none; color: inherit;}\n");
document.write(" #zBeatDebtBox a:visited {text-decoration:none; color: inherit;}\n");
document.write(" #zBeatDebtBox td {text-align:center;}\n");
document.write("--></style>");

var zSrcURL = 'http://www.beatingdebt.org/debtclock.htm';
document.write('<iframe id="zBeatDebtFrame" name="zBeatDebtFrame" allowTransparency="True" width="' + zWidth + 'px" height="' + zHeight + 'px" src="' + zSrcURL + zQS + '" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>');

zFontSize = "";
zFontColor = "";
zBorderColor = "";
zBackColor = ""
zWidth = "";
zHeight = "";
zSpeed = "";





 