// JavaScript Document

function toggleOn(divid) {
	document.getElementById(divid).className="visible";
	document.getElementById(divid + '_hide').className="visible";
	document.getElementById(divid + '_show').className="hidden";
}

function toggleOff(divid) {
	document.getElementById(divid).className="hidden";
	document.getElementById(divid + '_hide').className="hidden";
	document.getElementById(divid + '_show').className="visible";
}
function toggleOnAllComm(){
	toggleOn ("real-time");
	toggleOn ("multiple-connection");
	toggleOn ("operator-to-operator");
	toggleOn ("party-is-typing");
	toggleOn ("email-signature");
	toggleOn ("auto-save");
	toggleOn ("search");
	toggleOn ("department-share");
	toggleOn ("email-transcripts");
	toggleOn ("capture-visitor");
	
}
function toggleOffAllComm(){
	toggleOff ("real-time");
	toggleOff ("multiple-connection");
	toggleOff ("operator-to-operator");
	toggleOff ("party-is-typing");
	toggleOff ("email-signature");
	toggleOff ("auto-save");
	toggleOff ("search");
	toggleOff ("department-share");
	toggleOff ("email-transcripts");
	toggleOff ("capture-visitor");
}
function toggleOnAllSales(){
	toggleOn ("ad-tracking");
	toggleOn ("track-visitor");
	toggleOn ("initiate");
	toggleOn ("push-html");
	
	
}
function toggleOffAllSales(){
	toggleOff ("ad-tracking");
	toggleOff ("track-visitor");
	toggleOff ("initiate");
	toggleOff ("push-html");
	
}
function toggleOnAllCustom(){
	toggleOn ("operator-console");
	toggleOn ("operator-online");
	toggleOn ("department-connection");
	toggleOn ("text-link");
	toggleOn ("remote-admin");
	toggleOn ("time-zone");
	toggleOn ("spam");
	toggleOn ("connection-window");
	
}
function toggleOffAllCustom(){
	toggleOff ("operator-console");
	toggleOff ("operator-online");
	toggleOff ("department-connection");
	toggleOff ("text-link");
	toggleOff ("remote-admin");
	toggleOff ("time-zone");
	toggleOff ("spam");
	toggleOff ("connection-window");
}
function toggleOnAllStats(){
	toggleOn ("operator-rating");
	toggleOn ("visitor-traffic");
	toggleOn ("daily-request");
	toggleOn ("log");
	
	
}
function toggleOffAllStats(){
	toggleOff ("operator-rating");
	toggleOff ("visitor-traffic");
	toggleOff ("daily-request");
	toggleOff ("log");
	
}
function toggleOnAllControl(){
	toggleOn ("hidden-departments");
	toggleOn ("traffic-monitor");
	toggleOn ("assign-operator");
	toggleOn ("auto-reconnect");
	toggleOn ("canned-responses");
	toggleOn ("canned-commands");
	toggleOn ("department-canned");
	toggleOn ("set-operator");
	toggleOn ("request-load");
	toggleOn ("request-polling");
	toggleOn ("set-request");
	toggleOn ("transfer-calls");
	toggleOn ("support-hour");
	toggleOn ("sound-request");
	toggleOn ("leave-a");
	
}
function toggleOffAllControl(){
	toggleOff ("hidden-departments");
	toggleOff ("traffic-monitor");
	toggleOff ("assign-operator");
	toggleOff ("auto-reconnect");
	toggleOff ("canned-responses");
	toggleOff ("canned-commands");
	toggleOff ("department-canned");
	toggleOff ("set-operator");
	toggleOff ("request-load");
	toggleOff ("request-polling");
	toggleOff ("set-request");
	toggleOff ("transfer-calls");
	toggleOff ("support-hour");
	toggleOff ("sound-request");
	toggleOff ("leave-a");
}
