﻿var button_type = BUTTON_TYPE_IMAGE;
var online_display = "http://helpdesk.responsivelearning.com/123FlashChat/images/online.gif";
var offline_display = "http://helpdesk.responsivelearning.com/123FlashChat/images/offline.gif";
var button_assign_type = BUTTON_ASSIGN_DEPT;
var chat_window_skin = "blue";
var chat_window_width = 495;
var chat_window_height = 440;
var enable_invitation = true;
var invitation_popup_type = INVITATION_STYLE_SLIDEDOWN;
var invitation_skin = INVITATION_STYLE_BROWN;
var define_url = "http://host10.123livehelp.com/html/v50";
var init_group = "responsivelearning";
var invitation_dept_id = 258;
var pre_dept_id = "260";
//var init_user = "username";

livehelp();

// Set the submit ticket link to the RL HelpDesk when the system is offline. GJS 2/4/2010.
var aHelpLink = document.all.divHelpButton.getElementsByTagName("A")[0];
if (aHelpLink.outerHTML.indexOf("offline") > -1)
{
    var sFunction = "javascript:void(window.open('"+sHelpDeskURL+"',null,'status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes,width=715,height=600'))";
    aHelpLink.outerHTML = "<a onclick=\"" + sFunction + "\" href='#' ><IMG border=0 src=\"http://helpdesk.responsivelearning.com/123FlashChat/images/offline.gif\"></a>";
}
//var sTest = aHelpLink.outerHTML;
//document.write("<textarea style='height=500px width=600px'>" + sTest + "</textarea>");

//Department List:
//"RL_PDAS_DeptAdmin", "258"; "StetsonOnline", "259"; "RL_PDAS_Course", "260"; "RL_PDAS_Sales", "261"; "RL_Website", "262"; "RL_TIPS", "263"; RL_MoneyAcademy", "264"

