
/* 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);

/* don't ask, but hopefully this will be obsolete at some point
	*/
with (itdr.classes.CommentSpace) {
	comments (true, true, true); // hideOnLoad, allowToggle, hideIfZero
	trackbacks (true, true); // hideOnLoad, allowToggle
	form (true, true); // hideOnLoad, allowToggle
}

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

/* 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");
	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 |",
		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("Helvetica_LT_Light_300.font.js");
	loadFont("Garamond_Premiere_Pro_400.font.js");
	addRule("#navigation a");
	addRule(".DateReplace");
	addRule("#categoryspace");
	addRule(".CommentSpace a");
	addRule(".TitleReplace", {
		fontFamily: "Helvetica LT Light"
			});
	addRule(".TrackbacksCommentsReplace", {
		fontFamily: "Helvetica LT Light"
			});
	addRule("h1.SearchResultsHeader", {
		fontFamily: "Helvetica LT Light"
			});
	addRule(".PageTitleReplace", {
		fontFamily: "Helvetica LT Light"
			});
	/*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

