
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("tasj_NK", "16556752");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "follow me on twitter",
		title: "Twitter"
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/UNI05_54.TTF",
		color: "#000000",
		size: 18,
		backgroundColor: "#FFFFFF",
		transparent: false,
		aliasing: 2
	});
	/*addRule({
		selector: ".TitleReplace",
		size: 23,
		color: "#454545",
		font: "blog/fonts/BASKVILL.TTF",
		transparent: true,
		backgroundColor: "#454545"
	});
	addRule({
		selector: ".FootReplace",
		size: 23,
		color: "#454545",
		font: "blog/fonts/BASKVILL.TTF",
		transparent: true,
		backgroundColor: "#454545"
	});
	addRule({
		selector: ".CommentSpaceTitle",
		size: 23,
		color: "#454545",
		font: "blog/fonts/BASKVILL.TTF",
		transparent: true,
		backgroundColor: "#454545"
	});
	addRule({
		selector: ".EntryTag",
		size: 38,
		color: "#000000",
		font: "blog/fonts/BASKVILL.TTF",
		transparent: true,
		backgroundColor: "#000000"
	});
	addRule({
		selector: ".NavigationReplace",
		size: 11,
		color: "#ffffff",
		transform: "uppercase",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#ffffff",
		hoverColor: "#010101"
	});
	addRule({
		selector: ".RSSReplace",
		size: 11,
		color: "#ffffff",
		transform: "uppercase",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".SubNavigationReplace",
		size: 9,
		color: "#010101",
		transform: "uppercase",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#ffffff",
		hoverColor: "#454545"
	});
	addRule({
		selector: ".DateReplace",
		size: 12,
		color: "#f8e1ed",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#f8e1ed"
	});
	addRule({
		selector: ".CategoryReplace",
		size: 12,
		color: "#f8e1ed",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#f8e1ed"
	});	
	addRule({
		selector: ".CommentBoxButtonReplace",
		size: 11,
		color: "#f8e1ed",
		font: "blog/fonts/OratorStd.otf",
		transparent: true,
		backgroundColor: "#f8e1ed"
	});*/
}

// 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
}
