
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("ricaserpa", "37816951", "twitter");
	//setTwitterer("username", "id", "container class name");
	setAutoHide(false);
	setStringTable({
		title: "Twitter",
		loading: "loading my tweets ...",
		anchor: "follow me |"
		
	});
}

// setup image replacement
with (itdr.classes.ImageReplace) {
	setDefaults({
		wordwrap: false,
		font: "blog/fonts/broken15.ttf",
		color: "#000000",
		size: 18,
		backgroundColor: "#FFFFFF",
		transparent: false,
		aliasing: 2
	});
	/*addRule({
		selector: ".TitleReplace",
		size: 65,
		transform: "normal",
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".PageTitleReplace",
		size: 65,
		transform: "normal",
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#ffffff"
	});
	addRule({
		selector: ".WelcomeReplace",
		size: 50,
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#dbd8d7"
	});
	addRule({
		selector: ".TrackbacksCommentsReplace",
		size: 50,
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#fff"
	});
	addRule({
		selector: ".twitter-titleReplace",
		transform: "normal",
		size: 50,
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#fff"
	});
	addRule({
		selector: ".FacebookReplace",
		transform: "normal",
		size: 50,
		color: "#505050",
		font: "blog/fonts/Jellyka_Estrya_Handwriting.ttf",
		transparent: true,
		backgroundColor: "#fff"
	});*/
	
}


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