
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("WatsonStudios", "20609849");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "join me on twitter",
		title: ""
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/album-avantquelombre.ttf",
		color: "#3c4345",
		size: 20,
		backgroundColor: "#FFFFFF",
		transparent: false,
		aliasing: 2
	});
	addRule({
		selector: ".NavigationReplace",
		size: 12,
		transparent: true,
		color: "#2e3638"
	});
	addRule({
		selector: ".SubNavigationReplace",
		size: 11,
		transparent: true,
		color: "#2e3638"
	});
	addRule({
		selector: ".TitleReplace"
	});
	addRule({
		selector: ".PageTitleReplace"
	});
	addRule({
		selector: ".DateReplace"
	});
	addRule({
		selector: ".CommentBoxButtonReplace",
		size: 13
	});
	addRule({
		selector: ".TrackbacksCommentsReplace",
		size:16
	});
}

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