/* chat smart box */
<!--
// IF AGENTS ARE AVAILABLE:
function agents_available() {
	/* these lines create the link to open the chat - the line that says Click here to chat now is what will be displayed... it can be text or an image */	
	var smartbutton = document.createElement("li");
 	// create some content for the newly created element.
 	var sp1_content = document.createTextNode("Chat Online");
 	smartbutton.innerHTML = '<a href="" onClick="window.open(\'http://www.careerbuilder.com/custom/instantservice/chatform.htm\',' + 
	'\'custclient\',\'width=600,height=300,scrollbars=0\');return false;">Chat</a>';
	
	var helplink = document.getElementById("support-email");
	var supportmenu = helplink.parentNode;

	// insert the new element into the DOM before the helplink
	supportmenu.insertBefore(smartbutton, helplink);
  return true;
}
// IF AGENTS ARE NOT AVAILABLE:
function agents_not_available() 
{
	/* these show what happens if no agent is available - it can be an email link, an hours message, blank, etc. if blank, it should be innerHTML = '', if not - innerHTML = 'stuff to display' */

  return true;
}
//-->
/* end chat smart box */

if (document.location.protocol == "https:") {
	document.write('<img src="https://admin.instantservice.com/resources/smartbutton/6054/18100/available.gif?' + 
				   Math.floor(Math.random()*10001)+'" style="width:0;height:0;visibility:hidden;position:absolute;"' +
				   ' onLoad="agents_available()" onError="agents_not_available()">');
} else {
	document.write('<img src="http://admin.instantservice.com/resources/smartbutton/6054/18100/available.gif?' + 
				   Math.floor(Math.random()*10001)+'" style="width:0;height:0;visibility:hidden;position:absolute;"' +
				   ' onLoad="agents_available()" onError="agents_not_available()">');
}