
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(false);
	setTwitterer("hypergeneric", "14608808");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "follow me on twitter",
		title: "TWITTER UPDATES"
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/SWISSC.TTF",
		color: "#00a5dd",
		size: 30,
		backgroundColor: "#E9EAEB",
		transparent: true,
		aliasing: 0,
		transform: "uppercase"
	});
	addRule({
		selector:".TitleReplace"
	});
	addRule({
		selector:".DateReplace",
		color: "#565656",
		size: 12,
		font: "blog/fonts/SWISSCB.TTF"
	});
	addRule({
		selector:".DateSpacerReplace",
		color: "#565656",
		size: 12,
		font: "blog/fonts/SWISSCB.TTF"
	});
	addRule({
		selector:".CommentBoxButtonReplace",
		size: 12,
		aliasing: 3,
		backgroundColor: "#E9EAEB",
		font: "blog/fonts/SWISSCB.TTF"
	});
	addRule({
		selector:".TrackbacksCommentsReplace",
		size: 17
	});
}

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