
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");
	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/broken15.ttf",
		color: "#000000",
		size: 18,
		backgroundColor: "#FFFFFF",
		transparent: false,
		aliasing: 1
	});
	addRule({
		selector: ".TitleReplace",
		size: 14,
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#616161"
	});
	addRule({
		selector: ".PageTitleReplace",
		size: 14,
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#616161"
	});
	addRule({
		selector: ".DateReplace",
		size: 12,
		transform: "lowercase",
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".CategoryReplace",
		size: 14,
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#616161"
	});
	addRule({
		selector: ".NavigationReplace",
		size: 12,
		transform: "lowercase",
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#616161",
		hoverColor: "#aee556"
	});
	addRule({
		selector: ".SubNavigationReplace",
		size: 12,
		transform: "lowercase",
		color: "#616161",
		font: "blog/fonts/martlig.otf",
		transparent: true,
		backgroundColor: "#616161",
		hoverColor: "#aee556"
	});
	addRule({
		selector: ".CommentBoxButtonReplace",
		size: 12,
		color: "#616161",
		font: "blog/fonts/martbol.otf",
		transparent: true,
		backgroundColor: "#e7e7e4"
	});
	addRule({
		selector: ".twitterHead",
		size: 12,
		color: "#616161",
		font: "blog/fonts/martbol.otf",
		transparent: true,
		backgroundColor: "#e7e7e4"
	});
}

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