
/***********************************************
 *				BLOG FUNCTIONS
 ***********************************************/
//Hide or show elements on a page

//nodeIds - ID of one or more (separated by "|") elements on a page

//visTo - takes a value of 0 or 1 to set visibility as either none or block (by default)

//visType (optional) - allows override of default block visibility type for other options (e.g. inline, table-row-group, etc.)

function hide_show(nodeIds, visTo, visType)

{

	var nodeIdArr = nodeIds.split("|");

	

	for(i=0; i<nodeIdArr.length; i++) {

		var nodeId = nodeIdArr[i];

		var thisNode = $(nodeId);

		

		// check for node's current visibility

		if(visTo == 1) {

			if(visType) {

				if( (visType == "table-row-group" || visType == "table-row") && document.all ) visType = "block";

				thisNode.style.display = visType;

			} else {

				thisNode.style.display = "block";

			}

		} else if(visTo == 0) {

			thisNode.style.display = "none";

		} else { // find node current vis and assume the opposite

			var currVis = thisNode.style.display;

			

			if(currVis) {

				if(currVis == "none")

					thisNode.style.display = ( visType ? visType : "block" );

				else

					thisNode.style.display = "none";

			} else if(thisNode.className == "no_show") {

				thisNode.style.display = ( visType ? visType : "block" );

			} else { // assume element starts as visible

				thisNode.style.display = "none";

			}

		}

	}

}
function swap_expand_icons(clicked_header) {

	var curr_class = clicked_header.className;



	if( curr_class == "expandable")

		var new_class = "contractable";

	else

		var new_class = "expandable";



	clicked_header.className = new_class;

}
$(function() {

	// sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"tradegothic.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:20, nPaddingBottom:20, sFlashVars:"textalign=center&offsetTop=6"}));

	
	//sIFR.replaceElement("body#kids h2", "flash/Vintage.swf", "#011762", null, null, null, 0, 0, 0, 0, null);
	//sIFR.replaceElement("body#kids h3", "flash/Vintage.swf", "#0676d5", null, null, null, 0, 0, 0, 0, null);
	//sIFR.replaceElement("body#teens h2", "flash/Banhart.swf", "#011762", null, null, null, 0, 0, 0, 0, null);
	//sIFR.replaceElement("body#teens h3", "flash/Banhart.swf", "#0676d5", null, null, null, 0, 0, 0, 0, null);
	
	sIFR.replaceElement(named({sSelector:"body#kids h2", sFlashSrc:"flash/vintage.swf", sColor:"#011762", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"body#kids h3", sFlashSrc:"flash/vintage.swf", sColor:"#0676d5", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"body#teens h2", sFlashSrc:"flash/banhart.swf", sColor:"#011762", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"body#teens h3", sFlashSrc:"flash/banhart.swf", sColor:"#0676d5", sWmode:"transparent"}));
	
	
	
});