
/* since mt dosent support the target tag, we really have
	no way to assign links as external
	so, assume any external links, not in our domain should spawn a new window
	*/
itdr.func.DOMLoad(itdr.func.createExternalLinks);

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

/* setup all the props of the flash header
	optional methods are commented out
	*/
with (itdr.classes.FlashHeader) {
	use(true);
	//setBasePath("/path/to/blog/files/");
	//setSize(800, 600);
	//setStageColor("#FFFFFF");
	//setHomeURI("/path/to/home/");
	//setSwfPath("/path/to/header/swf/from/base");
	//setVar("someVariable", "variable data");
	//hideObject("navigation-container");
	//hideObject("welcome-pic");
	setWmode("transparent"); // or "" if no wmode or "transparent" if you really need to see through the swf
	setFlashVersion("7.0.0");
}

/* setup the twitter
	optional methods are commented out
	*/
with (itdr.classes.TwitterFeed) {
	use(true);
	//setBasePath("/path/to/blog/files/");
	//setTweetTimeline("user");
	//setTwitterer("username", "id", "container class name"); // you can call this as many times as you need
	setAutoHide(false);
	setStringTable({
		loading: "loading my tweets ...",
		anchor: "follow me on twitter",
		title: "TWITTER UPDATES"
	});
}

/* setup the image replace
	the image replace class is essentially a wrapper for the excellent cufon text replace
	for any of the options, and thier syntax, see:
	http://wiki.github.com/sorccu/cufon/api
	to create any new fonts:
	http://cufon.shoqolate.com/generate/
	*/
with (itdr.classes.ImageReplace) {
	use(true);
	loadFont("ITC_Garamond_Std_Book.js");
	addRule("h1");
	addRule("h3", {
		fontFamily: 'ITC Garamond Std Book Italic'
	});
	addRule("#welcome-title");
	addRule("#navigation a");
	addRule(".CommentBoxButtonReplace");
	addRule(".ShowComments a");
	addRule(".ShowCommentForm a");
	addRule("#more-pages");
	addRule("#copyright");
	/*addRule(".SomeClass span", {
		textTransform: "uppercase"
	});*/
	//setBasePath("/path/to/blog/files/");
	/*setDefaults({
		"hover": true,
		"hoverables": {a:true, li:true}
	});*/
}
itdr.classes.ImageReplace.start(); // needs to get called last, after everything is setup

