
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.FlashHeader2) {
	use(true);
	setTransparency(true);
	setFlashVersion("7.0.0");
}

// setup twitter
with (itdr.classes.TwitterFeed) {
	use(true);
	setTwitterer("ckstudio", "17994135");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "Follow us on twitter",
		title: "Our Twitter..."
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/broken15.ttf",
		color: "#000000",
		size: 18,
		backgroundColor: "#FFFFFF",
		transparent: false,
		aliasing: 2
	});
	addRule({
		selector: ".PageTitleReplace",
		size: 22,
		color: "#572700",
		font: "blog/fonts/KAMN____.TTF",
		transparent: true,
		backgroundColor: "#DBE9EA"
	});
	addRule({
		selector: ".TitleReplace",
		size: 22,
		color: "#572700",
		font: "blog/fonts/KAMN____.TTF",
		transparent: true,
		backgroundColor: "#F2EFE7"
	});
	addRule({
		selector: ".WelcomeReplace",
		size: 20,
		color: "#572700",
		font: "blog/fonts/KAMN____.TTF",
		transparent: true,
		backgroundColor: "#DBE9EA"
	});
	addRule({
		selector: ".NavigationReplace",
		transform: "lowercase",
		size: 11,
		color: "#572700",
		font: "blog/fonts/TradeGothicLT.ttf",
		transparent: true,
		backgroundColor: "#EAF4F6"
	});
	addRule({
		selector: ".DateReplace1",
		size: 14,
		color: "#572700",
		font: "blog/fonts/affliction.ttf",
		transparent: true,
		backgroundColor: "#F2EFE7"
	});
	addRule({
		selector: ".DateReplace2",
		size: 14,
		color: "#572700",
		font: "blog/fonts/affliction.ttf",
		transparent: true,
		backgroundColor: "#F2EFE7"
	});
	addRule({
		selector: ".CommentBoxButtonReplace",
		size: 11,
		transform: "lowercase",
		color: "#62cae3",
		font: "blog/fonts/TradeGothicLTBold2.ttf",
		transparent: true,
		backgroundColor: "#61310b"
	});
	addRule({
		selector: ".SubNavigationReplace",
		transform: "lowercase",
		size: 11,
		color: "#572700",
		font: "blog/fonts/TradeGothicLT.ttf",
		transparent: true,
		backgroundColor: "#EAF4F6"
	});
}

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

