
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("lbrownphoto", "15150916");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "follow me on twitter",
		title: "TWITTER UPDATES"
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	// all default values are optional
	setDefaults({
		wordwrap: false,
		font: "/blog/fonts/TrajanPro-Regular.otf",
		color: "#FFFFFF",
		size: 14,
		backgroundColor: "#EEEEEE",
		transparent: false,
		aliasing: 5,
		transform: "uppercase"
	});
	addRule({
		selector: ".NavigationReplace",
		transparent: true,
		size: 10
	});
	addRule({
		selector: ".SubNavigationReplace",
		transparent: true,
		size: 9
	});
	addRule({
		selector: ".TitleReplace",
		wordwrap: true,
		color: "#80646f",
		size: 16
	});
}
//				selector: ".single-entry .title",


// setup comment space toggle
with (itdr.classes.CommentSpace) {
	comments (false, false, true); // hideOnLoad, allowToggle, hideIfZero
	trackbacks (false, false); // hideOnLoad, allowToggle
	form (true, true); // hideOnLoad, allowToggle
}

