
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("JNPStudios", "16027755");
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "Follow Me",
		title: " "
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/PrestigeElite.otf",
		color: "#000000",
		size: 18,
		backgroundColor: "#201E1F",
		transparent: false,
		aliasing: 1
	});
	addRule({
		selector: ".NavigationReplace",
		color: "#c99f0d",
		size: 11		
	});
	addRule({
		selector: ".SubNavigationReplace",
		color: "#c99f0d",
		size: 11		
	});
	addRule({
		selector: "#page-title",
		color: "#d48100",
		backgroundColor: "#fff",
		transparent: true,
		size: 15		
	});
	addRule({
		selector: ".TitleReplace",
		color: "#d48100",
		backgroundColor: "#d48100",
		transparent: true,
		size: 13		
	});
	addRule({
		selector: ".DateReplace",
		color: "#000000",
		backgroundColor: "#fff",
		transparent: true,
		size: 12		
	});
	addRule({
		selector: ".TrackbacksCommentsReplace",
		color: "#000000",
		backgroundColor: "#fff",
		transparent: true,
		size: 18		
	});
	addRule({
		selector: ".BlogRollReplace",
		color: "#c99f0d",
		backgroundColor: "#c99f0d",
		transparent: true,
		size: 14		
	});
}

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