TT.Content = {
	
	// container div that holds all root divs for the swap effect
	parentDivId: '',
	
	init: function (parentDivId, path) {
		this.parentDivId = parentDivId;
		this.path = path;
	},
	
	// hides all divs within the parent, then displays the specified div, if one is specified
	showSelected: function (divId) {
		// get all children divs
		var aChildren = this.getChildren(this.parentDivId);
		
		// we need to see if the div is already shown, in which case we will hide
		var show = (YAHOO.util.Dom.get(divId).style.display == 'block') ? false : true;
		
		// loop and hide all
		for (var i=0;i<aChildren.length;i++) {
			aChildren[i].style.display = 'none';
			YAHOO.util.Dom.get('img_' + aChildren[i].id).src = TT.path + 'lib/images/plus-sign.png';
		}
		
		// now show the specified div
		if (show) {
			this.swapDisplayStyle(divId);
			this.swapDisplayIcon('img_' + divId);
		}
		
	},
	
	// show or hide div (depending on current state)
	swapDisplayStyle: function (divId) {
		var el = YAHOO.util.Dom.get(divId);
		
		el.style.display = (el.style.display == 'none' || el.style.display == '' ) ? 'block' : 'none';
	},
	
	// swap plus or minus img (depending on current state)
	swapDisplayIcon: function (imgId) {
		var el = YAHOO.util.Dom.get(imgId);
		el.src = (el.src.match(/plus/) != null ) ? TT.path + 'lib/images/minus-sign.png' : TT.path + 'lib/images/plus-sign.png';
	},
	
	// get all divs within the specified div
	getChildren: function (divId) {
		return aTmp = YAHOO.util.Dom.getChildrenBy(YAHOO.util.Dom.get(divId), function(e){if (e.tagName == 'DIV') { return true; };});
	},
	
	handleResize: function () {
		// actual width for wrap is 1190px, 1200px is used so the bar never moves to show wrap
		if ( document.body.clientWidth < 1200 ){
			YAHOO.util.Dom.get('calltoaction').style.display = 'none';
		} else {
			YAHOO.util.Dom.get('calltoaction').style.display = 'block';
		}
	}
}