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

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/JOURNAL.ttf",
		color: "#242424",
		size: 18,
		backgroundColor: "#F3F3F3",
		transparent: false,
		aliasing: 2
	});

	addRule({
		selector: ".TitleReplace",
		size: 36
	});

	addRule({
		selector: ".DateReplace",
		font: "blog/fonts/georgia.ttf",
		size: 10
	});

	addRule({
		selector: ".TrackbacksCommentsReplace",
		size: 25
	});

	addRule({
		selector: ".AboutReplace",
        backgroundColor: "#EEEEEE",
		size: 32
	});

	addRule({
		selector: ".NavigationReplace",
		font: "blog/fonts/GOTHIC.TTF",
		transform: "lowercase",
        backgroundColor: "#FFBAAD",
		size: 12.5
	});

	addRule({
		selector: ".SubNavigationReplace",
		font: "blog/fonts/GOTHIC.TTF",
		transform: "lowercase",
        backgroundColor: "#FFBAAD",
		size: 10
	});

	addRule({
		selector: ".CommentBoxButtonReplace",
		font: "blog/fonts/GOTHIC.TTF",
        backgroundColor: "#FFBAAD",
		size: 10
	});
}

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

