
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/CochinLT.ttf",
		size: 18,
		color: "#000000",
		backgroundColor: "#000000",
		transparent: true,
		aliasing: 2
	});
	addRule({
		selector: ".NavigationReplace",
		size: 13,
		color: "#6a6458",
		backgroundColor: "#c5b174"
	});
	addRule({
		selector: ".ItalicNavigationReplace",
		font: "blog/fonts/timesi_0.ttf",
		size: 13,
		color: "#6a6458",
		backgroundColor: "#c5b174"
	});
	addRule({
		selector: ".SubNavigationReplace",
		size: 11,
		color: "#6a6458",
		backgroundColor: "#e3cf95"
	});
	addRule({
		selector: ".TitleReplace",
		transform: "lowercase",
		size: 26,
		wordwrap: true,
		color: "#6a6458",
		backgroundColor: "#e3cf95"
	});
	addRule({
		selector: ".PageTitleReplace",
		transform: "lowercase",
		size: 26,
		color: "#6a6458",
		backgroundColor: "#6a6458"
	});
	addRule({
		selector: ".DateReplace",
		size: 13,
		color: "#bc9732",
		backgroundColor: "#bc9732"
	});
	addRule({
		selector: ".CommentBoxButtonReplace",
		font: "blog/fonts/BookmanStd-Light.otf",
		size: 11,
		color: "#ffffff",
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".TrackbacksCommentsReplace",
		size: 26,
		color: "#bc9732",
		backgroundColor: "#bc9732"
	});
}

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

