

// JavaScript Document
//code added to fix the logout button on the fly
var logOutButton = document.getElementById('LogIn_btn');
if (logOutButton){
	if(logOutButton.href.indexOf("Login") <0){
	logOutButton.href = "http://www.hottopic.com/hottopic/member/logout.jsp";
	}
}

var footer_logo = '<div style="width:316px; height:43px; background:url(http://community.hottopic.com/images/htFoundationV3.gif) no-repeat; position:relative;"><a href="http://community.hottopic.com/content/ht-foundation" style="position:absolute;left:0;width:79px; height:43px;"><img src="http://community.hottopic.com/hottopic/images/clear.gif" border="0" style="width:79px; height:43px;"/></a><a href="http://www.shockhound.com/?cm_mmc_o=ZBf+aB5bg*mtBgLZBAEp*dBBfwy*GFzTw+1bEL" style="position:absolute;left:80px;width:155px; height:43px;"><img src="http://community.hottopic.com/hottopic/images/clear.gif" border="0" style="width:155px; height:43px;"/></a></div>';
document.write(footer_logo);



var errorDivFix = document.getElementById('ErrorMessageDiv_Inside');

if(errorDivFix){
	
	var errorContent = errorDivFix.innerHTML;
	
	if(errorContent.indexOf("birthday")>0){
		
		errorDivFix.innerHTML='Stop! You must be logged in to get your discount. But don’t sweat it. Just sign in and try it again!';
		
	}

}




