var TimerInterval = -1; // Seconds provide -1 if do not want to check var sContextProps = ''; var sCheckURL = "http://chat.universityalliance.com/media/dlls/TLMediaU.dll" var sChatURL = "http://chat.universityalliance.com/media" var sTimeURL = "http://chat.universityalliance.com/media/visitorchat/TimeCal.asp" var sTrackURL = "http://chat.universityalliance.com/WebTrak" DBSvr = "DBSvr" ; DBName = "DBName" ; var sUrl = window.location.href; var nIndex = sUrl.indexOf("?") var sQueryString = ""; var school = "Dominican University"; var program = "UA"; var department = "Sales" var email = "enrollment@dominicanu.com"; var team = "102"; var TalismaChatUnavailableForm = "ChatUnavailable.asp"; var TalismaTechSupportUnavailableForm = "http://chat.universityalliance.com/TalismaWeb/WebForm/SupportRequest.htm"; var statusurl = "http://chat.universityalliance.com/media/VisitorChat/chatstatus.asp"; function createInput(inputForm, elementName, elementValue){ var newElement = document.createElement("input"); inputForm.appendChild(newElement); newElement.name = elementName; newElement.setAttribute("value", elementValue); newElement.setAttribute("type", "hidden"); return newElement; } function createDOMForm(){ var frmChat = document.createElement("form"); document.body.appendChild(frmChat); frmChat.name = "frmChat"; frmChat.id = "frmChat"; createInput(frmChat, "chat__school", school); createInput(frmChat, "chat__program", program); createInput(frmChat, "chat__department", department); createInput(frmChat, "team", team); } function createForm(){ document.write( ' \n\
\n\ \n\ \n\ \n\ \n\
\n\ ' ); } if ( typeof barge == "undefined" ) barge = true; if ( typeof delay == "undefined" ) delay = 20; function loadChatButton() { document.write('
'); var so = new SWFObject( "http://chat.universityalliance.com/media/custom/chatbutton.swf", "flashChatButton", "100%", "100%", "8" ); so.addParam( "menu", false ); so.addParam( "scale", "noborder" ); so.addParam( "salign", "BR" ); so.addParam( "allowScriptAccess", "always" ); so.addParam( "wmode", "transparent" ); so.addVariable( "statusurl", statusurl ); so.addVariable( "program", program ); so.addVariable( "department", department ); so.addVariable( "school", school ); so.addVariable( "team", team ); so.addVariable( "barge", barge ); so.addVariable( "delay", delay ); so.write( "ChatButton" ); } function gotoPreChat() { CheckBrowser(false); } function gotoChat( barging ) { barging = Boolean( barging ); CheckBrowser( barging ); } function gotoForm() { document.location = "chatunavailable.asp?CurURL=" + document.location.href; } function clickChat() { if (document.flashChatButton) { if (typeof document.flashChatButton.asCheckStatus == "function") { document.flashChatButton.asCheckStatus(); } else if (typeof document.flashChatButton.SetVariable == "function") { document.flashChatButton.SetVariable("clickButton", true); } else { gotoPreChat(); } } else { gotoPreChat(); } } createForm(); loadChatButton();