
itdr.classes.CommentSpace.__toggle = itdr.classes.CommentSpace.toggle;
itdr.classes.CommentSpace.toggle = function (entryid, type) {
	itdr.classes.CommentSpace.__toggle(entryid, type);
	itdr.classes.Comments.showForm(entryid);
};

// make all external links popup in new window
itdr.func.DOMLoad(itdr.func.createExternalLinks);

// setup flash header
with (itdr.classes.FlashHeader) {
	use(true);
	setTransparency(true);
	setFlashVersion("7.0.0");
}

// setup twitter
with (itdr.classes.TwitterFeed) {
	use(true);
	//setTwitterer("hypergeneric", "14608808", "twitter");
	//setTwitterer("username", "id", "container class name");
	setTwitterer("Staja_Stacey", "15166030", "her-twitter");
	setTwitterer("Staja_Jason", "20526414", "his-twitter");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "follow me |",
		title: "TWITTER UPDATES"
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/HelvMdCn.ttf",
		color: "#000000",
		size: 18,
		backgroundColor: "#FFFFFF",
		transparent: true,
		aliasing: 2
	});
	addRule({
		selector: ".Nav a",
		size: 16,
		color: "#ffffff",
		backgroundColor: "#ba373e"
	});
	addRule({
		selector: ".SubNav a",
		size: 14,
		transform: "lowercase"
	});
	addRule({
		selector: ".TitleReplace",
		size: 26,
		transform: "lowercase",
		color: "#2e2e2e",
		font: "blog/fonts/HelvMdCn.ttf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".PageTitleReplace",
		size: 26,
		transform: "lowercase",
		color: "#2e2e2e",
		font: "blog/fonts/HelvMdCn.ttf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".DateReplace",
		size: 10,
		transform: "uppercase",
		color: "#717171",
		font: "blog/fonts/FUTURAL.TTF",
		transparent: true,
		backgroundColor: "#717171"
	});
	addRule({
		selector: ".TwitterReplace",
		size: 16,
		transform: "lowercase",
		color: "#ffffff",
		font: "blog/fonts/HelvMdCn.ttf",
		transparent: true,
		backgroundColor: "#ba373e"
	});
	addRule({
		selector: ".SearchReplace",
		size: 16,
		transform: "lowercase",
		color: "#ffffff",
		font: "blog/fonts/HelvMdCn.ttf",
		transparent: true,
		backgroundColor: "#ba373e"
	});
	addRule({
		selector: ".RSSReplace",
		size: 16,
		color: "#ffffff",
		font: "blog/fonts/HelvMdCn.ttf",
		transparent: true,
		backgroundColor: "#ba373e"
	});
	addRule({
		selector: ".CommentBoxButtonReplace",
		size: 16,
		transform: "lowercase",
		color: "#231f20",
		font: "blog/fonts/HelvCn.ttf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
}

// setup comment space toggle
with (itdr.classes.CommentSpace) {
	comments (false, true, true); // hideOnLoad, allowToggle, hideIfZero
	trackbacks (true, true); // hideOnLoad, allowToggle
	form (true, true); // hideOnLoad, allowToggle
}
