
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("karenard", "7564612");
	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/NeutraDisplayTT-Light.ttf",
		color: "#000",
		size: 16,
		backgroundColor: "#000",
		transparent: true,
		aliasing: 2
	});
	addRule({
		selector:".TwitterTitle",
		font: "blog/fonts/cour.ttf",
		size: 11,
		color:"#000"
	});
	addRule({
		selector: ".RSSReplace",
		font: "blog/fonts/cour.ttf",
		size: 11,
		backgroundColor: "#E3E5CE",
		transparent: false,
		color:"#000"
	});
	addRule({
		selector:".CommentBoxButtonReplace",
		font: "blog/fonts/NeutraDisplayTT-MediumAlt.ttf",
		color: "#3e3e3e",
		size: 18,
		transform: "lowercase"
	});
	addRule({
		selector:".PageTitleReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 28,
		color: "#535353"
	});
	addRule({
		selector:".favorites-titleReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 28,
		color: "#535353"
	});
	addRule({
		selector:".galleryReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 28,
		color: "#535353"
	});
	addRule({
		selector:".TitleReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 28,
		color: "#535353"
	});
	addRule({
		selector:".FavoritesReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 28
	});
	addRule({
		selector:".TrackbacksCommentsReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 20,
		color: "#535353"
	});
	addRule({
		selector:".VoteReplace",
		font: "blog/fonts/rough_typewriter.otf",
		size: 20
	});
}

// setup voting
with (itdr.classes.Voting) {
use(true);
vote("Vote Here!");
thanks("Thanks!");
sending("Sending");
error("Error");
}

// setup comment space toggle
with (itdr.classes.CommentSpace) {
	comments (false, false, false); // hideOnLoad, allowToggle, hideIfZero
	trackbacks (true, true); // hideOnLoad, allowToggle
	form (true, true); // hideOnLoad, allowToggle
}
