function popUp(objLink, h, w) {
	window.open(objLink.href, "popup", "width="+w+",height="+h+",scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0");
}

function clearText(objField){
	if (objField.defaultValue==objField.value)
	objField.value = "";
}

/* homepage feature 4/4/2009 */
function rotateFeature(intFeature)
{

	$("#feature li").removeClass("selected");
	//alert("before=" + intFeature);
	 $("#feature .primary").each(function (i) {
	 	
        if (i == intFeature) {
          $(this).fadeIn();
          $("#feature #feature" + (intFeature + 1)).addClass("selected");
        } else {
          $(this).hide();
        }

      });
}

/* show specified tab */
function showTab(objTab, strTabArea, strTabContent){
	//document.getElementById.addClass("selected");

	$("." + strTabArea + " > .tabcontent").hide();
	$("#" + strTabContent).fadeIn("slow");
	$("." + strTabArea + " > li").removeClass('selected');
	$("#" + objTab.parentNode.parentNode.id).addClass('selected');
		
}

/* initiate tab area */
function initTab(strTabArea, strTabDef,  strTabAreaDef){
	//document.getElementById.addClass("selected");
	$("." + strTabArea + " > .tabcontent").hide();
	$("#" + strTabAreaDef).show();
	$("#" + strTabDef).addClass('selected');


}


/* slide up slide out areas */
function slideChange(strShowArea, strHideArea){

	$("#" + strHideArea).slideUp();
	$("#" + strShowArea).slideDown();

}

/* comment reply logic */
function commentReply(strCommentLink, strCommentName){
	$("#comment").append("@&lt;a href=\"" + strCommentLink + "\"&gt;" + strCommentName + "&lt;/a&gt;:");
	if ($("#author").length > 0) {
		$("#submit").focus();
		$("#author").focus();
	} else {
		$("#submit").focus();
		$("#comment").focus();
	}

}