
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);
	setStageColor("#D2B78B");
	setTransparency(true);
	setFlashVersion("9.0.0");
}

// setup twitter
with (itdr.classes.TwitterFeed) {
	use(false);
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/BRANDYWI.TTF",
		color: "#efa21b",
		size: 32,
		backgroundColor: "#EEF5E9",
		transparent: true,
		aliasing: 0
	});
	addRule({
		selector:".TitleReplace"
	});
	addRule({
		selector:".SubNavigationReplace",
		color: "#0c829b",
		size: 14
	});
	addRule({
		selector:".TrackbacksCommentsReplace",
		size: 22
	});
		
}

// 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
}

